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 2015-05-06 09:06:04

bradrlewis
Member
Registered: 2015-04-27
Posts: 62

Shared Resources Confusion

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

#2 2015-05-06 10:05:42

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

Re: Shared Resources Confusion

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

#3 2015-05-06 10:10:27

gaufde
Member
From: Ojai, CA
Registered: 2014-07-11
Posts: 72
Website

Re: Shared Resources Confusion

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

#4 2015-05-06 10:19:33

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

Re: Shared Resources Confusion

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

#5 2015-05-07 00:13:51

gaufde
Member
From: Ojai, CA
Registered: 2014-07-11
Posts: 72
Website

Re: Shared Resources Confusion

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

#6 2015-05-07 00:17:44

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

Re: Shared Resources Confusion

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

#7 2015-05-07 01:00:34

gaufde
Member
From: Ojai, CA
Registered: 2014-07-11
Posts: 72
Website

Re: Shared Resources Confusion

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

#8 2015-05-07 07:13:22

bradrlewis
Member
Registered: 2015-04-27
Posts: 62

Re: Shared Resources Confusion

Thanks everyone
Brad

Offline

Board footer

Powered by FluxBB