How to embed into css?
Posted: 19 April 2008 07:44 AM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  103
Joined  10-21-2003

I’d like to make my style sheet easier to manage (it’s gotten too big), so I thought I’d break it into smaller templates and then use “embed” to pull them together.  But the simple embed function doesn’t seem to work in my css template.

{embed="content/css_headers"}

Am I doing anything wrong?  Is there an easier way to approach this problem?

Thanks.

Profile
 
 
Posted: 19 April 2008 08:02 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15489
Joined  05-15-2004

It depends on how you are calling your stylesheet. If you use the {stylesheet} variable, most of the EE tags will not work, because the template is no run through the EE parser. If you do user {path} however, they will, including global variables and embeds. Does that help?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 19 April 2008 08:09 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  103
Joined  10-21-2003

Cool!  Yup, that fixed it.  Thanks, Ingmar.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 33
Total Topics: 82229 Total Anonymous Users: 18
Total Replies: 441928 Total Guests: 221
Total Posts: 524157    
Members ( View Memberlist )