Now you can add autoindexed files to wapcreate using filelist widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Now you can add autoindexed files to wapcreate using filelist widget

    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

    Code:
    <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
    Last edited by antony2kx; 27.11.11, 16:22.

    #2
    very nice widget,..

    Comment

    Working...
    X