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 2014-12-14 22:22:06

paulg
Member
From: Wiltshire, UK
Registered: 2012-09-29
Posts: 73

User defined text on search page

Because my standard gallery template doesn't display the block, and therefore doesn't show the search box, I created a gallery template specifically for the search page. I thought I would use template to show some text on the search page, in the block/page copy field I entered "This search function displays results from all the galleries on this site" and ticked the "display on all pages" box.
But it doesn't show, just the standard default text and search box, the search function works ok.
Any ideas where I'm going wrong?
The site is http://paulgulliver.co.uk

Offline

#2 2014-12-15 01:09:10

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

Re: User defined text on search page

in ttg-be > Publisher Settings. Click Edit Settings. You can change Search Title to whatever you need. It will all be in the larger h2 text, but at least you can add your message.


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 2014-12-15 02:16:44

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

Re: User defined text on search page

Hah! I just discovered something cool. Even though the title on the search page gets wrapped in <h2> tags, you can add your own html and styling if you wish. Like this:

Search for pretty pictures<p style ="font-size: 16px;">and more</p>

will result in this:

search-title.jpg

the markup ends up like this, which probably isn't really the best, but it works

<h2>Search for pretty pictures<p style ="font-size: 16px;">and more</p></h2>

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

Offline

#4 2014-12-15 02:46:13

paulg
Member
From: Wiltshire, UK
Registered: 2012-09-29
Posts: 73

Re: User defined text on search page

Ahh, thanks Rod,
I've just done your first suggestion and it looked reasonable but now I'll have a play with the styling and improve on it

Last edited by paulg (2014-12-15 02:46:39)

Offline

#5 2014-12-15 03:28:48

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

Re: User defined text on search page

I use some custom phplugins code to add uniform breadcrumbs to the search page:

function ttg_canvas_top( $style, $path ) { 
    if (ALBUMTITLE == 'Search Results' ) {
        echo '
            <!-- Breadcrumbs -->
            .....
        ';
    }
}

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

Offline

#6 2014-12-15 03:30:19

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

Re: User defined text on search page

Paul,

try populating the sidebar of the template instead. I assumed that wouldn't work but I'm in the middle of setting up my ce4 site and while testing I noticed my search page has lorem ipsum text in the sidebar, just like the template does.
Just changed the template and the changes showed up on 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 2014-12-15 06:04:34

paulg
Member
From: Wiltshire, UK
Registered: 2012-09-29
Posts: 73

Re: User defined text on search page

Ok Rod, I'll have a play around with the sidebar tomorrow, time permitting

Offline

Board footer

Powered by FluxBB