- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2015
01:47 PM
03-25-2015
01:47 PM
Re: How to add search bar to custommenu navigation?
Heres the local.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<default>
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
<reference name="head">
<action method="addCss">
<stylesheet>css/color.css</stylesheet>
</action>
<action method="addCss">
<stylesheet>css/skin.css</stylesheet>
</action>
<action method="addCss">
<stylesheet>css/media-small.css</stylesheet>
</action>
<action method="addCss">
<stylesheet>css/media-480.css</stylesheet>
</action>
<action method="addCss">
<stylesheet>css/media-800.css</stylesheet>
</action>
<action method="addItem">
<type>skin_js</type>
<name>js/respond.js</name>
<params />
<if>lt IE 9</if>
</action>
</reference>
<reference name="right">
<block type="cms/block" name="cms_right_info_block" before="-">
<action method="setBlockId">
<block_id>right_info_block</block_id>
</action>
</block>
/*<block type="cms/block" name="right_info_block2" block_id="right_info_block2" after="-"/>*/
<block type="cms/block" name="right_info_block2" after="-">
<action method="setBlockId"><block_id>right_info_block2</block_id></action>
</block>
<action method="unsetChild"><alias>cart_sidebar</alias></action>
<action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
<action method="unsetChild"><alias>right.reports.product.compared</alias></action>
<action method="unsetChild"><alias>catalog.compare.sidebar</alias></action>
<remove name="paypal.partner.right.logo" />
<remove name="right.permanent.callout" />
<remove name="left.reports.product.viewed" />
</reference>
<reference name="footer">
<remove name="copyright.blog.footer" />
<block type="cms/block" name="page_footer_block" before="-">
<action method="setBlockId">
<block_id>page_footer_block</block_id>
</action>
</block>
</reference>
<reference name="left">
<block type="cms/block" name="cms_left_info_block" after="catalogsearch.leftnav" before="newsletter">
<action method="setBlockId">
<block_id>left_info_block</block_id>
</action>
</block>
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" before="-">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
<block type="reports/product_viewed" after="cart_sidebar" name="left.reports.product.viewed" template="reports/product_viewed.phtml" />
<block type="reports/product_compared" after="cart_sidebar" name="left.reports.product.compared" template="reports/product_compared.phtml" />
<block type="catalog/product_compare_sidebar" after="cart_sidebar" name="left.catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml" />
<remove name="left.permanent.callout" />
</reference>
<reference name="header">
<block type="directory/currency" name="currency_header" as="currency_header" before="-" template="directory/currency.phtml" />
<block type="checkout/cart_sidebar" name="header_cart" template="checkout/cart/sidebar_top.phtml" before="-">
<action method="addItemRender">
<type>simple</type>
<block>checkout/cart_item_renderer</block>
<template>checkout/cart/sidebar/default.phtml</template>
</action>
<action method="addItemRender">
<type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block>
<template>checkout/cart/sidebar/default.phtml</template>
</action>
<action method="addItemRender">
<type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block>
<template>checkout/cart/sidebar/default.phtml</template>
</action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" />
</block>
<remove name="top.links" />
<block type="page/template_links" name="advanced_search_link" as="advanced_search_link" template="page/template/alinks.phtml">
<action method="addLink" translate="label title" module="catalogsearch">
<label>Advanced Search</label>
<url helper="catalogsearch/getAdvancedSearchUrl" />
<title>Advanced Search</title>
</action>
</block>
<block type="page/template_links" name="top.links.custom" as="topLinksCustom">
<block type="checkout/links" name="checkout_cart_link">
<action method="addCheckoutLink" />
</block>
</block>
<block type="page/template_links" template="page/template/clinks.phtml" id="top.links.cart" name="top.links.cart" as="topLinksCart">
<block type="wishlist/links" name="wishlist_link" />
<action method="addLinkBlock">
<blockName>wishlist_link</blockName>
</action>
</block>
<block type="cms/block" name="quick_access_links">
<action method="setBlockId">
<block_id>quick_access_links</block_id>
</action>
</block>
<block type="cms/block" name="head_phone_block">
<action method="setBlockId">
<block_id>head_phone_block</block_id>
</action>
</block>
<block type="cms/block" name="top_toolbar">
<action method="setBlockId">
<block_id>top_toolbar</block_id>
</action>
</block>
<block type="cms/block" name="top_toolbar_static">
<action method="setBlockId">
<block_id>top_toolbar_static</block_id>
</action>
</block>
<block type="cms/block" name="submenu_block">
<action method="setBlockId">
<block_id>submenu_block</block_id>
</action>
</block>
<block type="cms/block" name="search_block_content" before="">
<action method="setBlockId">
<block_id>search_block_content</block_id>
</action>
</block>
<block type="newsletter/subscribe" name="header.newsletter" as="header.newsletter" template="newsletter/header_subscribe.phtml" />
<block type="page/switch" name="store_switcher" as="store_switcher" template="page/switch/stores.phtml" />
</reference>
<reference name="footer">
<action method="unsetChild">
<alias>store_switcher</alias>
</action>
</reference>
<!--Begin cart top-bar -->
<reference name="header">
<block type="checkout/cart_sidebar" name="cart_topbar" template="checkout/cart/topbar.phtml">
<action method="addItemRender">
<type>simple</type>
<block>checkout/cart_item_renderer</block>
<template>checkout/cart/sidebar/default.phtml</template>
</action>
<action method="addItemRender">
<type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block>
<template>checkout/cart/sidebar/default.phtml</template>
</action>
<action method="addItemRender">
<type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block>
<template>checkout/cart/sidebar/default.phtml</template>
</action>
</block>
</reference>
<!--End cart top-bar -->
<reference name="top.links.custom">
<action method="addLink" translate="label title" module="customer">
<label>My Account</label>
<url helper="customer/getAccountUrl" />
<title>My Account</title>
<prepare />
<urlParams />
<position>10</position>
</action>
</reference>
</default>
<catalog_category_default translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
<reference name="content">
<reference name="category.products">
<reference name="product_list">
<action method="setColumnCount">
<count>5</count>
</action>
<action method="setImageSize">
<size>135</size>
</action>
</reference>
</reference>
</reference>
</catalog_category_default>
<catalog_category_layered translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
<reference name="content">
<reference name="category.products">
<reference name="product_list">
<action method="setColumnCount">
<count>5</count>
</action>
<action method="setImageSize">
<size>135</size>
</action>
</reference>
</reference>
</reference>
</catalog_category_layered>
<catalogsearch_result_index translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
<reference name="content">
<reference name="search.result">
<reference name="search_result_list">
<action method="setColumnCount">
<count>5</count>
</action>
<action method="setImageSize">
<size>135</size>
</action>
</reference>
</reference>
</reference>
</catalogsearch_result_index>
<catalogsearch_advanced_index translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
<reference name="content">
<reference name="search.result">
<reference name="search_result_list">
<action method="setColumnCount">
<count>5</count>
</action>
<action method="setImageSize">
<size>135</size>
</action>
</reference>
</reference>
</reference>
</catalogsearch_advanced_index>
<catalogsearch_advanced_result translate="label">
<update handle="page_two_columns_left" />
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
</catalogsearch_advanced_result>
<contacts_index_index translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
</contacts_index_index>
<review_product_list translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
</review_product_list>
<review_product_view translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
</review_product_view>
<sendfriend_product_send translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
</sendfriend_product_send>
<tag_list_index translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
</tag_list_index>
<catalog_product_view translate="label">
<reference name="root">
<action method="setTemplate">
<template>page/2columns-left.phtml</template>
</action>
</reference>
<reference name="left">
<block type="catalog/product_list_related" name="catalog.product.related.left" before="-" template="catalog/product/list/related.phtml" />
</reference>
</catalog_product_view>
<customer_logged_in>
<reference name="top.links.custom">
<action method="addLink" translate="label title" module="customer">
<label>Log Out</label>
<url helper="customer/getLogoutUrl" />
<title>Log Out</title>
<prepare />
<urlParams />
<position>100</position>
</action>
</reference>
</customer_logged_in>
<customer_logged_out>
<reference name="top.links.custom">
<action method="addLink" translate="label title" module="customer">
<label>Log In</label>
<url helper="customer/getLoginUrl" />
<title>Log In</title>
<prepare />
<urlParams />
<position>100</position>
</action>
</reference>
<remove name="reorder" />
</customer_logged_out>
<customer_account>
<reference name="left">
<action method="unsetChild">
<name>customer_account_navigation</name>
</action>
</reference>
<reference name="content">
<action method="insert">
<blockName>customer_account_navigation</blockName>
<after>0</after>
</action>
</reference>
</customer_account>
<wp_2columns_right>
<reference name="right">
<block type="reports/product_viewed" after="catalog.product.related" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
<block type="reports/product_compared" after="catalog.product.related" name="right.reports.product.compared" template="reports/product_compared.phtml" />
<block type="catalog/product_compare_sidebar" after="catalog.product.related" name="right.catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml" />
<block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml" after="catalog.product.related">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
<reference name="root">
<action method="setTemplate">
<template>page/2columns-right.phtml</template>
</action>
</reference>
</wp_2columns_right>
<catalog_product_view>
<update handle="wp_2columns_right" />
</catalog_product_view>
<review_product_list>
<update handle="wp_2columns_right" />
</review_product_list>
<review_product_view>
<update handle="wp_2columns_right" />
</review_product_view>
<cms_index_index>
<reference name="footer">
<action method="unsetData"><key>cache_lifetime</key></action>
<action method="unsetData"><key>cache_tags</key></action>
<block type="core/template" name="designby_link" as="designby_link" template="page/html/designby.phtml" after="-" />
</reference>
</cms_index_index>
</layout>I'll try the drawCustomMenuItem way