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-09-07 05:11:14

Jiheffe
Member
From: Braine-l'Alleud, Belgium
Registered: 2013-08-08
Posts: 37
Website

WP theme not picking up shared resources

So, I've configured all my plugins to use the shared resources option. "Get shared resources from TTG CE4 Pages" is ticked on everywhere, and "/" is set as Site Root everywhere.
This works great, except for my WP template that doesn't pick up the CSS from Pages. Now, all my CE4 sits in the root of the site, but WP sintgs in a ./blog/. subfolder. So I made an exception for the WP template, and put a hardcoded url http://www.jfschmitz.com/ as Site Root, but this didn't help. What should I do to get the WP theme pick up the shared resources?

Offline

#2 2014-09-07 05:27:50

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

Re: WP theme not picking up shared resources

see the changelog here under 3.0.5:
http://ce4.theturninggate.net/docs/doku … _changelog

Theme for Wordpress ignores Shared 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 2014-09-07 05:38:23

Jiheffe
Member
From: Braine-l'Alleud, Belgium
Registered: 2013-08-08
Posts: 37
Website

Re: WP theme not picking up shared resources

rod barbee wrote:

Theme for Wordpress ignores Shared Resources

Thnx, didn't see that.
Change log says "intended from the start". What's the reason for this?

Offline

#4 2014-09-07 06:51:37

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

Re: WP theme not picking up shared resources

don't know for sure. Most likely because many use WordPress as their main site rather than Pages. Inadvertently checking that box would then really mess things up. Just a guess though


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 2014-09-07 11:05:33

Jiheffe
Member
From: Braine-l'Alleud, Belgium
Registered: 2013-08-08
Posts: 37
Website

Re: WP theme not picking up shared resources

That's a pity... Avoiding this would be as easy as not ticking the share option in the WP module :-)
Matt, this sharing feature is great! I vote for bringing it in the WP module as well!

Offline

#6 2014-09-07 13:14:38

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: WP theme not picking up shared resources

WordPress is naturally a closed system, and in keeping within the basic tenets of WordPress design, all resources should be self contained. This also has to do with the way that WordPress handles loading of scripts and various assets, using wp_register_script() and wp_enqueue_script() from within the functions.php file, rather than having these things written directly into the page head. And this is important, for example, so that every plugin you install doesn't write-in its own copy of the jQuery library, etc. Using these functions, WordPress knows that it's already loaded jQuery, and so does not double or triple load jQuery when plugins, themes, etc. call for it.


Matt

The Turning Gate, http://theturninggate.net

Offline

#7 2014-09-07 15:53:30

Jiheffe
Member
From: Braine-l'Alleud, Belgium
Registered: 2013-08-08
Posts: 37
Website

Re: WP theme not picking up shared resources

Thanks Matt for this detailed explanation!

Offline

#8 2014-09-07 18:49:51

Jiheffe
Member
From: Braine-l'Alleud, Belgium
Registered: 2013-08-08
Posts: 37
Website

Re: WP theme not picking up shared resources

On a side note, I guess that once you've copied your settings across templates, and further designed your WP template, it's not a good idea any more to redo the process as it will overwrite WP specific settings in the destination template?
(assuming copying from Pages to WP, of course smile)

Offline

#9 2014-09-07 22:44:08

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

Re: WP theme not picking up shared resources

You can still redesign your template all you want. If you make changes to your Pages design you could port those settings to your Theme for WordPress template, re-export, and upload the theme. It won't effect internal WordPress settings.

But if you export it as a new theme with a different name, once you activate it in WordPress you'll need to go through all the WP settings again, populate sidebars with widgets, etc.


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