We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Recommendation for custom CSS on an extension page

Development and Programming

Eric Snyder's avatar
Eric Snyder
202 posts
16 years ago
Eric Snyder's avatar Eric Snyder

I am writing an extension and need to either figure out if EE already has the CSS I need or if I need to add some.

Any tips on the best way to do either?

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

I can’t help you figuring out whether EE has the CSS you need. You just have to search for it. Perhaps browse through the backends of existing modules and look out for what you need.

Concerning the latter, I’d use the settings_form() method to create my own custom settings form and use the Display Class to either add CSS or include my own stylesheet.

This would be done with $DSP->manual_css or $DSP->extra_css

       
Eric Snyder's avatar
Eric Snyder
202 posts
16 years ago
Eric Snyder's avatar Eric Snyder
This would be done with $DSP->manual_css or $DSP->extra_css

I don’t find either in the manual???

Neither of those are on either of these two pages:

http://expressionengine.com/docs/development/usage/display.html

http://expressionengine.com/docs/development/reference/display.html

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

If you look into cp.display.php you’ll find more that is not in the manual. This is true for most classes of EE.

       
Eric Snyder's avatar
Eric Snyder
202 posts
16 years ago
Eric Snyder's avatar Eric Snyder

Ahhhh… secrets.

Thanks…

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.