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.
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
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
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
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
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
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.
Offline
Thanks Matt for this detailed explanation!
Offline
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 )
Offline
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