I have setup a functioning index.php for my custom template, and everything looks and work fine. My next step is to add navigation between different pages. So I have created a module for the about-section, added a position for it first in templateDetails.xml (<position>about-section</position>), then in index.php, like this:
Then in admin, I set the module position to the correct one, and also under Menu Assignment unticked the pages where I don't want the module to be displayed. So far all works as planned.
However, I now need to create a new About-link in my main menu. What Menu Item Type do I pick? Is there anything else I need to tick/add as well? I already have a working menu with Home & Articles, but not sure what options to pick for About.
Code:
<div id="about-section"> <?php if ($this->countModules('about-section')) : ?> <jdoc:include type="modules" name="about-section" /><?php endif; ?></div>
However, I now need to create a new About-link in my main menu. What Menu Item Type do I pick? Is there anything else I need to tick/add as well? I already have a working menu with Home & Articles, but not sure what options to pick for About.
Statistics: Posted by SocketPup — Fri Mar 29, 2024 3:07 pm