Rhobur Posted March 31, 2011 Share Posted March 31, 2011 I need to add some javascript links to footer in order to keep some directories listings but seems that I cannot do this in 1.4.0.17 being no way to edit footer.tpl anymore. What can I do ? Link to comment Share on other sites More sharing options...
jfriday Posted April 1, 2011 Share Posted April 1, 2011 What do you mean, no way to edit footer.tpl anymore? What theme are you using? There should be a TPL file for the footer... Link to comment Share on other sites More sharing options...
Rhobur Posted April 1, 2011 Author Share Posted April 1, 2011 Yes, thereis a footer.tpl but only with the hook code, nothing else, links are in blockvariouslinks module but found nothing I could change there. Link to comment Share on other sites More sharing options...
jfriday Posted April 1, 2011 Share Posted April 1, 2011 Since you do have a footer.tpl file, you can therefore insert the script there. If you want to put it in the blockvariouslinks module, there should be a blockvariouslinks.tpl file under modules/blockvariouslinks. But then the code will only render on pages where that module displays. Link to comment Share on other sites More sharing options...
Rhobur Posted April 2, 2011 Author Share Posted April 2, 2011 blockvariouslinks.tpl works and displays the links I need but the problem is that it displays them vertically instead of horizontally like it shouls and like it does on localhost and I don't know what the problem is, basically is the identical file as in localhost still it displays the links vertical, see the site in sig. Link to comment Share on other sites More sharing options...
jfriday Posted April 2, 2011 Share Posted April 2, 2011 They're displaying like that because they're in an unordered list. I'm guessing you want to display them horizontally, though, so you'll just want to go into the tpl file, after the foreach statement, and put each CMS link in it's own element, floating left in it's class in the stylesheet. If you need them all centered, just put a div around that whole section of code and style it to margin:auto. Link to comment Share on other sites More sharing options...
Rhobur Posted April 2, 2011 Author Share Posted April 2, 2011 Thank you for all your support until now. I must be a slow learner, what exactly should I change in this line {$cmslink.meta_title|escape:'htmlall':'UTF-8'} which is the only one in the foreach statement from blockvariouslinks.tpl ? Link to comment Share on other sites More sharing options...
jfriday Posted April 2, 2011 Share Posted April 2, 2011 Yes, there should only be one - sorry for not clarifying. what that code means, in English, is "for each instance of the CMS link, format it like this"Each of those variables is then called up out of the database.I would personally take it out of the li tag, remove the ul tag surrounding it and put it in it's own span tag. For example: {$cmslink.meta_title|escape:'htmlall':'UTF-8'} Then modify the item class in your stylesheet. Or, in case that class applies to other elements in your template, give it it's own new class. I'm sure you'll need a float:left, you'll just have to play around with the CSS after that to get it to look how you want.I hope that's more clear! Link to comment Share on other sites More sharing options...
Rhobur Posted April 2, 2011 Author Share Posted April 2, 2011 I'll try that and get back with the result.Thank you again !Have a nice weekend ! Link to comment Share on other sites More sharing options...
Rhobur Posted April 3, 2011 Author Share Posted April 3, 2011 It works ! I did what you suggested and voila! problem solved; thank you for your help and patience, I will mark this as solved and refer to it when similar questions appear.Big cheers, Jfriday ! Link to comment Share on other sites More sharing options...
Rhobur Posted April 3, 2011 Author Share Posted April 3, 2011 It remains however the question why it worked without any modification in localhost but not on liveserver :-) Link to comment Share on other sites More sharing options...
in2sky Posted April 13, 2011 Share Posted April 13, 2011 I'm actually having a hard time with blockvariouslinks in 1.4 because the module is just not there, or was the name changed to something else?thanks. Link to comment Share on other sites More sharing options...
Rhobur Posted April 14, 2011 Author Share Posted April 14, 2011 FTP in yoursite/modules and you'll find blockvariouslinks there and you can edit its files, at least so I did. Link to comment Share on other sites More sharing options...
in2sky Posted April 14, 2011 Share Posted April 14, 2011 found it, thanks! Link to comment Share on other sites More sharing options...
htech Posted April 17, 2011 Share Posted April 17, 2011 hey guys,prestashop 1.4 doesnt have BlockVariousLinks.... it is now BLOCKCMSlocations: /modules/blockcms&/themes/prestashop(themename)/css/modules/blockcms Link to comment Share on other sites More sharing options...
Rhobur Posted April 17, 2011 Author Share Posted April 17, 2011 Course it does and works too, mot everybody enables the blockcms module 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