Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyNamespace_AuctionExtend_IndexController extends Mage_Core_Controller_Front_Action {
- public function indexAction() {
- $this->loadLayout();
- $block = $this->getLayout()->createBlock(
- 'Mage_Core_Block_Template',
- 'auctionlist',
- array('template' => 'auctionlist/auctionlist.phtml')
- );
- $this->getLayout()->getBlock('root')->setTemplate('page/2columns-right.phtml');
- $this->getLayout()->getBlock('content')->setTitle(Mage::helper('core')->__('Auktionsliste'))->append($block);
- $this->getLayout()->getBlock('head')->setTitle(Mage::helper('core')->__('Auktionsliste'));
- $this->_initLayoutMessages('core/session');
- $this->renderLayout();
- }
- }
- <customer_account_login>
- <reference name="breadcrumbs">
- <action method="addCrumb">
- <crumbName>Home</crumbName>
- <crumbInfo>
- <label>Home</label>
- <title>Home</title>
- <link>/</link>
- </crumbInfo>
- </action>
- </reference>
- </customer_account_login>
- <auctionlist_index>
- <reference name="breadcrumbs">
- <action method="addCrumb">
- ...
- </action>
- </reference>
- </auctionlist_index>
- public function IndexAction() {
- $this->loadLayout();
- $this->getLayout()->getBlock("head")->setTitle($this->__("Auktionsliste"));
- $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
- $breadcrumbs->addCrumb("home", array(
- "label" => $this->__("Home Page"),
- "title" => $this->__("Home Page"),
- "link" => Mage::getBaseUrl()
- ));
- $breadcrumbs->addCrumb("Auktionsliste", array(
- "label" => $this->__("Auktionsliste"),
- "title" => $this->__("Auktionsliste")
- ));
- $this->renderLayout();
- }
- $breadcrumbs = $this->getLayout()->getBlock('breadcrumbs');
- $breadcrumbs->addCrumb('home', array('label' => Mage::helper('cms')->__('Home'), 'title' => Mage::helper('cms')->__('Home Page'), 'link' => Mage::getBaseUrl()));
- $breadcrumbs->addCrumb('Custom', array('label' => 'Custom', 'title' => 'Custom'));
- echo $this->getLayout()->getBlock('breadcrumbs')->toHtml();
- // get breadcrumbs object
- // Magento Breadcrumbs Custom Pages
- $_getbreadcrumbs = $this->getLayout()->getBlock('breadcrumbs');
- $_getbreadcrumbs->addbreadCrumb('home', array('label'=>Mage::helper('cms')->__('Home'), 'title'=>Mage::helper('cms')->__('Home Page'), 'link'=>Mage::getBaseUrl()));
- $_getbreadcrumbs->addbreadCrumb('country', array('label'=>'Country', 'title'=>'All Countries', 'link'=>'http:// onlinecode.org/magento/onlinecodeName/country'));
- $_getbreadcrumbs->addbreadCrumb('manufacturer', array('label'=>'State', 'title'=>'States'));
- // echo breadcrumbs data
- echo $this->getLayout()->getBlock('breadcrumbs')->toHtml();
- <reference name="breadcrumbs">
- <action method="addbreadCrumb">
- <!-- First breadcrumbs name -->
- <name>Home</name>
- <!-- add label, title, link -->
- <params><label>Home</label><title>Home</title><link>/</link></params>
- </action>
- <action method="addbreadCrumb">
- <!-- add authors -->
- <name>authors</name>
- <!-- add label, title, link -->
- <params><label>Authors</label><title>Authors</title><link>/index.php/managingusers/index/authorlist</link></params>
- </action>
- <action method="addbreadCrumb">
- <!-- add searchlist -->
- <name>searchlist</name>
- <!-- add label, title, link -->
- <params><label>Search List</label><title>SearchList</title><link /></params>
- </action>
- </reference>
- <your_layout_handle>
- <reference name="breadcrumbs">
- <action method="addCrumb">
- <name>Home</name>
- <params><label>Home</label><title>Home</title><link>/</link></params>
- </action>
- <action method="addCrumb">
- <name>New page</name>
- <params><label>newpage</label><title>newpage</title></params>
- </action>
- </reference>
- </your_layout_handle>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement