srjacob Posted October 26, 2014 Share Posted October 26, 2014 This is a strange question for all you Prestashop mavens out there, although I suspect that others might want to do this as well. Is is possible to invoke Prestashop and a particular CMS page from an external link? Here's what I want to do. Hopefully, someone will know how to do it. I have a CMS page that lists the patents for my device. I invoke it through a top horizontal bar menu item. I also want to invoke this same page though a link. My shop is hangatablet.com I would like to invoke the patents CMS page through the link: hangatablet.com/patents Is this even possible to do? Obviously, I can have a separate html page for the link, and have Prestashop through the top menu bar invoke the CMS page, but it would be really nice if I could get away with only one page, not two. It would also be really really nice if I could invoke the CMS patents Prestashop page through the above link within the context of Prestashop (that is, bring up my shop and go directly to the CMS patents page). Is there any way to do this? Steve hangatablet.com Link to comment Share on other sites More sharing options...
titanotam Posted October 27, 2014 Share Posted October 27, 2014 (edited) You can put the link to CMS page with this code: <a href="{$link->getCMSLink('[spam-filter]CMS_page_id[spam-filter]', '[spam-filter]CMS_page_name[spam-filter]')|escape:'html':'UTF-8'}" title="{l s='[spam-filter]CMS_full_name[spam-filter]' mod='[spam-filter]Module_name[spam-filter]'}">{l s='[spam-filter]CMS_full_name[spam-filter]' mod='[spam-filter]Module_name[spam-filter]'}</a> For example with the Legal Notice CMS page we have: <a href="{$link->getCMSLink('2', 'legal-notice')|escape:'html':'UTF-8'}" title="{l s='Legal Notice' mod='modulename'}">{l s='Legal Notice' mod='modulename'}</a> Edited October 27, 2014 by titanotam (see edit history) Link to comment Share on other sites More sharing options...
srjacob Posted October 27, 2014 Author Share Posted October 27, 2014 Where do I put this in my html document? That is, the html document (index.html) at location hangatablet.com/patents Link to comment Share on other sites More sharing options...
titanotam Posted October 28, 2014 Share Posted October 28, 2014 Where do I put this in my html document? That is, the html document (index.html) at location hangatablet.com/patents You must put this link to the page that redirect to hangatablet.com/patents page. For example: in the handgatablet,com you put the upper link somewhere, and when user click on it, it redirects to patens page Link to comment Share on other sites More sharing options...
srjacob Posted October 28, 2014 Author Share Posted October 28, 2014 That's not what I want to do. I want the hangatablet.com/patents page to redirect into the Prestashop patent CMS page. Link to comment Share on other sites More sharing options...
parsifal Posted October 29, 2014 Share Posted October 29, 2014 (edited) If your site is hosted on Apache, adding something like this to your root .htaccess file should work: Redirect 301 patents content/20-patents Other web servers (e.g. nginx) should support similar redirect rules through their configuration files... Edited October 29, 2014 by parsifal (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts