Brett Posted June 11, 2019 Report Share Posted June 11, 2019 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. Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 11, 2019 Report Share Posted June 11, 2019 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 */ Quote Link to comment Share on other sites More sharing options...
Brett Posted June 12, 2019 Author Report Share Posted June 12, 2019 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? Quote Link to comment Share on other sites More sharing options...
Ken Roy Posted June 12, 2019 Report Share Posted June 12, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.