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 2016-05-07 21:40:00

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Album Set nav menu issue

If I add text to the "Main Copy" field in my album set template, the navigation menu moves to the bottom of the page. If Main Copy is empty, then the nav menu is where is should be.

http://pfredd.com/TestBL/galleries/

Offline

#2 2016-05-07 22:21:07

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

Re: Album Set nav menu issue

well this is weird.

have you tried creating other album set templates? Do they all do the same thing?

What happens if you don't include text in the template but instead add it in Lightroom? Or have the text from Lightroom replace the template text?


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 2016-05-07 23:31:12

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

Tried creating new page and album set templates. Problem did not reoccur (altho I did not completely recreate the existing templates). I included text from lightroom (replacing template text) and the same problem occurred.

The problem is probably in the Page template, as it occurred again if I just made a new album set template using my existing page template.

Custom CSS isn't the problem, as I removed it and problem still occurred.

Will keep playing with it to see if I can narrow the scope a bit

Offline

#4 2016-05-07 23:42:51

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

Re: Album Set nav menu issue

It's strange. I've been playing with Backlight for a few weeks and have not seen anything like this occur.

try using the standard album set template for one of your album sets. See what happens. Anything you can do to narrow down the differences between what does and doesn't work will help Matt and Ben figure out what's going on.


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 2016-05-08 00:51:51

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

OK - I have it narrowed down, and it is really strange....

The problem was NOT in the page template, as I originally suspected. It was in the Album Set Template.

My page does not have any Trays. During my testing, I placed what is normally in the Album Set main copy into the Tray 1 copy (just so I could copy & paste it back later). That text contains the following:

## <i style="color: #9c6;" class="fa fa-camera-retro"></i> Dave's Photo Gallery

##<div style="text-align: center;"><i style="color: #FFFF00;" class="fa fa-exclamation-circle"></i> UNDER CONSTRUCTION <i style="color: #FFFF00;" class="fa fa-exclamation-circle"></i></div>

###<div style="text-align: center;">I have switched to  new web gallery software and am in the process of uploading all of my photos.<br>If you are looking for a specific Album or Photo, please [contact me](/contact).
</div>

When that is in the Tray 1 copy, the problem occurs. If I remove that HTML from the Tray 1 copy, the problem goes away. It also occurs if I have it in the Main Copy area as well.

So something in my HTML is screwing it up. The HTML is the same as I use in my CE4 Albums.

Any idea what is screwing it up?

Offline

#6 2016-05-08 01:06:58

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

Re: Album Set nav menu issue

the problem might be in mixing Markdown with html. Try removing the # symbols

Instead, try this:

<h2><i style="color: #9c6;" class="fa fa-camera-retro"></i> Dave's Photo Gallery</h2>

and you wouldn't wrap a div in a header tag. Instead, maybe this:

<h2 style="text-align: center;"><i style="color: #FFFF00;" class="fa fa-exclamation-circle"></i> UNDER CONSTRUCTION <i style="color: #FFFF00;" class="fa fa-exclamation-circle"></i></h2>

Or it might be that html in a non-displayed tray is causing this. I've not tested that scenario yet.


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

Offline

#7 2016-05-08 01:41:11

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

Actually, all I had to do is delete the newline in front of the last <div>.

The following text works fine:

## <i style="color: #9c6;" class="fa fa-camera-retro"></i> Dave's Photo Gallery
##<div style="text-align: center;"><i style="color: #FFFF00;" class="fa fa-exclamation-circle"></i> UNDER CONSTRUCTION <i style="color: #FFFF00;" class="fa fa-exclamation-circle"></i></div>

###<div style="text-align: center;">I have switched to  new web gallery software and am in the process of uploading all of my photos.<br>If you are looking for a specific Album or Photo, please [contact me](/contact).</div>

Not sure WHY that fixed it or why I had the problem when it was in Tray 1 (because I wasn't displaying Tray 1).

Offline

#8 2016-05-08 01:48:30

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

Re: Album Set nav menu issue

Still, <div> tags should not be placed inside heading ( h1, h2, h3, etc. ) tags. It may work, but it's not semantically correct.
http://dotnetdaily.net/tutorials/html-t … -a-h1-tag/


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

Offline

#9 2016-05-08 01:55:16

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

The only reason I did that was so I could use the style to center align the text.

Is there a better way to do that?

Offline

#10 2016-05-08 02:11:39

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Album Set nav menu issue

<h1>You should wrap inline elements in <span>span tags</span></h1>

Matt

The Turning Gate, http://theturninggate.net

Offline

#11 2016-05-08 02:17:22

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

But you can't have <span style=...>. Is there a way I can center align my Copy text without using <div style=...>?

Offline

#12 2016-05-08 03:39:39

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

Re: Album Set nav menu issue

did you try styling the h2?
<h2 style="text-align:center;">


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

Offline

#13 2016-05-08 15:14:42

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Album Set nav menu issue

Pfredd wrote:

But you can't have <span style=...>. Is there a way I can center align my Copy text without using <div style=...>?

You most certainly can; that's entirely the point of the span element. It's the inline equivalent to the div element; the div element is block level. For example:

<span style="color:red;">This text is red</span>, and this text is not.

Alternatively, you can assign it a class, then style that class in your CSS.

<span class="red">This text is red</span>, and this text is not.

.red { color: red; }

Matt

The Turning Gate, http://theturninggate.net

Offline

#14 2016-05-08 20:33:39

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

Matt - span works exactly as you described, for color.

It does not work in the album set page copy for text-align: center The text is still left justified.

I looked at the generated code and it IS being included, just not working like I intended:

<span style="text-align: center;color: #FFFF00;">I have switched to  new web gallery software and am in the process of uploading all of my photos.<br>If you are looking for a specific Album or Photo, please <a href="/contact">contact me</a>.</span>

Offline

#15 2016-05-08 22:57:21

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Album Set nav menu issue

Like I said, <span> is an inline element. Text-align therefore shouldn't do anything, because the alignment should already be set outside of the span, on the wrapping block element. Heading elements (h1, h2) are block elements. So you could, for example, do this:

<h2 style="text-align:center;">I'm in <span style="color:red;">LIMBO</span>, way out on a limb.</h2>

Or replace <h2> with <p>, also a block-level element.


Matt

The Turning Gate, http://theturninggate.net

Offline

#16 2016-05-08 23:20:06

Pfredd
Member
Registered: 2014-04-16
Posts: 189

Re: Album Set nav menu issue

OK, that works.

Thanks!

Offline

Board footer

Powered by FluxBB