Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Benjamin Hopkins 2 posts 22 karma points
    Aug 01, 2012 @ 14:37
    Benjamin Hopkins
    0

    HTML5 <aside> tag in Umbraco

    In a template I'm currently creating I've tried to add the new HTML5 `<aside>` tag to my markup.

        <aside class="secondary-content">

          <img src="images/content_image1.jpg" alt="Alt text 1" />

        </aside>

    However, I get the following error when viewing the page.   

        Type 'umbraco.presentation.templateControls.Item' does not have a public property named 'aside'.

    Is there anyway to allow this tag to be allowed in Umbraco 4.7?

  • Jesper Ordrup 1000 posts 1478 karma points MVP
    Aug 01, 2012 @ 14:58
    Jesper Ordrup
    0

    Hi Benjamin

    Umbraco couldnt care less about your html :-) Meaning - you can put anything being valid or invalid html/text/mumblejumble in the templates.

    I assume you are using mastertemplates. Question is - did you add the html within a content placeholder. Like this:

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    (... lots of html)
      <aside class="secondary-content">
          <img src="images/content_image1.jpg" alt="Alt text 1" />
        </aside>
    (... lots of html)
    </asp:content>

     

    /Jesper

  • Benjamin Hopkins 2 posts 22 karma points
    Aug 01, 2012 @ 15:32
    Benjamin Hopkins
    0

    Hi,

    Thanks for your input jesper.

    As usual figured out the issue a couple of minutes after psoting this. Turns out I hadnt closed the <umbraco:item /> tag directly above the aside which caused the error to show.

    Once I closed the tag it worked as planned. :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies