Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • christofferl Friend
    #934504

    I would like to use a Menu Module from JED instead of the built in one for this template. I have tried to add the module to the mainnav position but it does not appear. I guess I have to first disable the existing on (?)

    Please let me know how to do this?

    PS. I can publish the menu module in the slideshow position – which proves it works.

    pavit Moderator
    #934678

    Hi

    Mainmenu is published loading the mainnav bloack, you can exclude the mainnav block publishing in the same block a new module position .

    if you look at this file /templates/ja_healthcare/tpls/default.php you will see it loads the mainmenu with

        <?php $this->loadBlock('mainnav') ?>

    That means load the block mainnav.php stored in this folder /templates/ja_healthcare/tpls/blocks/

    So you can create a new module position ( new block ) and call it from your default.php

        <?php $this->loadBlock('newmoduleposition') ?>

    and publish your JED menu in this new position

    Take a look HERE how to create a new position

    Best regards

    christofferl Friend
    #938622

    I have added the code:

    <?php $this->loadBlock('newmainnav') ?>

    … to the default.php file

    I have also cloned the mainnav.php to mainnav-new.php. I have now also added

    <jdoc:include type="modules" name="<?php $this->_p('newmainnav') ?>" />

    … to the block file. I have alos added to the templateDetails.xml

    <position>newmainnav</position>

    However, from here I am lost, what is my next step?

    Also, when doing this … how can I make it future update proof?

    pavit Moderator
    #938627

    You should publish now your new menu module in your new position and assign it to the menu items where you want it to be showed.

    christofferl Friend
    #938633

    I did this actually already.

    I still see the "old" main menu and nothing else.

    Any other ideas on how to solve it?

    I now added backend and FTP data for you to check.

    pavit Moderator
    #938635
    This reply has been marked as private.
    christofferl Friend
    #938646

    Ahh… sorry. I recently increased the security. Please see updated admin details above. Thank you!

    pavit Moderator
    #938648

    Hi there

    You forgot to change the block name into default.php file you named it mainnav-new , i changed it and as you can see now your new menu module is showing, but you forgot to remove the mainnav and search block from this file mainnav-new.php so now it is loading your new menu plus the mainnav and search block , so remove them from line 46 to 59

    Take always a backup file first to make any change to it so you can easily restore original settings.

    christofferl Friend
    #938750

    Thank you very much!

    How can I do so that this solution now will not be destroyed if I update the template or the framework?

    pavit Moderator
    #938885

    Thank you very much!

    How can I do so that this solution now will not be destroyed if I update the template or the framework?

    Hi

    You can use local folder to isolate template customization , Take a look at the documentation HERE

    christofferl Friend
    #940065

    I just noticed a short message which I would like to get rid of at the bottom of the website.
    Please let me know how to remove it.
    See attached image for better understanding


    1. ja_message
    pavit Moderator
    #940141

    Hi

    That message is appearing because layout that your template is loading is missing of the block newmainnav

    Verify that in your /templates/ja_healthcare/tpls/blocks/ you have the newmainnav.php file as i already mentioned above.

    <?php $this->loadBlock('newmainnav') ?>

    Best regards

    christofferl Friend
    #940338

    Sorry this is a little bit too deep for me. I have tried my best and actually I got it working and all is looking exactly has I would like to have … but for the message at the bottom.

    Please if possible help me to get rid of it.

    pavit Moderator
    #940401

    Hi there

    I removed the part of code calling the block , it is now removed from your default layout

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 13 replies, has 2 voices, and was last updated by  pavit 8 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum