rejetto forum

Live 3.0.0 Add File Types

nuke11 · 5 · 11079

0 Members and 2 Guests are viewing this topic.

Offline nuke11

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
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.
« Last Edit: July 31, 2009, 12:58:54 AM by nuke11 »


Offline Caco

  • Tireless poster
  • ****
    • Posts: 113
    • View Profile
Locate in tpl file this piece of code:

Code: [Select]
[file]
<div class="row file {.switch|%item-ext%|,|jpg,jpeg,png,gif|image.}">
<a href="%item-url%" title="{.if not|{.get|can access.}|Locked&nbsp;&#124;&#124;&nbsp;|Unlocked&nbsp;&#124;&#124;&nbsp;.}Hits: %item-dl-count%{.if|%item-comment%|&nbsp;&#124;&#124;&nbsp;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&nbsp;&#124;&#124;&nbsp;|Unlocked&nbsp;&#124;&#124;&nbsp;.}Hits: %item-dl-count%{.if|%item-comment%|&nbsp;&#124;&#124;&nbsp;Comment: %item-comment%.}">
   {.switch|%item-ext%|,|php,aspx,asp,css,js,txt,as,tpl,docx|

For the second question, i don't know.  ;D


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
To display it in a single column.

Add a clear:both; to the .row {} class.

Like so:
Code: [Select]
.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:
Code: [Select]
.row {
height:60px;
border:1px solid transparent;
overflow:hidden;
}


Offline nuke11

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
I do thank you both for the information.  I'll give these a try tonight.

Thank you.


Offline nuke11

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
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.