• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug TMS does not inject code correctly

Adam Howard

Well-known member
#1
Screenshot from 2013-09-28 13:45:42.png

As I understood it, this would amend extra.css and not replace the contents of what may already be there in a custom style.

I learned recently that this does not always work (link). In this example, the following code was already in the style's extra.css
PHP:
<xen:include template="xendisConnect.css" />
But what ended up happening was TMS was not amending the template it was replacing it.

And directly editing the template outside of TMS also did not change anything. I could put any value or code I wanted directly into extra.css, but it was useless. TMS was completely replacing the full context of the template, when it should only have amended it.
 

digitalpoint

Well-known member
#2
Did you use $1 in your replacement?

What you might want to consider doing is just including a custom CSS to the end of the file template, rather than try to manage the CSS within the template modification system.

For example, you could use a regex find of: "/$/", and replace it with "<xen:include template="yourcss.css" />".

Then ultimately, the contents of the yourcss.css ends up being appended.
 

Adam Howard

Well-known member
#3
Not a bug.

The error is between user and keyboard. o_O
In this instance I am the user. :confused:

User: Hi. :oops: :p

I was fairly sure I had added $1 to that code. Guess what.... oops! :X3:

@digitalpoint I would much prefer to continue to use the TMS. My custom code is universal in the sense that I want it to apply to all my styles. It is more easy to manage via the TMS than it is for me to go back & forth through 8 styles.
 

Martok

Well-known member
#4
@digitalpoint I would much prefer to continue to use the TMS. My custom code is universal in the sense that I want it to apply to all my styles. It is more easy to manage via the TMS than it is for me to go back & forth through 8 styles.
Why would you need to go back and forth through 8 styles? Do correct me if I'm wrong, but if these are all child styles then surely making these alterations to the parent would cascade the changes to all of them?
 

Adam Howard

Well-known member
#5
Why would you need to go back and forth through 8 styles? Do correct me if I'm wrong, but if these are all child styles then surely making these alterations to the parent would cascade the changes to all of them?
These are not all child styles, nor can they be all child styles. They are a collection of 7 independent custom styles.