Specifying html tags in skin.xml file
Last Post 07/22/2006 12:19 AM by Jim Pandaz. 6 Replies.
Author Messages
Jim Pandaz
Nuke Active Member
Nuke Active Member
Posts:22


--
07/18/2006 7:51 AM  

Hi Lee.

I am new to this site and hope I am asking in the correct topic group.  I have two questions:

1. What is the difference between [MENU] and [SOLPARTMENU].  They seem to have the same attributes.  Does one have better benefits than the other?

2. I am trying to specify the tag <span> and </span> for the [MENU] token for

RootMenuItemLeftHtml and

EG:
<Setting>
<
Name>RootMenuItemLeftHtml</Name>
<
Value><span></Value>
</
Setting>

This does not seem to get parsed properly at all and when I look at my ascx file, these attributes are not there!! 

I have even tried using &lt;span&gt; and also have tried using <<span>>.  But this does not seem to work. 

How is one meant to specify html tags in an xml file?

Thanks Jim.

PS:  This is a great and very useful site.  Although I know my way around DNN, your videos help me understand the more subtle querky things that I would probably never have had worked out.  Good work.

Also, just curious.  Is it you that is the voice behind the videos?

RootMenuItemRightHtml.
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
07/18/2006 7:58 AM  
Hi Jim,

Glad you find the site useful and yes it is my voice behind the videos!

I will try to answer these questions as quick as possible, I'm due to go into a meeting so if they call I will just post it up and answer the rest later ;-)

1. In previous versions ie. 3.2 / 4.0.2 I don't think there is a difference between [MENU] and [SOLPARTMENU] BUT - in the latest version of 4.3 / 3.3 I think there will be as they have created a new menu for this version, so that will take a little research. - To be safe I would use [SOLPARTMENU] when following the tutorials on this site.

- In later tutorials this may change, but I will clarify it in a tutorial if it should use [MENU]

just been called to the meeting, I will get back to you in a few hours, thanks
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
07/19/2006 2:48 AM  
Hi Jim,

I've just downloaded the latest skinning guide for 4.3, in response to 1) [MENU] is the old name for solpart menu, so in all your skins you should now be using [SOLPARTMENU] they both use the same menu.

2) This element in Solpart menu is new in 4.3 and I haven't used it. I would suggest just entering span without any tags at all and then see what happens in the HTML. This element may be just used for certain HTML elements, but there is nothing in the docs to give any clues.

Try for instance just adding <em> etc. to see if it changes the text to italic, at least this way you will be able to easily visually see if you can get the property working.

- Make sure you add the closing tag to the rootmenuitemrighthtml

I'm guessing this is how it works, but there is nothing in the docs to provide any clues, if you find the solution let us know as I will need to add these new elements into the Skinning Toolkit.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
Jim Pandaz
Nuke Active Member
Nuke Active Member
Posts:22


--
07/21/2006 10:48 PM  

Thanks Lee.

I tried this and still didn't work.  It placed the following for these attributes:

RootMenuItemLeftHtml

="span"

RootMenuItemRightHtml

There must be a way to be able to put <  and >.  I've tried using &lt; for example, but this does not get processed at all.

For now, it seems like a manual change to open up the ascx file and update these 2 attributes manually.

If anyone does find a way around this, please post to this forum.

Thanks Jim.

 

="/span"
 
Jim Pandaz
Nuke Active Member
Nuke Active Member
Posts:22


--
07/21/2006 10:50 PM  

Not sure what happened with the above post, but it is meant to say:

RootMenuItemLeftHtml="span"

RootMenuItemRightHtml="/span"

Hopefully it is formatted better this time.

Cheers Jim.

Jim Pandaz
Nuke Active Member
Nuke Active Member
Posts:22


--
07/22/2006 12:15 AM  
FINALLY WORKING.

I know that I previously mentioned that I tried using the encoding technique of specifying < and >...BUT IT DOES WORK. I could have sworn I tried this.

So for anyone wanting to use html in their xml files for similar attributes that I was using, you can.

So for example for the RootMenuItemLeftHtml token I used
<span>

and for the token RootMenuItemRightHtml, I used
</span>

Thanks Jim.
Jim Pandaz
Nuke Active Member
Nuke Active Member
Posts:22


--
07/22/2006 12:19 AM  

Again...formatting problems.  The bottom is meant to say:

So for example for the RootMenuItemLeftHtml token I used &lt;span&gt;.

and for the token RootMenuItemRightHtml, I used &lt;/span&gt;.

 

Hopefully it formats this time.

 



---