Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2130

General Questions/New to Joomla! 5.x • navigate between sections in custom template?

$
0
0
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:

Code:

<div id="about-section">    <?php if ($this->countModules('about-section')) : ?>    <jdoc:include type="modules" name="about-section" /><?php endif; ?></div>
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.

Statistics: Posted by SocketPup — Fri Mar 29, 2024 3:07 pm



Viewing all articles
Browse latest Browse all 2130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>