Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS stylable links moduleCSS stylable links module
Previous
 
Next
New Post
5/21/2009 5:08 AM
 

Thanks Arnand. I'll have a look at that.

Huys, I have found a post about What you can do with module templates. But I cannot find this functionality in my DNN 4.

I suppose this would solve my issue.
Is this something new in DNN 5?

Cheers,
Dmitriy.

 
New Post
5/21/2009 5:47 AM
 

You have to install the announcments module for that blog post to work, it is also availble in DNN 4

 
New Post
5/21/2009 9:35 PM
 

Guys,

It seems I can just modify the DesktopModules\Links\Links.ascx. Will see how I'll go with it.

Any drawbacks of this "technique"? Apart from possible upgrdae issues.

Cheers.

 
New Post
5/22/2009 5:15 AM
 

well i never looked at the links module lately because of the unclean html issue

but what i rmember is that it always genrates a table so you would have atable with Li structure in them

 

corrct me if im wrong but this used to be the case

 
New Post
5/24/2009 11:51 PM
 

armand datema wrote

 

i rmember is that it always genrates a table so you would have atable with Li structure in them

Not really. It depends on the settings of the Links module. It asp:DataList is used to generate the links. I haven't been able to generate poor UL/LI so far (as the DataList always uses SPAN to wrap content), but the SPANs are much better than tables. So I can apply CSS to it.

Here's the related part of my modified version of the links module (of course the CSS will be different comparing to my initial post):

<asp:DataList ID="lstLinks" runat="server"
	RepeatLayout="Flow" RepeatDirection="Horizontal"
	HeaderStyle-CssClass="modLinks-header"
	FooterStyle-CssClass="modLinks-footer"
	SeparatorStyle-CssClass="modLinks-separator"
	ItemStyle-CssClass="modLinks-item"
	AlternatingItem-CssClass="modLinks-item-alt"
	CssClass="modLinks-list">
	<HeaderTemplate></HeaderTemplate>
	<FooterTemplate></FooterTemplate>
	
	<SeparatorTemplate> </SeparatorTemplate>


	<ItemTemplate>		
		<asp:HyperLink ID="editLink" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>'
						Visible="<%# IsEditable %>" runat="server">
			<asp:Image ID="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%# IsEditable %>" runat="server" />
		</asp:HyperLink>
		
		<span class="modLinks-itemDesc">
			<%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Description")) %>
		</span>
		<span class="modLinks-itemLink">
			<a href='<%# formatURL(DataBinder.Eval(Container.DataItem,"Url"),DataBinder.Eval(Container.DataItem,"TrackClicks")) %>'> <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem,"Title")) %> </a>
		</span>
	</ItemTemplate>
</asp:DataList>
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS stylable links moduleCSS stylable links module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out