I need to add a privacy policy and terms and conditions link in the footer and I’m having such a hard time figuring this out. It seems that the static block ‘footer_links’ no longer works with the modern theme and instead is being added on the fly from the xml files in the layout folder.
I’ve already created the pages in the CMS > Static Blocks and just need someone to direct me.
From what I’ve learned so far i see that ‘Search Terms’ & ‘Advanced Search’ is pulled through catalogsearch.xml, the ‘Contact Us’ from contacts.xml, and ‘Site Map’ from catalog.xml. I’m no programmer so please correct me if I’m wrong.
come on… someone has to know this. The author? Developers? Anyone? Oscommerce is nowhere near as good as Magento… but damn.. it was a lot easier to modify (though somewhat time consuming).
Once it’s done, go to ‘CMS > Manage Page’, Add new page and enter your page content (privacy policy for example) directly in to the content area. Note that the ’SEF URL Identifie‘ should match the ‘<li ><a href="{{store url=""}}privacy-policy”>Privacy Policy</a></li>’ in your footer_links static block.
In the ‘Custom Design’ section, select your desired Layout (template)
I just downloaded the Modern Theme so that I can point your to the right direction.
In the page/template/footer_links.phtml
add these directly in the <ul>...</ul>if you want them show in the same line as shown in modern theme
<li><a href="<?php echo $this->getUrl('about-ramco-worldwide')?>"><?php echo $this->__('About Ramco Worldwide') ?></a></li>
<li><a href="<?php echo $this->getUrl('customer-service')?>"><?php echo $this->__('Customer Service') ?></a></li>
otherwise create a new set of <ul>...</ul> right after the first set.
<ul> <li><a href="<?php echo $this->getUrl('about-ramco-worldwide')?>"><?php echo $this->__('About Ramco Worldwide') ?></a></li>
<li><a href="<?php echo $this->getUrl('customer-service')?>"><?php echo $this->__('Customer Service') ?></a></li>
</ul>
Once it’s done, go to ‘CMS > Manage Page’, Add new page and enter your page content (About Ramco Worldwid) directly in to the content area. Note that the ’SEF URL Identifie‘ should match the ‘<a href="<?php echo $this->getUrl('about-ramco-worldwide')?>">.
I have also done it this way, although I removed the whole PHP-code in the footer_links.html and just added the <li>’s that I needed and created static CMS-pages for each of them.
If you would like to use the static block for all of your footer links and not use the ones from the xml files at all, then delete or comment out the following line in the same file:
Thank you chinesedream and i960. One more thing to add… In order to get everything matching the other links exactly, be sure to add the proper class in the <ul> tag.
Example: Open your footer_links cms static page,
<ul class="footer-links”>
It calls the method getLinks(). It allows for links to be dynamic, so you can show whatever you want depending on the page and whatever function is turned on, instead of a standard static footer.
Just look through the xml files under the layout directory.
Do a batch search for:
<action method="addLink"
and
reference name="footer_links"
You’ll get all the xml files that containing that “addLink” method. Modify as you please.
Or you can just use a static footer as some have suggested.
I tried that (red) the links r fine functional but i get like 3-4 rows of the same links repeating themselfs. i dunno whats goin on.
i also tried the second one (green) that works fine but i just need to add the “Example | Example” that line in the middle can anyone tell me how i tried the manual “|” but it looks bluury and low quality compared to the ones above. THANKX in advance
chinesedream - 26 May 2008 01:18 AM
I just downloaded the Modern Theme so that I can point your to the right direction.
In the page/template/footer_links.phtml
add these directly in the <ul>...</ul>if you want them show in the same line as shown in modern theme
<li><a href="<?php echo $this->getUrl('about-ramco-worldwide')?>"><?php echo $this->__('About Ramco Worldwide') ?></a></li>
<li><a href="<?php echo $this->getUrl('customer-service')?>"><?php echo $this->__('Customer Service') ?></a></li>
otherwise create a new set of <ul>...</ul> right after the first set.
<ul> <li><a href="<?php echo $this->getUrl('about-ramco-worldwide')?>"><?php echo $this->__('About Ramco Worldwide') ?></a></li>
<li><a href="<?php echo $this->getUrl('customer-service')?>"><?php echo $this->__('Customer Service') ?></a></li>
</ul>
Once it’s done, go to ‘CMS > Manage Page’, Add new page and enter your page content (About Ramco Worldwid) directly in to the content area. Note that the ’SEF URL Identifie‘ should match the ‘<a href="<?php echo $this->getUrl('about-ramco-worldwide')?>">.