You are not logged in.
Victor, I won’t do this in my plugin, but since you’re a plugin author yourself, you can easily do this yourself and create a plugin called abc_css_embed (where abc is replaced with your prefix) having just the attribute “name”. All you’d have to to is pull the named style sheets from the txp_css table and output those enclosed in style tags.
People who want embedded CSS probably don’t want the static CSS that my plugin provides (and vice versa), so I think it makes sense to create a separate plugin for this. It’s more efficient (less plugin code to load)
Forgive me if i’ve asked this before but is there anyway this plugin could to file versioning? Because at the moment people don’t see CSS changes until their cache clears.
It would be cool if it could change the output file name each time it saves. For example….
- default.v001.css – default.v002.css
When creating a new stylesheet, the content of the textarea seems to be saved on the database, but the served static file is just a copy of the default CSS (more precisely, of the stylesheet being used by the default section, that may not necessary be the one with name default).
Steps to reproduce it:
1. create a new stylesheet using the “Create or load a new style”
2. add your rules, paste your stylesheet, whatever…
3. Save it.
You will see your stylesheet on the textarea, but if you check the corresponding file, it has the rules for your default CSS.
I’m on Txp 4.0.7.
La música ideas portará y siempre continuará
Thanks. If you edit the plugin, you can replace this line:
[incomplete/incorrect fix removed. New plugin version is available]
Last edited by ruud (2008-12-20 21:49:23)
Does this require a plug-in update Ruud, or should we all just do the above mod, or is it an individual problem that Julián is suffering from?
I’ll update the plugin tonight (at work right now). This problem only occurs if you create a new style sheet or if you copy a style sheet. Updating stylesheets works fine.