BlogSphere V3 - Feature Request: Icon of file type before attachments in downloadsCreated on |
Mar 16, 2007 |
Created by |
Thomas Bahn |
Status |
Submitted |
In downloads all file attachments in the document are added as <li>s to a <ul>. The list items are shown with bullets (at least using the iconic skin; bullets are background graphics).
I wanted the icon of the file type to appear before the attachment link. Therefore I modified RenderEngineDownload() in RenderEngine.Blog script library by replacing the line
Values(12) = Values(12) + |<li><a href="| + configDoc.cfg_Basic_HomeURL(0) + "/Downloads/" + PermaLinkDoc.Permalink(0) + |/$File/| + o.name + |" title="| + o.name + |">| + o.source + |</a></li>|
by
Values(12) = Values(12) + |<li><a href="| + configDoc.cfg_Basic_HomeURL(0) + "/Downloads/" + PermaLinkDoc.Permalink(0) + |/$File/| + o.name + |" title="| + o.name + |"><img src="filetype/| + Strrightback(o.name, ".") + |.gif"></a> <a href="| + configDoc.cfg_Basic_HomeURL(0) + "/Downloads/" + PermaLinkDoc.Permalink(0) + |/$File/| + o.name + |" title="| + o.name + |">| + o.source + |</a></li>|
and modifying the skin a little bit (to hide the bullet background graphic)
.entry .download ul li{
background: none;
padding-bottom:5px;
font-size:13px;
}
.download {
margin-bottom: 10px;
}
Therefore, I have "flagged" the download entry with the CSS class "download" by replacing
<div id="media" class="entry-media">
by
<div id="media" class="entry-media download">
in the layout template for download entries.
Taken Actions by OwnersNo actions have been taken yet.