New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend preview stylesheet #302
Comments
Seems like the issue here is that some templates now use |
I think the best solution here would be a generic function to add the cache busting version string to any CSS or JS asset in Smarty templates. That would also be helpful for frontend theme authors. |
Sadly that's not easy, it would require all custom getfile calls with a new param; because the cache string needs to be appended with "?" For url-rewritten blogs but "&" for non-rewritten ones...
|
Well, the option would be to find out how to make |
CSS file, including cache-busting version string when changing themes References #302
CSS file, including cache-busting version string when changing themes References #302
I've now committed a new tpl var that properly references the frontend, and includes the cache-busting string... please check and reopen if it doesn't work for you guys or I misunderstood cc @donchambers |
Works. Excellent, I had already given up on this. ;-) Why do we still need the fallback to |
For users with s9y < 2.0.2 (we could remove that fallback for 2k11 and other themes, but I'm too afraid that users will user that as a copy&paste draft, and then a fallback could help...) |
Wouldn't it make more sense to incorporate the version check and fallback into the generation of |
$head_link_stylesheet_frontend does not exist in < 2.0.2, so no. |
It does seem to work.. however, the html being emitted upon save (and perhaps other states, such as error) is coming from 2k11: So, unless a template has those classes, they will not appear as they do in the 2k11 theme. So, can we get those messages emitted by a theme's specific preview_iframe instead of 2k11? |
That is a different issue, though. This should probably be discussed along with #218. |
Pretty sure the preview in the entry editor is bugged at least for some themes. I did some tests and could not get the backend iframe preview to generate the proper stylesheet.
See http://board.s9y.org/viewtopic.php?p=10441958#p10441958
The text was updated successfully, but these errors were encountered: