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 2016-01-02 19:35:58

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

css adjustment for CRG

I have enabled php and use it quite extensive. Custom css file on root level has some updates for the appearance of the galleries.
As far as the CRG galleries are concernd I want to use a specific appeareance for a specific CRG gallerie.
For example I want to change Metadata formatting ONLY for one CRG gallerie
http://community.theturninggate.net/top … ormatting/

Is there a chance to specify that custom css on root level should not be applied to ONE specific CRG gallerie, so that I can make the desired update in the "local" css file for that specific gallerie?

Offline

#2 2016-01-03 00:50:47

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

Re: css adjustment for CRG

you can feed a different custom css file to that specific gallery/album if you wish using conditional statements in phplugins.

you can use
if (G_PATH == 'FOLDER-NAME') {
http://ce4.theturninggate.net/docs/doku … _functions

or you can specify an album slug using the
if (G_SLUG == 'album-slug') {
http://ce4.theturninggate.net/docs/doku … album_sets

Toward the end of this post I show how to send a different css file to all CRGs.
http://ttg-tips-and-tricks.barbeephoto. … galleries/
You can modify the code to send the file to just one gallery/album


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 2016-01-04 00:53:54

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: css adjustment for CRG

thx Rod, I will test it next weekend

Offline

#4 2016-01-04 23:56:29

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: css adjustment for CRG

tested: great tip, working fine!

Offline

Board footer

Powered by FluxBB