Advertisement
Breadcrumbs
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Dec 30, 2021 4:04 pm
Breadcrumbs
I have spent many, many hours upgrading from Joomla 3 to Joomla 5. I should have just designed a new site! BUT finally I have the articles, menu Etc. The problem I now have and AI can't help me with this one is the breadcrumbs are sending me to totally the wrong articles.The Home page Breadcrumbs send me to an Article about 10 Articles ahead then that sends me to another place. The menu is fine, all the articles are in the right place on the menu. I tried 'Catagories' but that was just as messed up. I have tried installing a 'plugin' but they are limited. All I want to do is use the Breadcrumbs to send the visitor to the next Article in the Menu. In Joomla 3, I placed individual links on each page saying 'Next page' but apparently it is better for SEO to use the Breadcrumbs.
Thank you.
Thank you.
Advertisement
- Pavel-ww
- Joomla! Ace
- Posts: 1870
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Breadcrumbs
Hi. Provide a link to the website and describe in detail which specific pages have the problem.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Dec 30, 2021 4:04 pm
Re: Breadcrumbs
Hello Pavel, sorry I made a mistake it was Pagination ie the 'next' and 'back' buttons that I was looking for based on the menu. I just spent a couple of hours with AI and got the 'Breadcrumbs' working. I have used the inspection tool to find any reference to Pagination on any page and no I couldn't find it. I have tried Cassiopeia and Helix Ultimate templates (I hope I can use their names) neither of them is showing pagination despite all of the Navigation settings being on Global (show). The AI gave me .css to style the navigation but it hasn't helped me find why it is not on when it was at the begining even though it was going all over the place. I did use a Google ratings plugin to help the Breadcrumbs but have this off now in case that caused the problem. The link is www.exp.acupuncturetorbay.com. Thank you
- Per Yngve Berg
- Joomla! Master
- Posts: 31735
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Breadcrumbs
The Breadcrumps Module are showing
Have you turned them on in the Menu Item?
What Menu Item Type do you have the problem with?
Are you referring to Pagination or Navigation?You are here:
Home Page
Have you turned them on in the Menu Item?
What Menu Item Type do you have the problem with?
- Pavel-ww
- Joomla! Ace
- Posts: 1870
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Breadcrumbs
Hi.
Pagination is displayed only on the category page and only if the number of article previews exceeds the amount set in the Blog Category menu item.
Your homepage is a separate article. There is no pagination in any individual article.
If you want to use the article "Acupuncture Torbay" as a simple page for the homepage using Article menu item type, move it to the "Uncategorized" category and disable breadcrumbs on the homepage.
If you want to use the "Acupuncture Torbay" category and add new articles there, publish this category through the Blog Category menu item. Due to the same name for the article and category ("Acupuncture Torbay"), you might get confused. Rename it to something else.
Also, make sure to do this. Then all breadcrumbs and pagination will work correctly. Nothing has changed in this aspect since Joomla 3. You just haven't organized your site structure correctly.
---------
AI is a good assistant, but only as a supplement to your knowledge. If you ask it the wrong questions due to incorrect knowledge, you will waste a lot of time and not achieve results.
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Dec 30, 2021 4:04 pm
Re: Breadcrumbs
Thank you both, All of the Website pages are Single Article which may be causing the problem. The AI kept suggesting I made them 'Category Blog' but I don't want to have the public altering any pages so I steer clear of 'blog'. In Joomla 3 I just made a link at the end of each page with 'Next' on and a link to that page. It may be more simple to do this in this instance. I don't want to lose the Breadcrumbs because of their SEO value. I admit I am a very amateur website designer, it comes from being a 'single trader' and having to do everything myself. Now that I have Joomla 5 almost right in a basic form I hope to improve the website with videos and extras. I just built a 48 page website on a popular website builder for my Scuba Club and hope to incorporate this in to my Joomla 5 site. To be honest if it wasn't for security concerns with Joomla 3 I would have kept it with this as I liked Joomla 3. Thank you for your help.
- Per Yngve Berg
- Joomla! Master
- Posts: 31735
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Breadcrumbs
As @pawel-ww already have pointed out, the Article must belong to a Category.
Enable Navigation in the Menu Item. That will give you the Previous/Next Links.
Enable Navigation in the Menu Item. That will give you the Previous/Next Links.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Dec 30, 2021 4:04 pm
Re: Breadcrumbs
Hello Per,
each Article is attached to a Category so an example is the 'Guasha' single article is linked to Guasha on the menu and there is a Category of 'Guasha scrapping for health' and the Guasha article is linked to this. I think there are 34 articles in the menu with 34 categories assigned to them. Each of these has 'navigation' on 'show' that is set globally.
the Navigation arrows were showing but after setting all of these categories/articles to get the Breadcrumbs working the arrows disappeared. Before that the arrows were there but they were going to the wrong 'next page' IE not going to the next item in the menu.
I noticed Pavel mentioned .htaccess and htaccess.txt, I have both of these with different things written in them.
each Article is attached to a Category so an example is the 'Guasha' single article is linked to Guasha on the menu and there is a Category of 'Guasha scrapping for health' and the Guasha article is linked to this. I think there are 34 articles in the menu with 34 categories assigned to them. Each of these has 'navigation' on 'show' that is set globally.
the Navigation arrows were showing but after setting all of these categories/articles to get the Breadcrumbs working the arrows disappeared. Before that the arrows were there but they were going to the wrong 'next page' IE not going to the next item in the menu.
I noticed Pavel mentioned .htaccess and htaccess.txt, I have both of these with different things written in them.
- Per Yngve Berg
- Joomla! Master
- Posts: 31735
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Breadcrumbs
You must have more than one Article in the Category to be able to navigate to the next in the Category.
- Pavel-ww
- Joomla! Ace
- Posts: 1870
- Joined: Tue Jun 30, 2020 12:17 pm
Re: Breadcrumbs
Hi.
If the .htaccess file remains after the update, delete it and rename htaccess.txt to .htaccess.
If you don't want to use a category blog at all, then there is no point in adding articles to different categories. Create one category, move all articles there, and publish this category while making the menu item hidden. In the settings for this menu item, disable the display of the category title. Assign all articles through the menu.
However, without a category blog, you will not have pagination. Regarding the importance of pagination for SEO, you are mistaken. Typically, pagination pages are excluded from the sitemap and assigned the canonical URL of the first page of the blog.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Dec 30, 2021 4:04 pm
Re: Breadcrumbs
Hello,
Thank you, I went through this last night with AI and it finally pointed out to me I was actually looking for "Article Navigation". You are right about AI at the moment it is a bit like the old Sat Navs. You can soon end up in a river! It did suggest I put everything in one category however. At least I am learning a lot and Pavel's point about it not effecting the SEO was good so now I will put individual 'next' links on each page to make it easier for my customers to follow the pages, it will also be easy to style them on the page and introduce any changes in the future. Its funny because after finally converting Joomla3 to Joomla5, I did actually have 'next' and 'back' arrows either side at the bottom of the main body and I was using Single Articles but they were pointing all over the place. Best wishes,
Thank you, I went through this last night with AI and it finally pointed out to me I was actually looking for "Article Navigation". You are right about AI at the moment it is a bit like the old Sat Navs. You can soon end up in a river! It did suggest I put everything in one category however. At least I am learning a lot and Pavel's point about it not effecting the SEO was good so now I will put individual 'next' links on each page to make it easier for my customers to follow the pages, it will also be easy to style them on the page and introduce any changes in the future. Its funny because after finally converting Joomla3 to Joomla5, I did actually have 'next' and 'back' arrows either side at the bottom of the main body and I was using Single Articles but they were pointing all over the place. Best wishes,
-
- Joomla! Apprentice
- Posts: 10
- Joined: Thu Dec 30, 2021 4:04 pm
Re: Breadcrumbs
I have done it now. I changed all of the articles to a Category of "One Category". Then I made sure they were in the correct order. I found there is a Content - Page navigation extension. That was Enabled. I then went to "/templates/shaper_helixultimate/html/plg_content_pagenavigation/default.php" in template "shaper_helixultimate". I re-wrote the default.php file to;
<?php
/**
* @package Joomla.Plugin
* @subpackage Content.pagenavigation
*
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
/**
* @var \Joomla\Plugin\Content\PageNavigation\Extension\PageNavigation $this
*/
$this->loadLanguage();
?>
<div class="row page-navigation">
<!-- Previous Button -->
<div class="col-6 text-start">
<?php if ($row->next) : // Corrected to link to the NEXT article for "Previous" ?>
<a class="btn btn-sm btn-secondary previous" href="<?php echo Route::_($row->next); ?>" rel="prev">
<span class="icon-chevron-left" aria-hidden="true"></span>
<span class="ms-1"><?php echo Text::_('JPREVIOUS'); ?></span>
</a>
<?php endif; ?>
</div>
<!-- Next Button -->
<div class="col-6 text-end">
<?php if ($row->prev) : // Corrected to link to the PREVIOUS article for "Next" ?>
<a class="btn btn-sm btn-secondary next" href="<?php echo Route::_($row->prev); ?>" rel="next">
<span class="me-1"><?php echo Text::_('JNEXT'); ?></span>
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
<?php endif; ?>
</div>
</div>
Some of it looks a bit back to front but somehow the 'Next' chevron was taking me to previous and vice versa. Now I have Previous and Next chevrons navigating properly. I tried to alter the styling using the Helix Layout Custom CSS option. The text and Chevron colours changed but the background colour is being over-ridden. So I will get back to that sometime.
Thank you.
<?php
/**
* @package Joomla.Plugin
* @subpackage Content.pagenavigation
*
* @copyright (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
/**
* @var \Joomla\Plugin\Content\PageNavigation\Extension\PageNavigation $this
*/
$this->loadLanguage();
?>
<div class="row page-navigation">
<!-- Previous Button -->
<div class="col-6 text-start">
<?php if ($row->next) : // Corrected to link to the NEXT article for "Previous" ?>
<a class="btn btn-sm btn-secondary previous" href="<?php echo Route::_($row->next); ?>" rel="prev">
<span class="icon-chevron-left" aria-hidden="true"></span>
<span class="ms-1"><?php echo Text::_('JPREVIOUS'); ?></span>
</a>
<?php endif; ?>
</div>
<!-- Next Button -->
<div class="col-6 text-end">
<?php if ($row->prev) : // Corrected to link to the PREVIOUS article for "Next" ?>
<a class="btn btn-sm btn-secondary next" href="<?php echo Route::_($row->prev); ?>" rel="next">
<span class="me-1"><?php echo Text::_('JNEXT'); ?></span>
<span class="icon-chevron-right" aria-hidden="true"></span>
</a>
<?php endif; ?>
</div>
</div>
Some of it looks a bit back to front but somehow the 'Next' chevron was taking me to previous and vice versa. Now I have Previous and Next chevrons navigating properly. I tried to alter the styling using the Helix Layout Custom CSS option. The text and Chevron colours changed but the background colour is being over-ridden. So I will get back to that sometime.
Thank you.
Advertisement