From: SourceForge.net <no...@so...> - 2006-10-10 01:37:43
|
mod/wiki item #1574170, was opened at 2006-10-09 20:19 Message generated for change (Settings changed) made by blindman1344 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=716466&aid=1574170&group_id=81360 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: RFE Group: None Status: Open Resolution: None Priority: 5 Submitted By: Chris (youcantry) Assigned to: Greg Meiste (blindman1344) Summary: Wiki - list pages (new feature supplied) Initial Comment: I just wrote an email to Greg at the address specified in the module docs, but that bounced... Anyway, here is the text of that email, which includes 2 new feature requests as well as information about the subject of this support request: being able to list all wiki pages. __________________ Hi Greg, I've just starting using the wiki module for phpws (version 0.6.0). Great work! :) I've thought of a couple of feature requests, but am not sure where to post them. In one case, I've coded the changes, so I'll include the details in this email. Before I get to that, let me list two other feature requests: Instead of having anchor targets globally specified in the admin screen - can we make that admin setting a default value and add some new syntax for anchors which allows you to specify the target on a per-usage basis? eg: [WikiPageName|blank linked text] or: [htttp://url.com|self linked text] Likewise, (but perhaps a bit more work), can we specify a template for images? eg: [http://url.com/imagename.jpg|float_right_click_to_expa nd.tpl And some mouseover (or alt) text for good measure] Image templates would contain a single markup tag - something like {IMAGE_URL}. Template authors could artificially reduce images to thumbnail size (ie, load the full sized image and render at a smaller size) and wrap that with an anchor tag to display the full sized image when clicked. Obviously they can do any layout stuff as well such as floating text around the image, aligning the image, managing styles for borders, etc. OK.. now for the easy one - the one I've coded. I couldn't find any way to just list all wiki pages, except to run an empty search. However the admin screen does list pages after the admin settings. Attached is a version of the module containing changes for adding a new operator (named "listpages") which does just that (and nothing more). I haven't coded any new permission settings to govern this, but it should be useful for non-admins to access a page list without having to resort to the search box. (Personally I use the link as part of the Stats module's counter block - the tally of wiki pages is a clickable link to the list of pages). In any case, a direct URL would now be: index.php?module=wiki&op=listpages Also - you'll see that properly, the functionality to list pages and display admin settings should be separated out into different functions. But I was after a quick solution :D I changed WikiManager.php - to add a new operator case (called "listpages") I changed WikiSettings.php - changing only the "admin" function. I added a new argument (called $fullAdmin) to the function, which defaults to true. The operator "listpages" calls the admin function with a "false" argument, hence activating the changes. The changes in WikiSettings.php are essentially to skip all of the processing associated with the admin settings, and just get down to the page list at the end. This requires a new template - one without all the colons. Also - the page title has been changed. I added a new template named listpages.tpl And that's it. Cheers, and thanks, Chris. ---------------------------------------------------------------------- Comment By: Greg Meiste (blindman1344) Date: 2006-10-09 20:36 Message: Logged In: YES user_id=780595 Not sure why the email bounced. I do not plan to add any more features to the 0.x.x series. I am nearing completion on version 1.0.0 which is for phpWebSite 1.0.x. The initial 1.0.0 release will mainly be version 0.6.0 converted to the new phpWebSite. After that release, I will be adding new features again. I'm moving this to the wiki tracker. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=716466&aid=1574170&group_id=81360 |