Jump to content

Recommended Posts

I can't find anywhere how to get the link name in tpl. There is new {url entity='cms' id='1'} way of inserting url into .tpl, but this is pretty useless if you have to hardcode the link name anyway:

<a href="{url entity='cms' id='1'}">HERE SHOULD BE THIS PAGE NAME</a>

We have two languages, so putting there hardcoded text is not an option, putting there {l s="page name"} and translating it also seems very not correct, in case the page name is updated in the future.

Is there any way provided by PrestaShop to put a specific page name knowing just its ID (language should be taken automatically of course)? If not, doesn't it seem to be a serious lack in the {url} functionality?


I hope some of you would know the answer, thanks.

Edited by Greg1234 (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More