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
Hello,
Let me just say sorry for the silly question right up front ;-), but I am confused on shared resources.
http://ce4.theturninggate.net/docs/doku … _resources
I would like to have a nice search box on the bottom each or some pages. I saw in another post it can be at the top or bottom of the content, I was hoping for the footer but close enough.
So I go into my page template and under output select get "shared resources..." , I then get a grey ! in the upper right corner.
So what do i do next? How do I choose what resources get shared or where they show up?
Thanks Again Brad
Offline
How do I choose what resources get shared or where they show up?
you don't get to choose. The Share Resources with TTG CE4 Pages feature will share common css files like the ones controlling typography, page backgrounds, page shadows, navigation styling etc. (all but the component.css file I believe) as well as some scripts.
Share Resources has nothing to do with search. If you want a search box on pages other than the /search/ page, see this:
http://ttg-tips-and-tricks.barbeephoto. … -ttg-page/
I've not tried putting the code in the footer's Attribution/Copyright (md) field but I suppose it would work. Give it a try.
If it doesn't, then you'll need to use phplugins to insert it. But I've found that the search field works pretty well in the Block's sidebar.
Also, if you want to be able to access search from any page you could simply put a link to the search page in your navigation as outlined here: http://ce4.theturninggate.net/docs/doku … arch_setup
I then get a grey ! in the upper right corner
Hover your cursor over that exclamation point and you'll see a warning message about making sure that the Site Root is set correctly, basically a short version of the Shared Resources documentation page: http://ce4.theturninggate.net/docs/doku … _resources
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
While I haven't personally used shared resources my understanding of the feature is to make it easier for the web servers. I believe that all it does is make it so the servers only have to serve information like site colors, logos, and scripts once instead of having that information served over and over again by each CE4 module. To incorporate a search box into all pages of your site then you should use the phplugins feature. I wrote a small tutorial on how to add a search box to the footer of a website. Here is the link: http://gracesonaufderheide.com/2015/04/ … e-website/.
Last edited by gaufde (2015-05-06 10:10:37)
Graceson Aufderheide
gracesonaufderheide.com
Offline
nice tutorial Graceson.
Does the blog search code assume that the blog page is in the root of the site then?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks Rod,
I'm not entirely sure if the blog has to be in the root. I just grabbed the code from Wordpress and added the classes and TTG function for styling and proper integration. That would be a good thing to test though. I'll look into it more, but it might be a while before I have the time to set up a test site to try it out on.
Graceson
Graceson Aufderheide
gracesonaufderheide.com
Offline
when I get some time I might try it to. My blog is in the /blog/ folder so I'm guessing I'd need to have that in code.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I just fiddled around with it a little. From what I can tell by looking at the code and the urls that it creates it seems like you might need to change
form action="/"
to
form action="/blog/"
The code might also work without the change because both of those codes search my blog, however, they show slightly different results and the first one looks more correct.
Last edited by gaufde (2015-05-07 01:00:59)
Graceson Aufderheide
gracesonaufderheide.com
Offline
Thanks everyone
Brad
Offline
Pages: 1