Copied to clipboard

Flag this post as spam?

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


  • praveen 113 posts 164 karma points
    Sep 08, 2011 @ 23:52
    praveen
    0

    Overwrites CSS

    Hi there

    Umbraco: v 4.7
    DataType: Richtext editor (TinyMCE v3 wysiwyg)

    I have some HTML code, when I replace the <p> tag to <nav> save and publish, the <nav> is completey deleted, what I want to achive is have 6pts space between each link below, how can I achive this, please help

    <p>
     <a href="#sexuality">Sexuality</a><br>
     <a href="#position-of-women">The position of women and marriage</a><br>
     <a href="#myths-and-beliefs">Traditional myths and beliefs</a><br>
     <a href="#the-role-of-men">The role of men</a><br>
     <a href="#religion">Religion</a><br>
     <a href="#the-role-of-circumcisors">The role of circumcisors</a><br>
     <a href="#social-pressure">Social pressure</a>
    </p>

    To:

    <nav>
     <a href="#sexuality">Sexuality</a>
     <a href="#position-of-women">The position of women and marriage</a>
     <a href="#myths-and-beliefs">Traditional myths and beliefs</a>
     <a href="#the-role-of-men">The role of men</a>
     <a href="#religion">Religion</a>
     <a href="#the-role-of-circumcisors">The role of circumcisors</a>
     <a href="#social-pressure">Social pressure</a>
    </nav>

     

    Many thanks in advance,

    Kind Regards

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 02:25
    skiltz
    0

    Why not use a XSLT Macro and build the links progamatically?

     

  • praveen 113 posts 164 karma points
    Sep 09, 2011 @ 03:22
    praveen
    0

    Hi Skitz, thanks for your reply,

    all the links are in the same page http://fgmtest.gorillahq.com/beliefsissues.aspx#sexuality 

    XSLT would be a bit of over kill I guess

    Amyway do you have any sample xslt to do this, please

    Many thanks in advance

    Regards

  • skiltz 501 posts 701 karma points
    Sep 09, 2011 @ 03:25
    skiltz
    0

    Is the Navigation you list above, are they actual content nodes in Umbraco?

  • Mike Chambers 635 posts 1252 karma points c-trib
    Sep 09, 2011 @ 10:32
    Mike Chambers
    0

    think Nav is being completely deleted by the tinyMce/TidyHtml cleanup routinues...

    You will need to modify the config/tinyMceConfig.config file to allow you nav tag...

    you can do this either in the validElements tag, or add

    <config key="extended_valid_elements" value="nav">

    Here's a reference for you http://www.tinymce.com/wiki.php/Configuration:valid_elements explaining the options...

    Also you may need to also turn of tidyHtml in config/umbracoSettings.config, as that is a second cleanup so valid html process in umbraco.

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

     

  • praveen 113 posts 164 karma points
    Sep 12, 2011 @ 04:19
    praveen
    0

    Hi Mike

    I added <configkey="extended_valid_elements"value="nav"> to tinyMceConfig.config and also

    added <TidyEditorContent>False</TidyEditorContent> to the umbracoSettings.config but this did not help

    after I update the HTML and save it, and then re-edit the HTML the nav tag is completely removed.

    I am using umbraco 4.7

    Many thanks for your help.

    Kind Regards

    Praveen

     

  • Mike Chambers 635 posts 1252 karma points c-trib
    Sep 12, 2011 @ 09:48
    Mike Chambers
    0

    After changing the config files did you restart you application?

    Either recycle the app pool in iis, or make a change to the web.config to force an application rebuild. The config files are only read once when the application starts. :-)

  • praveen 113 posts 164 karma points
    Sep 14, 2011 @ 01:38
    praveen
    0

    Hi Mike, YES I did recycle and also tried to restart IIS7 did not help

    any help will be greatly appreciated

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft