XF 2.1 Installing a new style and the site loses all styling on existing styles.

BIG LLC

Active member
When Installing a completely new style as a separate child of the default style, is the system supposed to rebuild all templates and kill all styling on all other existing styles during that rebuild?
 

Attachments

  • lost-styling.webp
    lost-styling.webp
    78.5 KB · Views: 11
I don't think so. If it is a new style, it doesn't need to be a child of anything. You simply add or import the style as independent (no parent) unless it needs its parent's framework to work.
 
Last edited:
PixelExit have an easy to follow guide on installing new styles. While aimed at their customers, it's good advice for style management. Basically, install as a new style, create a child style with the new style as parent. Make any edits only in the child style. Child style is what you make available to your members.

 
@Matthew S

We've found that installing directly under No Parent has its own problems, so:

MASTER (aka No Parent)
- Default
-- User Style
-- New User style

Installing New Style killed Old Style's styling during the Rebuild Templates process.

Question for those in the know: should this happen? If so, can the software be updated so it doesn't happen?
 
We've found that installing directly under No Parent has its own problems, so:

It seems that installing a brand new style under an existing parent is also causing issues. :)

Ultimately, talking to your style author is probably the best bet.

Otherwise, what problems are you seeing when you install the new style to the top level?

Generally speaking, and my understanding is, your Styles area in AdminCP should be looking something like:

Default (No edits here)
-- Child of Default (edits allowed)
Style 1 (No edits here)
-- Child of Style 1 (edits allowed)
New Style (No edits here)
-- Child of New Style (edits allowed - Master edits - maybe things like alignments or footers etc)
--- Child of Child of New Style (edits allowed - tweaked edits - maybe Dark version)
--- Child of Child of New Style (edits allowed - tweaked edits - maybe Light version)

and so on for each style.

When you add a completely new style, you need to start from scratch and add it like New Style above. Then create children that you can edit. The parent attributes propagate down through the children unless overridden in the children. When the style author releases an update, you update the top level parent which should leave the children and your edits untouched.

It's been a long time since I've bothered playing in mine, so maybe I'm not remembering properly. Happy to be corrected (or confirmed) if need be. :)
 
Back
Top Bottom