doublesecretagency / craft-cpcss

Control Panel CSS plugin for Craft CMS
MIT License
117 stars 8 forks source link

External CSS Not parsing siteUrl #3

Closed oadslug closed 10 years ago

oadslug commented 10 years ago

For some reason the path to the external css file is not parsing {siteUrl}, but treating it as a string literal. {siteUrl} works in other parts of the CMS, so it's definitely not a site-wide setting. Any thoughts why this might not be working?

lindseydiloreto commented 10 years ago

It depends where you're setting the "siteUrl" value in your config file. Is it inside or outside of the environmentVariables array?

http://craftcms.stackexchange.com/questions/1771/environment-variable-siteurl-ignored/

I may change the plugin example, since "siteUrl" is no longer the preferred terminology for that variable... instead the example should now read "baseUrl".

http://buildwithcraft.com/docs/multi-environment-configs#environment-specific-variables

There used to be a lot of confusion about the difference between {siteUrl} and {{ siteUrl }}...

http://craftcms.stackexchange.com/questions/911/how-do-i-make-site-links-relative/913#913

Hope that helps!

lindseydiloreto commented 10 years ago

Related: http://craftcms.stackexchange.com/questions/920/what-s-the-recommended-way-to-set-the-site-url

oadslug commented 10 years ago

Thank you! Adding siteUrl to the environmentVariables worked perfectly. And thank you also for the plugin. Very much appreciated. — D

lindseydiloreto commented 10 years ago

Excellent! Glad you're enjoying it!