This plugin goes along with this thread here. I will place all new updates to the plugin in this thread from now on to keep things together.
Plugin Description
A nice simple one this one. Allows you to use a tag to show the last x number of wiki entries that were created / edited in a certain wiki.
Usage
{exp:wikee_display entries="4" characters="20" wiki_short_name="default_wiki" template_group="wiki/my-wiki"}
<h2>{page_name}</h2>
{page_content}
<a href="http://{page_name_link}">Edit Page</a>
<hr >
{/exp:wikee_display}
Parameters entries=”4” - sets how many entries to show. characters=”20” - How many characters of the page_content to show as an excerpt. wiki_short_name=”default_wiki” - needs to be set to the short_name of your wiki. template_group=”wiki/my-wiki” - explained below. randomize=”yes” - show random entries based upon entries parameter. If set to anything other than yes then the plugin works as per normal.
You will need to find out the short name of your WIKI to use in the wiki_short_name=”default_wiki” parameter.
Place the name of the template group and template (if a template other than index is being used) that is being used to hold your wiki code into the template_group=”wiki” parameter. If you are just using the index template within say a group called wiki then all you have to place is template_group=”wiki” as the plugin parameter. If you are using wiki as your template group and then say my-wiki as the template then place template_group=”wiki/my-wiki” as the parameter instead.
As a hidden extra I have also coded in the {switch="option_one|option_two|option_three"} variable too!! 😉
Hope this is of use to people.
Best wishes,
Mark
Just to keep anyone in the loop who is reading this 😉 I need to update the plugin a little. I had never used the WIKI before so was unaware of namespaces. I will need to add that in incase anyone is using namespaces as otherwise the links will be incorrect for anything other than your main wiki pages.
Of course if you aren’t using namespaces then this plugin should hopefully function fine but I will place the new addition to the plugin up online as soon as I have it ready.
Best wishes,
Mark
Thanks Mark, this is amazingly handy. Downloaded and trying it now!
Well hope it helps. As I mentioned above I hadn’t realised when writing the plugin about namespaces also as I had never used the WIKI module before so this plugin only works for standard entries in the WIKI. Any entries with namespaces won’t work I’m afraid.
If ever I get the chance to update it then I will but unfortunately with the threat looming of redundancy things are looking a little bleak on the horizon :down:
Hope it works for you though.
Best wishes,
Mark
Very fast update. Plugin now has the randomize=”yes” parameter added to it as per a request by vosSavant 😉.
Best wishes,
Mark
Mark:
Recently started using this plugin. thanks for the effort. 2 questions:
Thanks again …
Hey, guys…
I’m having difficulty using this with EE 2.0. First off… I can’t get it to display in the plug-ins list in the cp. I followed the new plug-in directions listed here: http://expressionengine.com/public_beta/docs/templates/plugins.html, and I put it in it’s own folder and uploaded it into the third party directory.
Also, just to make sure… I’ve uploaded the php files to the plug-in folders, both in the new ExpressionEngine directory and the original one for 1.68, and zip zero nada.
I would say this is probably the entire source of my problem. I’ve made sure the plug in directories are set to 777, and anything else I could think of, I’ve cleared my cashes, etc., and I still can’t get it to show up.
Someone please point me in the right direction!
////////////////UPDATE:
Ok, I installed all of the plug ins from here: http://expressionengine.com/public_beta/downloads/
…and then I tried it again and it magically worked. Man… I think I’m going to have to check myself into a mental institution soon!
I still haven’t tried it, but it’s in the control panel now and that’s good enough for tonight.
Thanks, Mark! I’ll be looking out for it.
If it helps, here is the error message I get with EE 2.0:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant PATH_CORE - assumed 'PATH_CORE'
Filename: wikee_display/pi.wikee_display.php
Line Number: 47
A PHP Error was encountered
Severity: Warning
Message: Wikee_display::require(PATH_COREcore.typography.php) [function.Wikee-display-require]: failed to open stream: No such file or directory
Filename: wikee_display/pi.wikee_display.php
Line Number: 47
Fatal error: Wikee_display::require() [function.require]: Failed opening required 'PATH_COREcore.typography.php' (include_path='.:/usr/share/pear:/usr/share/php') in /www/eh11744/public_html/world/expressionengine/third_party/wikee_display/pi.wikee_display.php on line 47
Merry Christmas, Everyone!!!
Hiya,
just created the EE2 version for this nice plugin, i hope it works well on your side too. shouldn’t be hard to install, just put it up into the third_party folder. best!
Is this just a straight conversion of the plugin I created or have you updated it in some way to get around the things I needed to fix?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.