Jump to content
  • 0

Caspio Deploy2 Wordpress plugin with maps


MikeFoxcroft

Question

I've installed the deploy2 plugin and the caspio form is working on my site, however the maps are not showing up (as I haven't added the javascript for it anywhere). Is there any way to add this just to the relevant page rather than sticking it in the site-wide header file and having it redundant on most pages?

Also, is there any way for the results page to just show the map (at the moment I've got it set up as a tabular datapage to show the map above the table of results)?

Thanks in advance.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hello, Mike.

Is there any way to add this just to the relevant page rather than sticking it in the site-wide header file and having it redundant on most pages?

Thanks in advance.

Please read the topic: http://howto.caspio.com/extensions/maps ... tions.html

The paragraph 1.2 says "Hide Map During Search". Is this your answer? Or you need something different?

Also, the paragraph 1.3 ("Define Your Fields on the Results Page") says that html block should be added in the "Configure Results Page Fields" section of the DataPage wizard.

Did you add the html block on the right step in DataPage wizard? Each step has its own naming (see picture).

Link to comment
Share on other sites

  • 0

Thanks for the replies.

Aariel - that worked perfectly. I thought doing that would hide the map as well, but it does just what I want.

Chris - I had the map working on a simple web page but was trying to include it in a wordpress page. Got that sorted now, but still have one problem...

When the map loads on the results page, it gets inserted as the first div in the body of the page. What I'm after is for it to show in the same area as the search form. Any ideas? Code below if that helps.

<div id="*********************">[url="http://www.caspio.com"]Online Database[/url] by Caspio</div>
<script src="http://b4.caspio.com/scripts/e1.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[
try{f_cbload("*******************","http:");}catch(v_e){;}
// ]]></script>
<div id="cxkg">[url="http://b4.caspio.com/dp.asp?AppKey=***********************"]Click here[/url] to load this Caspio <a title="Online Database" href="http://www.caspio.com">Online Database</a>.</div>
<script src="http://www.google.com/jsapi?key=***************************-*************************"></script> <script type="text/javascript">// <![CDATA[
google.load("maps", "2");
// ]]></script>
<script src="http://lib.caspio.com/pub/jquery/jquery.js" type="text/javascript"></script> <script src="http://lib.caspio.com/pub/mashup/caspio_mashupsv4_g.js" type="text/javascript"></script>
Link to comment
Share on other sites

  • 0

Hi Mike,

I didnot get what you mean by *****show the map in the same area as the search form****

But i think you are talking about positioning the map in your desired place ...

If this is the case, use

where you want to position your map.

Have a look at section 'Map Positioning' in http://howto.caspio.com/extensions/maps ... tions.html

hope this helps. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...