Hello,
I'm going to use FCKeditor in a CMS (Infoglue). I have one question that remains. If i want to change the skin of my website later (and so have a new stylesheet with new style names), do i have to edit all the contents of my website to set the new styles ?
Isn't there a way to have an abstraction between contents and styles in order to easily change skins ? Like creating a "virtual" class in the content : "<a class="green_virtual" href="link">link</a>" and a mapping file to set this virtual class to the style of our current stylesheet.
Thanks in advance
I'm going to use FCKeditor in a CMS (Infoglue). I have one question that remains. If i want to change the skin of my website later (and so have a new stylesheet with new style names), do i have to edit all the contents of my website to set the new styles ?
Isn't there a way to have an abstraction between contents and styles in order to easily change skins ? Like creating a "virtual" class in the content : "<a class="green_virtual" href="link">link</a>" and a mapping file to set this virtual class to the style of our current stylesheet.
Thanks in advance
Re: Separate contents from CSS
Is creating a mapping file just to change style names really good idea?
It's rather wrong to a have link style named "green_xxx". The more accurate name would be "news_link" etc.
I mean, I think that better way would be to use names of CSS class that simply tell what this class is for, not what is the current behaviour of it.
Having class named news_link, there is no need to change it from "green_xxx" to "red_xxx" each time you change the skin.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Separate contents from CSS
I gave a bad example(though your answer could've been quite the same =) ). In our actual website, we have some style names not very comprehensible, and i want to set more accurate style names for a later skin (for example "ns_lk" will become "news_link"). My contents are already stored with the style "ns_lk". I was wondering if FCK could automatically modify the style name for my contents or if an abstraction between my contents and stylesheet was possible. The simplest way seems to do the replacements in my database ( barbaric solution, but efficient =) )

Anyway, thanks for the answer wiktor