swatts Posted July 22, 2015 Share Posted July 22, 2015 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 More sharing options...
NemoPS Posted July 22, 2015 Share Posted July 22, 2015 Actually this works across all templates $link->getCMSLink('about-us')Or do you mean in the html?If so, you can only hardcode it, or find a shortcodes module that parses content before the output Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now