Jump to content

How to link one CMS page to another CMS page


Recommended Posts

Hi,

 

I am hoping someone can help me work out how to properly create links in CMS pages to other CMS pages.

 

In PHP we get CMS links with:

$this->context->link->getCMSLink('about-us')

 

and templates we use:

$link->getCMSLink('about-us')

 

But how do I do the same thing from within a CMS page.

The only way I can get it to work is with:

 

<a href="/absolute_path/content/4-about-us>About Us</a>

 

but I want to be able to link to other CMS pages without specifying the absolute path of the web server.

 

Magento allows this with the [spam-filter]store url=about_us[spam-filter] syntax, but I can't find anything similar for Prestashop

 

Does anybody know how this can be achieved?

 

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...