Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-01-27 01:48:31

Marshview260
Member
Registered: 2018-01-23
Posts: 5

Question on Missing Breadcrumbs on About and Contact pages Backlight

I have been rebuilding my CE4 site in Backlight. At this point I have the basics working and am now tackling the small issues.

I am running Backlight-Pages 1.2.3 Rel 4
Theater 125
Galleria 100
on a Bluehost server. Custom CSS and PHPlugins are enabled but not being used.

I am tracing out the loss of the breadcrumb on my About and Contact pages which are using a Theater page with a "Still Image"  presentation. The Lightroom published albums for "About" and "Contact" have "Display breadcrumbs" checked.

When I insert each album on the About or Contact page in the Backlight/Designer/Pages configuration screen, the resulting pages on my website have the correct published album but DO NOT include the breadcrumb.

If I build a random page off the top level gallery and use the same album the breadcrumb DOES appear.

In comparing the source code for the two pages I noticed that the section that begins with <ul class="breadcrumbs"> is missing from the About page being created through the Pages configuration screen.

To me this appears to be a incorrect behavior (because if I wanted to turn off the breadcrumb I would do that in the LR Published album as I do for the home page) but perhaps it is intentional. Could you please confirm?


If you want to see samples here they are here.
(Working breadcrumb)                 http://lynneford.com/demo/galleries/tes … readcrumb/           
(Not working breadcrumb)           http://www.lynneford.com/demo/about/

The site is running in a sub-domain http://www.lynneford.com/demo

Thank you in advance for your help.

Offline

#2 2018-01-27 02:05:58

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Question on Missing Breadcrumbs on About and Contact pages Backlight

Hi Lynne,

Stand-alone pages (like your about page) don't have breadcrumbs, even if they have embedded albums or album sets.
Only albums and album sets have breadcrumbs.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2018-01-27 02:26:51

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Question on Missing Breadcrumbs on About and Contact pages Backlight

Hi Lynne,

Yep, that's something I wanted too and I have added it using phplugins:

First some helper functions that don't need any modifications:

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}

function ttg_crumb( $page_name ) {
	echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Home</span></a></li><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'. $page_name .'</span></li></ul>';
}

ttg_main_top that adds the breadcrumbs to the missing pages. If you need the breadcrumbs on other pages, just add them in another elseif branch:

function ttg_main_top( $style, $path ){
	// Add breadcrumbs to non-gallery pages
	if ( page_match('/about.php') ) {
		ttg_crumb('About');
	} elseif ( page_match('/contact.php') ) {
		ttg_crumb('Contact');
	} elseif ( page_match('/xxxx.php') ) {
		ttg_crumb('Xxxx');
	}
}

All these functions belong into your custom phplugins file.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#4 2018-01-27 02:36:25

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Question on Missing Breadcrumbs on About and Contact pages Backlight

cool Daniel, that's handy. You should add that to the Tips and Tricks forum wink


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2018-01-27 03:07:51

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Question on Missing Breadcrumbs on About and Contact pages Backlight

rod barbee wrote:

cool Daniel, that's handy. You should add that to the Tips and Tricks forum wink

Thanks, I'll do.

Edited: Here we go http://community.theturninggate.net/vie … 201#p51201


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#6 2018-01-27 03:55:17

Marshview260
Member
Registered: 2018-01-23
Posts: 5

Re: Question on Missing Breadcrumbs on About and Contact pages Backlight

Thank you both for the quick response and added information. I will plan to use Daniel's solution when I get to that phase.  Much appreciated!

Last edited by Marshview260 (2018-01-27 03:55:47)

Offline

Board footer

Powered by FluxBB