Jump to content
TNG Community
Sign in to follow this  
Brett

'Dynamic' update Target in Mod cfg file

Recommended Posts

Brett

Within a Mod cfg file, is it possible for the Target to be dynamic.

I am wanting the Target to identify the particular template currently being used. So instead of:

%target:templates/template16/css/mytngstyle.css%

I would like something like:

%target:currenttemplatepath/css/mytngstyle.css% .

If possible, what code would I require.

Share this post


Link to post
Share on other sites
Ken Roy

Brett,

Sorry that is not currently possible.  Since the code css changes might be different for different templates you have to code the template targets that override the TNG genstyle.css

If your change applies the same way to each template, then use a %target:genstyle.css%  to insert the changes after the anchor line that was added for mods

/* Classes for TNG Mods to be added below */

 

Share this post


Link to post
Share on other sites
Brett

Thanks Ken

I changed your suggestion from  %target:genstyle.css% to  %target:css/genstyle.css% and it works.

Is css/mytngstyle.css not used when a Template is used?

Share this post


Link to post
Share on other sites
Ken Roy

Of course the target needed css/

Thc css/mytngstyle.css is not used with templates but can be used to override entries in genstyle.css if a user is not using Template Selection = Yes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×