Scrolling one page menu Topic is solved

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
williama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Sun May 18, 2008 10:01 pm

Scrolling one page menu

Post by williama » Wed May 15, 2024 10:05 am

So, I have a scrolling menu setup on my webpage. This seems to work well, however if I click through to a new page from the front page, and then try to select an option from the menu other than home (excluding contact and about), it simply scrolls down to the bottom of the current page, and does not load the front page first.

https://www.waproductions.com

The way I am scrolling is by setting a menu option as a webpage link, and then using the below as the link.

#showreel

Then, I add a custom module just before the module that shows the showreel for example. This module has the below code.

<section id="showreel" class="row"></section>

What I need to do is have the menu option load the below single article first.

index.php?option=com_content&view=article&id=285

Followed by #showreel, to get it to scroll down to the correct section.

Would anyone be able to advise? I guess this is probably not the most elegant way to do things, but it works other than not loading the home page first.

Hope that makes sense. Thank you.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31028
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Scrolling one page menu

Post by Per Yngve Berg » Wed May 15, 2024 10:39 am

index.php?option=com_content&view=article&id=285&Itemid=xxx#showreel

Where xxx is the id of the Menu Item.

williama
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Sun May 18, 2008 10:01 pm

Re: Scrolling one page menu

Post by williama » Wed May 15, 2024 10:45 am

That's great, thank you so much Per Yngve Berg. It works perfectly now. :)
Per Yngve Berg wrote:
Wed May 15, 2024 10:39 am
index.php?option=com_content&view=article&id=285&Itemid=xxx#showreel

Where xxx is the id of the Menu Item.


Post Reply

Return to “General Questions/New to Joomla! 4.x”