Forum
Breadcrumbs help
Hi
I'm having an issue with breadcrumbs only outputting the current page and previous page rather than the whole path and I'm not sure if its down to me missing something in Runway, as its my first one.
Here is an example of how the pages are in the admin;
My breadcrumbs template (think its as default);
<perch:before>
<ul class="breadcrumbs">
</perch:before>
<li>
<perch:if exists="perch_item_last">
<perch:pages id="pageNavText" />
<perch:else />
<a href="<perch:pages id="pagePath" />"><perch:pages id="pageNavText" /></a> >
</perch:if>
</li>
<perch:after>
</ul>
</perch:after>
Which is outputting facial > anti-wrinkle-treatment on the anti wrinkle treatment, rather than home > non-surgical > facial > anti-wrinkle-treatment
Diagnostics;
Perch Runway: 2.8.32, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_blog (5.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/waynehooper/Desktop/zenithcosmetics/root/perch
PERCH_CORE: /Users/waynehooper/Desktop/zenithcosmetics/root/perch/core
PERCH_RESFILEPATH: /Users/waynehooper/Desktop/zenithcosmetics/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: zenithcosmetics
DOCUMENT_ROOT: /Users/waynehooper/Desktop/zenithcosmetics/root
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Can you show us the page function you're using?
Hi Drew
Just the default
<?php perch_pages_breadcrumbs(); ?>
My error. non-surgical is hidden from nav (which I'd forgotten about), so adding
'include-hidden' => true
is giving me the output I require.Apart from that, finding Runway enjoyable to use !