SOLVED Pagination - how to add a reference to an anchor
Posted 8 years 8 months ago
Hi,
photon theme. I have a template set up that the main content area is mostly off screen when the page loads. I'm using a Roksprocket mosaic module to display multiple items that link to articles with pagination (only the PREV and NEXT buttons). Once someone clicks on an article I would like the previous and next buttons to link to anchor I've set up. I've used #content and proved it's working by appending to the URL. I'm just unsure where the pagination control is and how to ammend it to make it do what I want.
So in practise the menu brings up the original template with the mosaic in it, scroll down past particles etc and select an item. This takes you to the initial article, again I'm happy with them scrolling down to the content on this page, however once they use the next or previous buttons I'd like the page to load at the title of the article, i.e. appending #content to the URL. I just don't know ehere that URL is called and if I can add the anchor to the end.
Re: SOLVED Pagination - how to add a reference to an anchor
Posted 8 years 8 months ago
You're going about this the wrong way.
This is normal Joomla behaviour for "orphaned" or "menuless" articles. To get around this use the hidden-menu technique.
Create a MENU called "hidden" (no need to create a module to place it anywhere). In the hidden menu, create a MENU ITEM for each of the orphaned articles (single article type) and make sure these menu items are published. Now the hidden menu won't appear on any of your pages, but, the articles will now open in their own page. You can also use the same technique and create a hidden category blog menu item to pick up multiple articles too, thus saving having to create a hidden menu item for every article.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Pagination - how to add a reference to an anchor
Posted 8 years 8 months ago
Hi Mark, This isn't really achieving what I want. Possibly I didn't explain it properly. The articles (and their now hidden menus) I have said to use a specific template. This template has the logo, menu, search and a header section above the main content on each page. In order to view the full article you need to scroll down or append #content to the end of the URL. What I would like to achieve is that only when using the pagination buttons for the next article to be at the top of the screen but leaving the rest of the template intact, that is so I can scroll up if I wanted to. Nopt sure if that makes any more sense!
Re: SOLVED Pagination - how to add a reference to an anchor
Posted 8 years 8 months ago
Well to do that you will need to create a Joomla html override of the article - look on Joomla site to learn how to do this. I personally still wouldn't have it like that - but if that's your requirement...
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Pagination - how to add a reference to an anchor
Posted 8 years 8 months ago
Hi Mark, thanks for the advice. I have really been overcomplicating this. I'm just going to knock up a new template with the items re-ordered so that the content I want is at the top. Blatantly obvious, but sometimes it just needs another perspective to start you thinking along a different line. Thanks again.