Jump to content

How to add cms page link in PermanentLinks Block?


oslayer

Recommended Posts

I have Presta 1.5.1 and block BlockPermanentLinks

 

I need to add to the three existing link above, links to CMS page

 

For example:

SuperDelivery |Contact us|Site maps|Bookmarks

 

Delivery - page CMS has the following attributes, which are visible when editing the pages Friendly URL = delivery , Meta Title:SuperDelivery

 

Take a file blockpermanentlinks-header.tpl which has the following code:

 

<ul id="header_links">
<li id="header_link_contact"><a href="{$link->getPageLink('contact', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>
<li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li>
<li id="header_link_bookmark">
<script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');</script>
</li>
</ul>

 

and after

<ul id="header_links">

 

paste the following code:

<li><a href="{$link->getCMSLink('1','delivery')}" title="{$cms->meta_title}">{$cms->meta_title}</a></li>

 

And like everything should work, but it was not there

 

when viewing the code using firebug we have:

<li><a href="/1-delivery" title=""></a></li>

 

variant with the following code

{l s='delivery' mod='blockpermanentlinks'}

 

is not work

 

have a result

<li><a href="/1-delivery" title="delivery">delivery</a></li>

 

But we need to get:

<li><a href="/1-delivery" title="SuperDelivery">SuperDelivery</a></li>

 

Please help to solve this problem

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...