Luke_Urtnowski Posted September 27, 2013 Share Posted September 27, 2013 Im trying to emulate this function (clicking the "Read more" link to open up a given recipe) http://www.totallyswedish.com/en/recipes So I created http://www.swedishsweetsandimports.com/content/6-recipes and need help to figure out how to open up the other page, while keeping everything surrounding the editable area. Link to comment Share on other sites More sharing options...
NemoPS Posted September 28, 2013 Share Posted September 28, 2013 You can use fancybox for this. I've not tested it, but you can try adding the class 'fancybox' to the link from the back office using the visual editor. If it doesn't work, as fancybox might not be embedded in the page. you'll need to add custom javascript to cms.tpl, or create a small module to manage it. In any case, you'll have to make sure you embed jquery.fancybox in the page. This is Prestashop's way, of course you can use other lightbox tools, but either choice will imply you know javascript Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted September 28, 2013 Author Share Posted September 28, 2013 Dang! added that class to the link and a 404 page still shows up. Im not to bad with javascript, so where do I even find the cms.tpl file and what javascripts do I use (is there an example or something) Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted September 28, 2013 Author Share Posted September 28, 2013 (edited) oh duh! the .tpl file is in my themes folder did a google search of fancybox and I think I didn't explain myself again, What im trying to copy is at http://www.totallyswedish.com/en/recipes. If the read more link is clicked, this page opens up http://www.totallyswedish.com/en/recepies/rye-tea-cakes I used the CMS thing to create http://www.swedishsweetsandimports.com/content/6-recipes, but how do I create the page where the users can find the whole recipe? Edited September 28, 2013 by Luke_Urtnowski (see edit history) Link to comment Share on other sites More sharing options...
stottycabanas Posted October 1, 2013 Share Posted October 1, 2013 You could just create another CMS page (e.g. called Dajmtarta) with the full recipe on it, and edit the link for 'Read more' to point to it. Link to comment Share on other sites More sharing options...
Luke_Urtnowski Posted October 1, 2013 Author Share Posted October 1, 2013 Why didn't I think of that Thanks... Link to comment Share on other sites More sharing options...
Recommended Posts