I’m in the process of breaking apart a few of the page elements up so that I can use them in a more freely in our site template, and I appear to have come across what appears to be a bug (i think).
The problem relates to the top links (My Account, My Wishlist etc) and links generated in the footer (Site Map, Search Terms etc) and that they appear to be both using the same bit of code to generate the links, which is think is incorrect.
There is no bug or issue, this is just a way of using templates. In the default theme, both header links and footer links are using the same template file. Why not? In your template, you can easily use different templates as this is done in the modern theme.
Just copy links.phtml and name it footer_links.phtml and declare your new template in page.xml.
find
he, has tried that solution but it has not served. It keeps on using the template of the file links.phtml
I have checked different times that the name was correctly written. I don’t know what other to do…
It appears to add a link to the links module - this particular one is in the customers.xml layout -
So _it looks like_ adding links is done through the different layouts - you can add them based on where the customer is in the process (are they logged in and out, etc)
That’s all the information I have right now - I’m still trying to figure out why some of mine aren’t showing up. .. .
I was able to remove links by changing their reference (the above link), so hopefully I won’t have a problem creating the new reference where I want the ones I took out of the top. I haven’t gotten that far yet, though.
Thanks for the followup - I have understood the links (I think) - I ran into a problem where I was using my own header (pageheader) structural block and couldn’t get the links box to show up in there - finally got that working.
now I am running into the situation where the actual add links need to be moved to the cms.xml page before they’ll show up - for instance, the customer.xml “my account” link is not showing up on my pages - thought that was weird - but I was getting the same behaviour from the checkout links as well.
Can anyone comment on the best practice of putting reference block references into the cms.xml file instead of elsewhere? For instance - I put a bunch of static block in there that will be there for most pages.