PDA

View Full Version : command for receiving data from data entries



Spinu Alexandru
November 18, 2014, 10:17 AM
Hello guys!

I have the US map implemented on my website and inside the map.tpl , after every area on the map, i have written this:

href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&category={/if}"
.. that sends the user to Listing page.

I would like a command that gathers data from Data Entries , from their access keys and when the user clicks on a certain area on the map, it will show listings that have chosen one of the Data Entries options.

Please help me!

Curtis
November 19, 2014, 10:51 AM
Hello guys!

I have the US map implemented on my website and inside the map.tpl , after every area on the map, i have written this:

href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&category={/if}"
.. that sends the user to Listing page.

I would like a command that gathers data from Data Entries , from their access keys and when the user clicks on a certain area on the map, it will show listings that have chosen one of the Data Entries options.

Please help me!

Hi, your request isn't clear for us. Can you clarify it or send a screenshot with really example?

Spinu Alexandru
November 19, 2014, 05:22 PM
sorry about that,

Inside my map.tpl file (template/tpl/blocks) that i use to make a states map on my homepage i have the next code:


</script>

<div style="overflow: hidden;text-align: center;padding: 0 0 10px;"><img usemap="#map" alt="" title="" src="{$rlTplBase}img/harta.png" /></div>
<map name="map" id="states_map">

<area alt="" accesskey="california" shape="poly" coords="150,162,154,150,166,150,171,158,177,154,179,156,19 0,151,195,156,202,156,204,164,206,164,208,159,224, 160,229,168,240,177,235,184,232,185,226,196,221,19 1,216,196,216,202,209,211,204,212,200,221,203,226, 203,234,207,239,202,241,190,227,190,225,191,223,19 0,221,189,218,190,217,181,193,175,192,173,188,173, 180,168,178,164,167,155,167" href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}" />

<area alt="" accesskey="nevada" shape="poly" coords="119,60,128,63,133,76,144,78,146,85,140,96,144,101, 143,104,152,111,149,116,156,121,149,129,157,142,15 7,149,153,149,149,162,136,161,130,151,122,150,122, 144,113,139,108,141,104,137,91,137,85,141,81,136,8 2,134,80,131,80,130,86,122,91,111,88,107,96,99,100 ,92,104,84,105,82,111,77,109,68,114,64" href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}" />

<area alt="" accesskey="arizona" shape="poly" coords="341,140,344,138,346,143,354,143,356,140,361,144,37 6,140,382,134,387,137,393,129,396,134,413,133,414, 136,417,138,417,140,414,143,420,152,424,163,428,18 2,416,179,407,184,408,188,398,187,398,190,376,189, 376,192,377,194,375,194,371,192,370,192,369,194,36 3,180,359,176,358,167,357,167,351,170,351,166,350, 164,341,163,344,158,346,155,341,148" href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}" />

<area alt="" accesskey="washington" shape="poly" coords="80,137,85,143,92,138,103,138,108,142,113,140,120,1 44,120,150,129,152,136,163,149,163,154,168,148,168 ,146,175,136,175,133,187,134,194,123,201,107,194,9 6,199,96,196,94,194,90,200,76,186,75,187,75,191,72 ,193,60,190,57,192,55,187,47,186,36,178,37,174,41, 172,44,173,48,175,56,175,62,170,64,162,66,162,71,1 57,66,152,70,148,70,147,69,144,71,143,76,142" href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}" />

<area alt="" accesskey="north_carolina" shape="poly" coords="235,73,241,73,249,64,266,68,268,66,282,65,288,71,2 86,78,284,80,287,84,287,88,285,90,286,104,276,104, 269,115,268,120,266,121,264,120,263,117,252,127,25 2,132,244,134,238,129,240,121,236,119,235,106,228, 98,225,98,223,93,223,92,224,88,229,88,229,82,233,7 6" href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}" />
.........
.........

Now, every area on the map goes to my Listings Main Page

So every accesskey from above is corresponding to an Item in Data Entries, which is selected when you add an listing, and i would like when i press an area on the map, to view only the items that had chosen that option.

Spinu Alexandru
November 24, 2014, 04:01 PM
Nobody has an answer to my question ? :(

Curtis
November 25, 2014, 03:28 AM
Nobody has an answer to my question ? :(

I'm sorry, but your request isn't clear still for me.
Can you provide an example (as screens will be good)?

Spinu Alexandru
December 4, 2014, 05:57 PM
No problem, I tried to put screenshots but they appear very small and not understandable when i preview the post :(

I guess the map.tpl file is clear for you; is the one that it is used in the Realty Modern template, on the Home Page, with the USA states map.

So i copied that file into my template and i included it inside my Content Boxes with this command:


{include file='blocks'|cat:$smarty.const.RL_DS|cat:'map.tpl '}

Now , the map appear on the Homepage, but when i click the map, every area takes me to the Main Listings Page, without applying the filter for listings from a certain state.

My opinion is that this area from the map.tpl needs to be modified with a command that takes data from Data Entries (from Administration panel)


href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}"

Curtis
December 5, 2014, 07:02 AM
No problem, I tried to put screenshots but they appear very small and not understandable when i preview the post :(

I guess the map.tpl file is clear for you; is the one that it is used in the Realty Modern template, on the Home Page, with the USA states map.

So i copied that file into my template and i included it inside my Content Boxes with this command:


{include file='blocks'|cat:$smarty.const.RL_DS|cat:'map.tpl '}

Now , the map appear on the Homepage, but when i click the map, every area takes me to the Main Listings Page, without applying the filter for listings from a certain state.

My opinion is that this area from the map.tpl needs to be modified with a command that takes data from Data Entries (from Administration panel)


href="{$rlBase}{if $config.mod_rewrite}{$pages.lt_listings}/{else}?page={$pages.lt_listings}&amp;category={/if}"

OK, i understand your problem.
Can you send me FTP access and url of page where you put this map to my PM?