Solution Finally DNN RTL useless WOW


Author Message
Abuateek

Posted: 10/1/2011
Quote message 

Dear all

after a lot of troubles i have finally found the solution for my other post here http://www.artisteer.com/?post_id=175645&p=forum_post&forum_id=24

the problem :
with the help of artiseer support team they found the issue (HTML tag is removed and is missing when we add event module) and this is happening because DNN framework is dynamically creating the <HTML> tag and for some reason it gets missed up with some modules like (login - events - newsletter)

Solution:
actually simple , artisteer is adding the RTL direction attribute to the HTML tag, then RTL is gone when <html> is gone, what i did is making the page.ascx to add the attribute RTL to body tag not HTML like this
CType(body, HtmlControl).Attributes.Add("dir", "rtl")

add the above line inside the if statement in Page_PreRender in page.ascx

artisteer team please change the RTL to body instead of html in next version to overcome this issue by DNN

thank you