Actions Menu Anchor URL - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Modifications

Modifications Simple to complex modifications, made by users or by our team, applied to logic or presentation, all kinds of modifications are discussed and requested here.

Reply
 
Thread Tools Display Modes
Old 08-07-2010   #1
ztbolt
 
Join Date: Jun 2010
Posts: 13
ztbolt is on a distinguished road
Talking Actions Menu Anchor URL

Hi All,

I appreciate your help on this. I'm trying to edit the smarty code for the Actions block on the listings pages. I have a few items on the listing details (gallery, video,map) that are pushed down the page. It would be AWESOME if the actions menu had a few more useful navigation items, namely anchor urls that take the user directly to the map, gallery, video, etc. so they don't have to scroll.

So let's start with the video. I'm using the Google maps plugin and showing the map on the listing details page at the bottom.

In the language manager I added the url anchor right before the word map in the value field: <a name="map" id="map"></a>Map.

In the Actions block I edited the code to add a menu item "Map". Smarty pulls the current url + the listing ID and adds the url anchor on the end for the href. I added this right after the {/foreach} tag so the last line of smarty script looks like this:

{/foreach}<a href="{$smarty.server.PHP_SELF}?id={$listing.id}#m ap">Map</a>{/if}

This works flawlessly if I have mod_rewrite disabled in the admin configurations section; however, if it is enabled the smarty code still wants to use the non-rewritten url so I get a 404 error.

Basically, I need to know how to edit the smarty script to use this when mod_rewrite is enabled. While {$smarty.server.PHP_SELF}?id={$listing.id} gets the non-rewritten url, I need to pull the mod_rewrite url.

Does that make sense?

Thanks for your help!
ztbolt is offline   Reply With Quote
Old 08-17-2010   #2
Alex B.
Tech Support
 
Alex B.'s Avatar
 
Join Date: Oct 2008
Posts: 1,069
Alex B. is on a distinguished road
Default

try to use href="{print_listing_url listing=$listing}" that should work
__________________
Best Regards, Alex B.
HELPDESK
Alex B. is offline   Reply With Quote
Reply

Tags
actions block, actions menu, customize actions menu, edit actions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 01:24 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources