Pagina 1 van 1

Pagina's toevoegen aan menubalk

Geplaatst: 14 april 2016
door Funnyric
Ik probeer bestaande pagina's zoals "over ons" enz aan de menubalk toe te voegen maar tevergeefs.
Nu staat er standaard "mijn account - afrekenen - inloggen" en hiernaast wil ik pagina's toevoegen.
Ook de bestaande "mijn account - afrekenen - inloggen" kan ik nergens in mijn admin terugvinden.

Ik werk met Magento  versie 1.9.2.4

Re: Pagina's toevoegen aan menubalk

Geplaatst: 14 april 2016
door puurhost
Menu's zijn in Magento Static Blocks, die zal je moeten aanpassen en daarna niet vergeten om de Cache opnieuw op te laten bouwen!

Re: Pagina's toevoegen aan menubalk

Geplaatst: 14 april 2016
door Funnyric
puurhost schreef:Menu's zijn in Magento Static Blocks, die zal je moeten aanpassen en daarna niet vergeten om de Cache opnieuw op te laten bouwen!
Normaal gesproken moet dat inderdaad op deze manier maar om 1 of andere reden werkt dat bij mij niet.
In het lijstje "Static Blocks" staan de volgende blocken
Footer Links
Contact block
Map Content
Banner home
Banner colCookie restriction notice
Nergens zie ik navigation of menubalk of zoiets. Ook een Block aanmaken met de naam "test" en daarna Cache legen enz geeft geen resultaat

Re: Pagina's toevoegen aan menubalk

Geplaatst: 16 april 2016
door AbcWinkel
Ga naar het volgende bestand: /app/design/frontend/{JOUNTHEMA}/default/template/page/html/topmenu.phtml

Dit bestand ziet er nu zo uit:

Code: Selecteer alles

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Top menu for store
 *
 * @see Mage_Page_Block_Html_Topmenu
 */
?>
<?php $_menu = $this->getHtml('level-top') ?>
<?php if($_menu): ?>
<div class="nav-container">
    <ul id="nav">
        <?php echo $_menu ?>
    </ul>
</div>
<?php endif ?>
Je moet deze regel in het menu toevoegen:
<a href="[Link URL]">[Link Tekst]</a>
Je moet die onder deze regel plaatsen: <?php echo $_menu ?>

Dit zou het moeten worden:

Code: Selecteer alles

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Top menu for store
 *
 * @see Mage_Page_Block_Html_Topmenu
 */
?>
<?php $_menu = $this->getHtml('level-top') ?>
<?php if($_menu): ?>
<div class="nav-container">
    <ul id="nav">
        <?php echo $_menu ?>
    <a href="[Link URL]">[Link Tekst]</a>
</ul>
</div>
<?php endif ?>