rejetto forum
Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: nuke11 on July 31, 2009, 12:51:46 AM
-
First I would like to say this is an excellent version. I played with the first version but like this version a lot better.
A question about adding extra file types. I have shared out a folder that has a large number of DOCX files in it, but a blank file type is displayed. How do I get it to display say the DOC file type for its icon? I've looked in the TPL and CSS file, but didn't seem to run across what I was looking for.
Also, I want to display my files and folders in a single column and not 3, how would I accomplish?
Thank you.
-
Locate in tpl file this piece of code:
[file]
<div class="row file {.switch|%item-ext%|,|jpg,jpeg,png,gif|image.}">
<a href="%item-url%" title="{.if not|{.get|can access.}|Locked || |Unlocked || .}Hits: %item-dl-count%{.if|%item-comment%| || Comment: %item-comment%.}">
{.switch|%item-ext%|,|php,aspx,asp,css,js,txt,as,tpl|
Then play with it to suit your needs, example:
[file]
<div class="row file {.switch|%item-ext%|,|jpg,jpeg,png,gif|image.}">
<a href="%item-url%" title="{.if not|{.get|can access.}|Locked || |Unlocked || .}Hits: %item-dl-count%{.if|%item-comment%| || Comment: %item-comment%.}">
{.switch|%item-ext%|,|php,aspx,asp,css,js,txt,as,tpl,docx|
For the second question, i don't know. ;D
-
To display it in a single column.
Add a clear:both; to the .row {} class.
Like so:
.row {
float:left;
height:60px;
border:1px solid transparent;
width:320px;
overflow:hidden;
clear:both;
}
For a further optimized code which allows the rows to fill the page template width:
.row {
height:60px;
border:1px solid transparent;
overflow:hidden;
}
-
I do thank you both for the information. I'll give these a try tonight.
Thank you.
-
I managed to get what I'm looking for accomplished with these 2 tips. So I can now go out and find more appropriate icons for the file types I have in use.
Thank you.