• Anonymous
  • Login
  • Register
BlogSphere V3 - Feature Request: Icon of file type before attachments in downloads


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 Owners

No actions have been taken yet.


In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.