Jump to content

[SOLVED] js links to footer 1.4.0.17 ?


Recommended Posts

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

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

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

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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...