Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#2 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 02:08:13

YES! That works Daniel!!!!

Rod, you should write this up for your tips site.

#3 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 01:55:27

If I understand pseudo selection correctly (which I doubt), what Daniel is selecting for is the 'sub-menu' of the 2nd item of his menu (i.e. his Galleries) and forcing display.  Is that correct? Which is not at all why I am trying to do

#4 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 01:43:13

I want to suppress every li.menu.item, not every second one or anything, so not sure how it applies

#5 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 01:42:04

Sorry Rod, I don't understand how to apply that in this context. is a LI a child of UL? or is li.menu-item a child of page__pallet__T1?

if the latter, is this what you mean?:

 #page__pallet__T1:nth-child(2) > li.menu-item {
    display: none;
}

which still doesn't work

#6 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 01:10:03

You need to use the child pseudo selector.

I have no idea what a child pseudo selector is (I looked at his CSS, but I wouldn't know if I saw it)

#7 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-28 01:03:58

no luck, still displays children. however;
(from my page)

<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
	<div class="content clearfix">


<nav class="nav nav_v">
 

<ul class="primary-menu menu mouseable"><li class="menu-item menu-item-has-children"><a href="/portfolio/"><b>Portfolios</b></a><ul class="sub-menu"><li class="menu-item"><a href="/portfolio/age/">Age</a></li>
<li class="menu-item"><a href="/portfolio/artifacts/">Artifacts</a></li>

These are what needs to be suppressed:
<li class="menu-item"><a href="/portfolio/artifacts/">Artifacts</a></li>
I tried:

#page__pallet__T1 li.menu-item {
    display: none;
}

but that doesn't do it either. I don't know enough about CSS to know if I can just switch it like that. It does feel like this is the road to go down though.

#9 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 10:34:29

That could be a perfect solution. I'll poke at that tomorrow

That is just a custom CSS call, correct?

#11 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 08:20:55

that kinda defeats the point of that big beautiful slideshow then unless I can make the right column really narrow (or 3 column and both narrow)

does the:

Pallet Content via phplugins
This is content added via phplugins to fill this awkward space. Don't laugh at me.

need to be there?

#12 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 08:07:21

Does not work on mine.

Does not show at all if 1 Column Layout. Does not show at all if vertical nav disabled

#14 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 07:42:20

Using the navigation() hook, one can replace the menu. But this affects horizontal and mobile menus

thus defeating the whole point of separate menus (one complex for desktop, one simplified for mobile) wink

#15 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 07:41:03

If I use a two column layout, I have a two column page instead of a nicely centered one column page. That does however, kinda get menu showing.... I get both, overlapping each other.

I don't know if there is a way to force pallet01 to show on mobile only.

The problem is started by there not being a way to force pallet01 to NOT replace Navigation on mobile.

It's frustrating that Matt has given us such a great way to make elegant useable menus on desktop, but if we use them we cripple navigation on mobile (I dare you to try navigating my site on a phone).

#16 Backlight 2 Support » Menu feature request » 2019-02-27 07:15:56

scottfrey
Replies: 2

While digging around here find all the various complaints and solutions to mobile menus I had a thought of a simple (from the user end) solution:

Since one can style the Vertical menu separate from the Horizontal menu and one can (theoretically) use PHPlugins to insert a different menu into the Vertical menu (pallet 1), would it be possible to just be able to, in the Vertical Menu styling section,  select a different menu set for it? The default should obviously be the "same as Horizontal menu" but this would allow for an easy way to have a simplified mobile menu, or even a site menu separated from a galleries menu or other creative uses.

I realize that there may be a compelling programatical reason not to do this and Matthew has already tripped those landmines for us. If that is that case, please shut this down.

If not, this offers an elegant solution to the conundrum of having to make a choice of hobbling your desktop menu in order to not cripple your mobile menu.

#17 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 07:02:56

function main_top () {
   echo 'hello scott frey';
}

Perfect test. Yes, it works

A link to your page could be helpful too.

https://www.lightsmithy.com

are you starting with the phplugins-pangolin-sample.php file?
Are you leaving in all the existing code at the top (the stuff that makes this work)?
In your page template have you enabled phplugins and chosen the correct file?

All good questions, and initially I had not, but I figured that part out on my own ;) Yes, to all those. Daniel's sample code is showing on the page. (that might be something to leave uncommented in the sample, like the RED background in the custom CSS sample). PHPlugins is clearly working now with the sample code, but not writing in the menu code

Here is a link to the full phplugins file: https://www.dropbox.com/s/whzw5a7941koo … y.php?dl=0

#18 Re: Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 06:08:08

Thus:

// mobile navigation
function pallet01_top () {
  echo '
<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
	<div class="content clearfix">


<nav class="nav nav_v">
 

<ul class="primary-menu menu mouseable"><li class="menu-item"><a href="/portfolio/"><b>Portfolios</b></a></li><li class="menu-item"><a href="/collections/">Places</a></li><li class="menu-item"><a href="/events/">Events</a></li><li class="menu-item"><a href="/about/">About</a></li><li class="menu-item"><a href="/backlight/search/">Search</a></li></ul>
 
</nav>

	</div>
</div>

  ';

   return false;
} // END /**/

Makes no change, same exact behavior.

Then try not disabling it. The phplugins function should replace it.

it does not.

I'm still missing something. How can I tell if phpplugins is actually doing anything at all?

#19 Backlight 2 Support » Custom Menus for mobile using phpplugins not working » 2019-02-27 04:39:53

scottfrey
Replies: 37

I'm trying to implement Daniel's suggestion from this thread: http://community.theturninggate.net/vie … hp?id=9243

post #7:

I would design a dedicated menu-set for mobile that uses a simpler structure. First I would design this alternative menu in Backlight (create a new menu-set for that!), then copy the generated source code that is enclosed by the nav divs:

I've done that, and added the following to my phpplugins;

// mobile navigation
function pallet01_top () {
  echo '
<nav class="nav nav_v">

<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
	<div class="content clearfix">


<nav class="nav nav_v">
 

<ul class="primary-menu menu mouseable"><li class="menu-item"><a href="/portfolio/"><b>Portfolios</b></a></li><li class="menu-item"><a href="/collections/">Places</a></li><li class="menu-item"><a href="/events/">Events</a></li><li class="menu-item"><a href="/about/">About</a></li><li class="menu-item"><a href="/backlight/search/">Search</a></li></ul>
 
</nav>

	</div>
</div>

</nav>
  ';

   return true;
} // END /**/

However, I've done something wrong, as I still get the pages' normal navigation.

ALSO:

And then obviously you need to revert your site back to the original menu and disable the mobile menu.

If I disable Vertical navigation (as opposed to pallet1) I no longer get any navigation for mobile (and no hamburger menu button).

#20 Re: Backlight 2 Support » Scrolling » 2019-02-27 03:13:45

Any news? (not pushing or rushing, just hoping to keep this alive)

#21 Re: Backlight 2 Support » Editing captions » 2019-02-25 07:39:11

I have that set. Still not fast with 223 albums. Also, Lightroom has started throwing C errors when I try to update a lot at once. Pretty tedious

#22 Re: Backlight 2 Support » Maps? » 2019-02-25 07:36:31

Got it. I was looking for the older icon I guess.

kolohe280, I agree (hence not being able to find it), I put your code at the end of my custom CSS file, but it doesn't seem to do anything.

#23 Backlight 2 Support » Maps? » 2019-02-25 05:35:12

scottfrey
Replies: 4

Despite setting "enable maps" and having map data, I see no way to utilize it. Where should the maps buttons be? Do I have to enable something in designer?

#24 Backlight 2 Support » Editing captions » 2019-02-25 04:31:14

scottfrey
Replies: 3

It took me a long time of frustration to figure out that after changing captions, you need to republish. It says that on the tokens explanation page, but it might be useful to have it right on the Backlight interface where you edit tokens. My error was in just looking for token names, since that is what I was typing in.

My fault, but a prompt right on the design interface would have saved a lot of frustration.

Set image captions using metadata tokens, described here.You must re-publish for changes to take effect

Tokens

#25 Re: Backlight 2 Support » Virtual Copies not publishing correct image file » 2019-02-24 06:56:52

Indeed. Quit Lightroom, replete in finder. Plug in is now at 4.0.7

Board footer

Powered by FluxBB