Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Page 1 of 2
Shift Advanced Search link to the header
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

I want to shift the advanced search link found in the footer to the header (below the site logo)
Can someone please tell me how I can do it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
iblastoff
Sr. Member
 
Total Posts:  253
Joined:  2007-08-31
 

read http://www.magentocommerce.com/design_guide

 Signature 

stevelam.ca | xpattern.net

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bill007
Sr. Member
 
Avatar
Total Posts:  115
Joined:  2008-01-15
New Zealand
 

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

This link is my tutorial on it http://www.magentocommerce.com/boards/viewthread/3454/

Look at this site http://www.greenstone.maori.nz

I have taken only the footer page links
E.G.( About us Terms and Conditions Etc )and place them in the Horizontal header nav Bar

Regards Bill Let me Know how you get on

http://www.freeblog.co.nz

 Signature 

http://www.billbailey.co.nz Blog about interesting things
http://www.freeblog.co.nz Free Blogging Platform
“Life is about People and the way we treat them”

Regards Bill007

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Thanks Bill.

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ohminu
Magento Team
 
Avatar
Total Posts:  171
Joined:  2007-08-07
Portland, OR
 

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)

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bill007
Sr. Member
 
Avatar
Total Posts:  115
Joined:  2008-01-15
New Zealand
 

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

Bill007

http://www.freeblog.co.nz

 Signature 

http://www.billbailey.co.nz Blog about interesting things
http://www.freeblog.co.nz Free Blogging Platform
“Life is about People and the way we treat them”

Regards Bill007

 
Magento Community Magento Community
Magento Community
Magento Community
 
ohminu
Magento Team
 
Avatar
Total Posts:  171
Joined:  2007-08-07
Portland, OR
 

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.

Now I go to catalogsearch.xml, and cut this:

<action method="addLink" translate="label title" module="catalogsearch"><label>Advanced Search</label><url helper="catalogsearch/getAdvancedSearchUrl" /><title>Advanced Search</title></action>
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:
<reference name="header_links">
<
action method="addLink" translate="label title" module="catalogsearch"><label>Advanced Search</label><url helper="catalogsearch/getAdvancedSearchUrl" /><title>Advanced Search</title></action>
</
reference>

Now I have Advanced search in the header instead of the footer. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bill007
Sr. Member
 
Avatar
Total Posts:  115
Joined:  2008-01-15
New Zealand
 

That Is brilliant thanks for that, this will be a helpful tutorial

Nice One ohminu

Kind Regards Bill007 grin

 Signature 

http://www.billbailey.co.nz Blog about interesting things
http://www.freeblog.co.nz Free Blogging Platform
“Life is about People and the way we treat them”

Regards Bill007

 
Magento Community Magento Community
Magento Community
Magento Community
 
priyul
Jr. Member
 
Total Posts:  3
Joined:  2008-02-24
 

<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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ohminu
Magento Team
 
Avatar
Total Posts:  171
Joined:  2007-08-07
Portland, OR
 

Do you have the latest release?

 
Magento Community Magento Community
Magento Community
Magento Community
 
priyul
Jr. Member
 
Total Posts:  3
Joined:  2008-02-24
 

no I hav magneto (ver. 0.7.15480) . PLZ could u help[ me with this

ASAP

 
Magento Community Magento Community
Magento Community
Magento Community
 
ohminu
Magento Team
 
Avatar
Total Posts:  171
Joined:  2007-08-07
Portland, OR
 

priyul-

I recommend you install the latest version and follow the instructions in this thread smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
priyul
Jr. Member
 
Total Posts:  3
Joined:  2008-02-24
 

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Thanks Ohminu, its working fine

 
Magento Community Magento Community
Magento Community
Magento Community
 
randomutterings
Jr. Member
 
Total Posts:  19
Joined:  2008-02-28
 

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. 

<action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title><prepare>true</prepare></action>

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
ohminu
Magento Team
 
Avatar
Total Posts:  171
Joined:  2007-08-07
Portland, OR
 

@randomutterings

Please disable your cache in Admin -> Cache Management

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52360 users|816 users currently online|105718 forum posts