|
Cookbook /
FileAttachListSummary: Adds a Ajax list of quickly attachable files to the edit page
Version: 0.1 June 18, 2007
Prerequisites: PmWiki
Status: Testing
Maintainer: Scotepi
Questions answered by this recipeHow can I view a list of attachable files on the edit page? Description![]() Shows a link on the edit page to dynamically load a list of attachable files. Install Instructions
Notes
Release Notes
Comments(2007-08-14) When I add the code above to local/config.php and copy to cookbook/jsfilelist.php, I get PHP code when loading pmwiki.php in edit mode. Also is it "require_once" or "include_once"? I tried both, but still got the echo of PHP code from jsfilelist.php. (2007-08-21) Hi! I just tried it. The file you download when you click on the link is in fact the PHP source in HTML format. So what I did was to click on the link, this will show you the code in your browser. Just select all the code, copy-paste in a file named jsfilelist.php in your cookbook directory. Include this file in your local/config.php. Be sure that the skin you're using has a "<!--HTMLFooter-->" at the end of its code (mine hadn't), then you'll see the new link just before the buttons bar in edit mode.
The only problem I found is that $uploaddir = FmtPageName("$jsflUploadDir (2007-08-26) Thanks Jonathan. However, now I although the ajax menu loads, my Save, Preview and Cancel buttons at the bottom of the edit window does not work. Advise? |