Latest Featured Articles
New two columns valid skin package.
Posted at:Wednesday, October 29, 2008 Viewed:(94)times. "Hi,I would like to announce our new skin package, "Nukedesigners two columns for dotnetnuke."The va..."....Read more....
Takeslides at photobucket.
Posted at:Saturday, August 16, 2008 Viewed:(273)times. "Hi All! I'm quite excited to share here that "takeslides" was just added to the "Photobucket Applic..."....Read more....
Takeslides.com at Orkut and facebook.
Posted at:Saturday, July 26, 2008 Viewed:(353)times. "Well these couple of month were quite overwelming. From the point of launching takeslides at hi5.com..."....Read more....
Takeslides at hi5.com
Posted at:Sunday, June 01, 2008 Viewed:(448)times. "Hi! Just a few hours ago takeslides.com was launched at hi5.com."....Read more....
Takeslides.com is launched!!!
Posted at:Tuesday, May 13, 2008 Viewed:(580)times. "Hi Everyone, I'm glad and excited after quite some long time of silence, (at least at "nukedesigner..."....Read more....
iTune latest RSS slideshow gadget
Posted at:Thursday, February 07, 2008 Viewed:(683)times. "Hi! We have just released our new gadget. It is a slideshow of iTunes latest by all categories. Yo..."....Read more....
Exciting news for Picasa, Photobucket and Flickr users!
Posted at:Tuesday, January 22, 2008 Viewed:(828)times. "TURN your RSS buttons at the  bottom of any of your albums pages to a beautiful slideshow withi..."....Read more....
"Announcements" new feature in the social bookmarking template
Posted at:Saturday, December 15, 2007 Viewed:(821)times. "Hi! We've added a new  "Announcement" feature to our "social bookmarking template". Please ta..."....Read more....
A new forum as well.
Posted at:Thursday, December 13, 2007 Viewed:(932)times. ""....Read more....
New features: A newsletter and a new catalog
Posted at:Thursday, December 13, 2007 Viewed:(1149)times. "Hi all! I'm excited to announce those two new features. The first is the newsletter which I'm usin..."....Read more....
Support, Tutorials, Articles

Child links part II: side links

So we would like to open the child links module and create a side menu. For that we'll be using just the [NAME] token and the [DESCRIPTION] for the tool-tip (optionally).

<div class="side_childlinks> 

<ul>  //** put these two lines in the header of the html (at the module "view optlins".)

<li><a href="[LINK]" title="[DESCRIPTION]>[NAME]</a></li>///** put that line only at the body html*///

</ul>

</div>  //*** put these last two lines in the footer of the html.**///

That's it!

Now all is left is to style the childlinks

CSS of childlinks:

.side_childlinks{} >#dnn_ContentPane

.side_childlinks ul{display:block;margin:0px;}

.side_childlinks ul li{height:26px;line-height:26px;margin-bottom:6px;list-style-type:none;}

.side_childlinks ul a:link{padding:0px 12px;text-decoration:none;border:1px dotted green;font-size:12px;color:green;}

.side_childlinks ul a:visited{padding:0px 12px;text-decoration:none;border:1px dotted green;font-size:12px;color:green;}

.side_childlinks ul a:hover{padding:2px 12px;background:green;border:1px dotted #d5a5a5;color:white;font-style:italic;}

.side_childlinks ul a:active{padding:2px 12px;background:green;border:1px dotted #d5a5a5;color:white;}

If you read the "CSS and child classes" you probably got the idea of what we were doing here.

parent class is "side_chillilinks".

So if you want to control that list only you should put it before the other classes:

.side_childlinks ul so it will effect only the ul which is inside the parent class, and so on with li and a (links).

Now, all is left is to add those classes to the skin.css.

After you have added the classes to your skin.css open the child links module insert the code from above to the template html and start playing with it live, using the web developer toolbar for fire fox, for example.

Here is how it looks with default styles:

That is how it looks with the classes we have added:

A few notes:

If you prefer you can replace the [LINK] with the [ICON]. It already contains the "alt" part of the img tag inside of it.

Other wise you will have to add an alteration for the image in case someone or something can't "see" it.

Like: <li><a href="[LINK]"> src="/images/anyimage.png" alt="[DESCRIPTION]</a></li>

Or as simple as:

<li><a href="[LINK]">[ICON]</a></li>

 

Also important:  In the css above there is no difference between the a:link and a:visited for example. You must copy it other wise dotnetnuke takes/inherits classes from the portal or default css and you won't be able to understand where that bug is coming from. as you can see I had to add the "content pane" as a parent other wise I was not able to get clear of those inherits.

Good luck!.

posted @ Thursday, October 25, 2007 4:57 AM by Avi A

comments

Name (required)

Email (required)

Website

Enter the code shown above: