Created
August 9, 2011 04:21
-
-
Save marcoscoelho/1133412 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 the usage sample 2 solves your question?
Thanks pyro:url:site uri='files/download/{id} is what I was wanting
@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
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
Thank you,
A couple of issues have arisen as seen in my form link, It does not seem to take the folder=. What would the <a href="" be?