Copied to clipboard

Flag this post as spam?

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


  • vikas mehta 16 posts 31 karma points
    Jul 16, 2009 @ 12:04
    vikas mehta
    0

    nested div when taken in content area removes all internal tags and leaves only external main tag

    Hello Friends

    i am using the latest release of Umbraco (4).

     

    I have developed a site and in that content area part  i have used a lot of nested div tags.

    But after saving the content what i found is that   it removes all internal nested Div tags and leaves with only the external div tag.

    can u pls suggest me how can i solve this problem...

    I havent used XSLT ...so pls consider this when giving suggestions.

    Here is an example :

      <div class="Name">
        <div class="Subject" style="width:260px;">
          <div class="Division">
              <p class="Category">Lists of collges student attending the lecture</p>
            </div>
        </div>
    </div>

    Thanks in advance

    Vikas Mehta

     

  • Chris Dunn 75 posts 127 karma points
    Jul 17, 2009 @ 02:27
    Chris Dunn
    1

    It sounds like it's TidyHtml that's "cleaning up" your code and has merge-divs set somewhere.  Turning off tidy is a quick solution.

    In \config\umbracosettings.config and set the TidyEditorContent to false:

     

        <!-- clean editor content with use of tidy -->
        <TidyEditorContent>false</TidyEditorContent>

     

    -Chris

     

  • vikas mehta 16 posts 31 karma points
    Jul 17, 2009 @ 07:29
    vikas mehta
    0

    Chris,

    Great man....Thanks for your support...problem got solved....

Please Sign in or register to post replies

Write your reply to:

Draft