the_raven Posted January 12, 2014 Share Posted January 12, 2014 (edited) Hi expert's I have a bunch of keywords that i want convert them to hyperlink . for example a keyword on Feature Tab on products page.or same keyword on CMS pages. for another example i want to Display "Intel" keyword as a Hyperlink on my whole shop. how define this list of keywords ( by using arrays ) and where we must define this list . thank you. Edited February 9, 2014 by the_raven (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2014 Share Posted January 12, 2014 in temaplate files, where is the variable with contents you can use modifier replace example of cms page: cms.tpl there is a code: {$cms->content} change it to: {$cms->content|replace:'prestashop':'<a href="http://prestashop.com">prestashop</a>'} you can do the same for all other variables with contents 1 Link to comment Share on other sites More sharing options...
the_raven Posted January 13, 2014 Author Share Posted January 13, 2014 (edited) Thanx for solution it works well , but what we can do for a bunch of Keywords ? for example i have 100 keywords that i want to convert them to hyperlinks. may i use an "array" ? sorry im not good on coding, please give me more details. thank you Edited February 9, 2014 by the_raven (see edit history) Link to comment Share on other sites More sharing options...
the_raven Posted February 9, 2014 Author Share Posted February 9, 2014 any suggestion ? Link to comment Share on other sites More sharing options...
vekia Posted February 9, 2014 Share Posted February 9, 2014 i missied your reply before, you can use array with list of phrases to change {$cms->content|replace:array("fruits", "vegetables", "fiber"):array("link to fruits", "link to vegetables", "link to fiber")} 1 Link to comment Share on other sites More sharing options...
the_raven Posted February 9, 2014 Author Share Posted February 9, 2014 thank's for your replay.it's works like a charm just need to change the Double quotation with Single quotation in arrays definment, to work. Link to comment Share on other sites More sharing options...
kathykeen Posted October 30, 2014 Share Posted October 30, 2014 Here's a dumb question but I am losing my mind trying to figure out the answer : / How can I add a hyperlink to an image? I want people to click on this banner and go to a size chart. I see where it says Link: and this size chart is in my library of images, but I don't know how to create a url access to it. My deepest thanks to anyone who can show me the way... Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2014 Share Posted October 30, 2014 the question is where you want to add this link i don't see any information related to this information what part of shop? Link to comment Share on other sites More sharing options...
kathykeen Posted October 31, 2014 Share Posted October 31, 2014 Hi I created a small banner on my home page. I would like people be able to click on this and go to a pdf with information they can print out. Hope this is clearer. Thanks! Link to comment Share on other sites More sharing options...
vekia Posted November 2, 2014 Share Posted November 2, 2014 <a href="http://link.to.your/pdf-file.pdf"><img src="http://link.to.your.banner.jpg"></a> you have to upload pdf file somewhere and instead of http://link.to.your/pdf-file.pdf use link to your pdf file. Link to comment Share on other sites More sharing options...
Recommended Posts