ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE2 Parser is confused

June 15, 2012 5:18pm

Subscribe [3]
  • #1 / Jun 15, 2012 5:18pm

    hagcin

    14 posts

    So I have this code.

    {embed="/site/html_header" more_lines="{css_home_page}" js="{js_mini_calendar}" manual_title="Home" 
    css='
     #hp_news div, #hp_vid {font-size: 12px; padding-left:14px; padding-right:10px; padding-top:10px;}
     #hp_news p{font-size: 12px;}
     #hp_event_list_img_wrap {float:left; width: 60px; padding-left:10px;}
     #hp_event_list_text {float:right; width: 210px; margin-right:5px; line-height: 18px;}
     #event_hr {color: #4b5c4a; background: #4b5c4a; border: 0; height: 1px;  margin-top: 8px; margin-bottom: 8px; width: 95%; clear:both; }
     #featured_in { background:url(/~sierrabc/themes/third_party/sierra/featured_in_bg.png) repeat x; } 
     #featured_in div{ background:url(/~sierrabc/themes/third_party/sierra/featured_in.jpg); height 117px; } 
     .featured_video { background:url(/~sierrabc/images/icons/play.png) 50% 50% no-repeat;}
    '}

    These line are what is tripping up the EE parser.

    #featured_in { background:url(/~sierrabc/themes/third_party/sierra/featured_in_bg.png) repeat x; } 
     #featured_in div{ background:url(/~sierrabc/themes/third_party/sierra/featured_in.jpg); height 117px; } 
     .featured_video { background:url(/~sierrabc/images/icons/play.png) 50% 50% no-repeat;

    It gets all confused and shows one line or maybe 2.
    I really like passing inline CSS to my header because it lets be develop very fast and then move it into a style sheet latter. Is there a way I can pass code to a embed without tripping up EE’s parser?

    EE 2.5.0

     

  • #2 / Jun 16, 2012 12:32am

    Manoj Thomas

    185 posts

    Not sure why this would create parsing issues, but there are some syntax errors in the CSS (specifically on the lines that you determined to be tripping up EE):

    repeat x ==> repeat-x
    height 117px ==> height: 117px

  • #3 / Jun 18, 2012 10:52am

    Shane Eckert

    7174 posts

    Hey hagcin,

    I am sorry to hear you are running into this snag.

    I do not think the embed variable would be causing a parse order error. To rule out the mistyped coded, can you correct the lines that Manoj mentions and see what happens?

    Thank you,

  • #4 / Jun 23, 2012 12:22pm

    hagcin

    14 posts

    Hmm, so far i have not been able to repeat the issue.
    if it comes up again, ill try to have more debug information.

  • #5 / Jun 25, 2012 11:00am

    Shane Eckert

    7174 posts

    Hey hagcin,

    Glad to hear it. Getting that debug next time will be very helpful.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases