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.
You are not logged in.
Pages: 1
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
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
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:
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
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
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
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
Ok Rod, I'll have a play around with the sidebar tomorrow, time permitting
Offline
Pages: 1