Now you can add autoindexed files to wapcreate using filelist widget

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

1 reply · 856 views · started 15 years ago · 1 min read

2 participants
antony2kx Developer · 94 posts #1

Using wapcreate filelist widget is is now easy to ad files into pages and paginate them without losing the feel o how you want to mobile sit to look

Its as simple as creating a directory and uploading your files to it then installing code on your page where you want the files to be displayed.

variables passed on t o the filelist function are

Limit = number of files that will be display (default:5)

Folder_id = Folder id which i want to fetch files from (default root folder)

extension = different file types that you want to list seperated by comma (example : jpg,png,gid)

inside the <filelist> tag there will also be a tag called pagination <pagination> </pagination>

this tag will give the look of how u want your pagination

Variables used

prev_page = link to the previous page

next_page = link to the next page

current_page_number = current page now on

total_page_number = total number of pages available

the files that are being listed will have variable name

file_name = name of file.ext

file_size = file size

file_url = url of file with http://

file_views = number of times the file has been viewed

check example code below

<wc function="filelist" folder_id="538" limit="6" extension="png,jpg,gif"><div id="file" align="left" style="border-bottom:1px solid gray"><b><img src="%file_url%" alt="%file_name%" width="75" height="75"/><br/></b> %file_name%<br/>
<b>Views:</b> %file_views%<br/>
<b>url:</b><a href="%file_url%">Download</a><br/>
</div>
<paging>

<p align="center">
 <span>%prev_page%</span> | <span>%next_page%</span><br/>

%current_page_number% <span> Of </span> <a href="?file_list_page=%total_page_number%">%total_page_number%</a>
<br/>

<form align="center" method="get" action=""><input type="hidden" name="" value="" /><input type="text" name="file_list_page" value="" size="3"/><input type="submit" value="Go" /></form>
<br/>
<wc type="ip"/><br/>
<wc type="browser"/>

</p>
</paging>

</filelist>

example can be seen at Wapcreate demo page

Please give your feedback

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close