This is complex how ever you look at it
I had to make a new function called Mage_Page_Block_Html_Nav and place it in the Mage Directory
and pull it in to the templating system --- A lot of Hours but it does look great well more user friendly
I think this needs to be addressed as you shouldn’t have to dig outside of the frontend folder and the templating code held with in
However I have achieved something similar to what you want and this could be applied and tweeked to suit you to your situation
What I plan is to create a new link in the header for the advanced search page.
I need not shift the link from the footer.
Also is the advanced search link a special kind of link i.e. SEO link?
Can I find any documentation on SEO links used in Magento?
adityak,
The seo links at the bottom comes from the block name="footer_links" from multiple xml files (catalog.xml, catalogsearch.xml and contacts.xml)
Ok ohminu can you explain how to do this step by step
I explored every kind of option and still could not achieve what I wanted
I did go a long complex way around to acheive the page links only into top Nav Bar in the following http://www.greenstone.maori.nz
but if this could be done more easily that would be cool
Ok- Say you want to separate the “Advanced Search” from the rest of the SEO links and place it at the top.
First, I know that the SEO link must be assigned somewhere in the layout under the footer block because it’s being pulled through ‘<?=$this->getChildHtml()?>’ of template/page/html/footer.phtml.
So I first open up layout/page.xml and look through the list of children under the footer block - and of course, there, I find <block name="footer_links">, which is what calls the SEO links.
Now that I know that layout updates reference the SEO links via the name="footer_links", I’ll just do a search in all the xml files for <reference name="footer_links">. I find the references for the footer_links block in catalog.xml (which calls ‘Site Map’), catalogsearch.xml(which calls ‘Search Terms’ and ‘Advanced Search’) and contacts.xml (which calls ‘Contact Us’).
Now I want to take away ‘Advanced Search’ from that bunch and make it it’s own thing in the header.
So first I’m going to go back to page.xml, and create a new block <block type="core/template_links" name=”header_links” as=”header_links” template="page/html/links.phtml"/> and nest it inside <block name="header">. I’ve made the layout updates to expect this link in header.phtml. I open template/page/html/header.phtml, and type in <?=$this->getChildHtml('header_links')?> where I want my link to reside.
out from <reference name="footer_links">. I create new lines to reference the new header_links block I created, and nest the cut out code inside it like so:
<action method="addLink" translate="label title” module="catalogsearch"><label>Advanced Search</label><url helper="catalogsearch/getAdvancedSearchUrl" /><title>Advanced Search</title></action>
I’m not able to find the above code in catalogsearch.xml, . So could u plz help me out with advanced search link only to be besides the search textbox link.
I’ll be grateful to you if u could help me ASAP. THANX a lot in advance.
I did follow all the instructions but cant revert back to the new version. PLZ help me it wont take long 4 u. I’m in aspot of bother and really apprciate ur help ohminu.
I am trying to remove the site map link from the footer links and add it to a static block. I removed the following line from catalog.xml but the site map link still shows up on the site.
I thought it might be reading the xml file from the default theme instead so I removed it there also but the site map link still shows up. What am I doing wrong?