Copied to clipboard

Flag this post as spam?

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


  • Kate 267 posts 610 karma points
    Aug 27, 2013 @ 10:33
    Kate
    0

    insert the name of doctype on my master template

    Hi

    I need to insert the name of doctypen on my master template.
    How do I do that?

    <head>
    ...
    </head>
    <body>
    <div id="wrapper" class="nameOfTheDocType">
    ... rest of the content
    </div>
    </body>

    Thanks in advance

    /Kate

  • Kate 267 posts 610 karma points
    Aug 27, 2013 @ 19:20
    Kate
    0

    I might have to explain myself a little better :-)
    I'd like to add a class on my outer div in my master template.
    This class shall contain the name of the template / DOCTYPE of the page.

    Let us say I have 2 templates (contact and subpage) . When I create a page I choose a docType - lets say "contact". Now in my html I'd like the class to contain the docTypes name. like this

    <head>
    ...
    </head>
    <body>
       
    <divid="wrapper"class="contact"> <!--This is the class im talking about :-)-->
          ... rest of the content
       
    </div>
    </body>

    and if it's a subpage the class should contain the word "subpage"


    hope it makes a little more sense :-)

    /Kate

  • 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