How do I disable the link on the date field in the file Skin-EntryList.ascx so that it's just text with the date. Here is the code below
asp:Repeater id="EntryItems" Runat="server">
Thanks in advance!
Prescotti
Sorry I didn't make myself clearer. I need to disable the link but keep the date.
Thanks.
You could set the Date Link to not visible and then write out the text value of it like this:
<asp:HyperLink id="CommentsLink" Runat="server" CssClass="comments" Visible="False" />
<%= CommentsLink.Text %>
IIRC, if you set a ASP.NET control's visible property to false, all it does is add the css attribute visibility: hidden;. The problem with this is this attribute tells the browser to hide the control, but still leave the space allocated to it free. This is as opposed to display:none; which makes the control disappear as if it never existed on the page.
Just something to watch out for when you're laying the page out - if you get weird gaps, that's why.
Sam
this code no works for me.
Please, I need to disable the link but keep the date.
There are any way?
Guillermo: this code no works for me. Please, I need to disable the link but keep the date. There are any way?
You replied to a very old thread. What version of Community Server are you using? The information above was for CS 2.1 which had much less flexible theme system than the current version, CS 2007.
If you are using CS 2007, you can simply remove the LinkTo="..." attribute on the WeblogPostData control that is displaying the date.
<
Hope that helps.
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com