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 2019-02-23 22:28:23

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Couple of General Questions related to Search & Menu Sets

First Question: Is there a way to add a help button to the Quick Search.

Second Question: I am assuming that I can change the background-color, size, add text etc with custom.css of the quick search box but what is the class for the quick search to do this?

Third question: I am assuming I can move the help button for the search to the Top Pallet as well, what is the code for that?

Fourth question: I am writing a custom scripts function in my phpplugin but I would like to get the value associated with a menu item depending on which Album Set or Album has been clicked on. How can I do this?  BTW, my script function is working fine but just need this last piece of information to get the URL value associated with a particular menu item; since the menu click has information that I cannot duplicate with the Album Set or Album click.


Thanks in advance for the information.

Offline

#2 2019-02-23 23:07:09

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

Re: Couple of General Questions related to Search & Menu Sets

1) Do you mean the Quick Search page? I don’t think so.

2) It looks like a body class of “fancybox-active” gets added, but  use the browser inspector to see if anything else is needed..

3) assuming you mean the Gallery Help in Client Response?
https://ttg-tips-and-tricks.barbeephoto … op-pallet/
This should also work with a search help button, you’d just need to change selectors.

4) I’ll leave that to Matt, Ben, or Daniel


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 2019-02-23 23:39:54

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

Thanks for the answers to 1 2 and three.  It is unfortunate that the quick search is limiting which is the reason I have not implemented it.  I removed the quick search from all pages.  I would like the quick search to be more available to changes since having an empty search page with no help is not usable.  I hope a change in a future release will be forthcoming; unless of course the quick search button can be overridden and go instead to the actual search page this would be more useful.  Well at least I can move my help text off the page to a Search help button for the actual search page. 

One more question about the search page is there a way to increase the size of the search text box it looks a little weird being so short on the page.

Thanks again; looking forward to the answer to my fourth question.

Offline

#4 2019-02-24 00:17:50

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

Re: Couple of General Questions related to Search & Menu Sets

Instead of the Quick Search, you can add an item in you navigation that simply goes to the Search page. You can add anything you like to the search page, including a search help Popup.

As to the size of the box. Probably custom css,
Probe it with the browser’s inspector and look for a width setting.


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 2019-02-24 00:35:02

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

Yes, I already have a search menu item in the navigation but would rather just have the quick search button and remove the menu item in the navigation.  Just my preference.

Offline

#6 2019-02-24 00:50:00

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

Re: Couple of General Questions related to Search & Menu Sets

I suppose you could try using jQuery to replace quick search link code with a link to the search page.


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 2019-02-24 01:02:46

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

ok thanks will try that.

Offline

#8 2019-02-24 03:16:01

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

Re: Couple of General Questions related to Search & Menu Sets

An easier option may be to disable the quick search and instead use jQuery to just add a new list item to li#widget-container ul


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 2019-02-24 03:26:45

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

Thanks for the new information, I am starting to play around with this to get what I need.  Thanks for your help.

Offline

#10 2019-02-25 22:17:20

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

Rod, just wanted you to know that I got the quick search & backlight/search page working together with just using my just using the search icon using some custom css and the li#widget-container ul.  It did require some additional custom css that we did not discuss and a new search album page templates instead of the default page ones I was using.  Check it out and let me know what you think.  https://keylightphotography.us

Thanks for pointing me in the right direction.

Offline

#11 2019-02-25 23:33:25

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

Re: Couple of General Questions related to Search & Menu Sets

It works great. Just needs little more css work to center the Facebook and Instagram icons (they center on hovering) . that's coming from your own custom css:

.button {
    text-align: right;
}

you just need to make that rule's selector more specific so that it only affects what you want it to.

And the search icon list item needs to be a bit wider to match the others.


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

Offline

#12 2019-02-25 23:36:46

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

Thanks for your tips; will do.

Offline

#13 2019-02-25 23:45:52

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

Re: Couple of General Questions related to Search & Menu Sets

also, just wondering why you opted to use phplugins to place the css in the scripts area rather than you custom css file? It certainly works, but just curious.


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

Offline

#14 2019-02-26 00:04:19

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Couple of General Questions related to Search & Menu Sets

My Scripts function determines which page is being used and sets it specific for that page; this is what I call "just in time page mods" which I have donw with non-specific code from my previous websites so I only need to move the code once and it works on every website both Backlight and other types such as my previous sites on 500px and Smugmug which are now finished. This way I control the css  to a specific page or group of pages or on a specific domain/subdomain then I only need to code it once in one place which applies to all of my domains/sub-domains. The custom.css is more global and I certainly use it for global use and I do not need different custom.css files on different templates in backlight although I know ways to not make it non-global as well. Just my preference to make changes in only one place. I did put the changing the .button to text-align: center; in the custom.css file though.

The other added benefit is that I can now make my menus and other elements more dynamic/context sensitive without changing/adding to Backlight via Admin as well. 

by the way I made the changes to the icons already as well.

Last edited by mad (2019-02-26 00:14:10)

Offline

#15 2019-02-26 00:25:41

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

Re: Couple of General Questions related to Search & Menu Sets

Clever!


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

Offline

Board footer

Powered by FluxBB