Skip to content

Instantly share code, notes, and snippets.

@marcoscoelho
Created August 9, 2011 04:21
Show Gist options
  • Save marcoscoelho/1133412 to your computer and use it in GitHub Desktop.
Save marcoscoelho/1133412 to your computer and use it in GitHub Desktop.
<ul>
{pyro:files:listing folder="root/subfolder" type="i"}
<li>
* {id}
* {folder_id}
* {user_id}
* {type}
* {name}
* {filename}
* {description}
* {extension}
* {mimetype}
* {width}
* {height}
* {filesize}
* {date_added}
</li>
{/pyro:files:listing}
</ul>
<div class="publishedHolder">
{pyro:files:listing folder="writing-articles"}
<p class="bolder">
{filename}
<a href="{pyro:url:site uri='files/download/{id}'}">
<img src="{pyro:url:site uri='images/view.jpeg'}"/>
</a>
</p>
<p>
- {description}
</p>
{/pyro:files:listing}
</div>
@jzmwebdevelopment
Copy link

Thanks pyro:url:site uri='files/download/{id} is what I was wanting

@jzmwebdevelopment
Copy link

@marcoscoelho I have just tried the following and I could not get it to work pyro:url:site uri='files/download/{id} , {pyro:url:site: uri='files/download/{id}}, I would get code or index.php Also when I changed the above file my files would only list by folder name and not the id

@philsturgeon
Copy link

Look at the syntax:

Wrong: {pyro:url:site: uri='files/download/{id}}
Right: {pyro:url:site: uri='files/download/{id}'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment