We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

NEW Plugin - Wikee Display…

Development and Programming

Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

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

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

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

       
mattbrighton's avatar
mattbrighton
50 posts
16 years ago
mattbrighton's avatar mattbrighton

Thanks Mark, this is amazingly handy. Downloaded and trying it now!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen
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

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Very fast update. Plugin now has the randomize=”yes” parameter added to it as per a request by vosSavant 😉.

Best wishes,

Mark

       
vacquah's avatar
vacquah
355 posts
16 years ago
vacquah's avatar vacquah

Mark:

Recently started using this plugin. thanks for the effort. 2 questions:

  1. I am trying to display the latest wiki items sorted by date in the descending format - how do i do that?
  2. I am also looking to display the article post / edit date - not sure how to do that with your plugin.

Thanks again …

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
15 years ago
JohnChristianJr's avatar JohnChristianJr

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.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

Just as a quick word of warning. This plugin I would say 100% won’t work with 2.0 as I haven’t converted it yet.

I’m not sure when I will get the chance to convert all my 1.6.x add-ons to 2.0 but they will be done at one point or another definitely.

Best wishes,

Mark

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
15 years ago
JohnChristianJr's avatar JohnChristianJr

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!!!

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
15 years ago
Sue Crocker's avatar Sue Crocker

As Mark mentioned, this add-on needs to be converted to work with EE2.0PB. Just putting it into the right folder won’t make that happen.

       
Linda A's avatar
Linda A
647 posts
15 years ago
Linda A's avatar Linda A

Is it possible to use this plugin more than once in a template? I am trying to show the last 5 entries from two different wikis, and only the first one shows up.

       
obsesif's avatar
obsesif
11 posts
15 years ago
obsesif's avatar obsesif

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!

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
15 years ago
Mark Bowen's avatar Mark Bowen

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?

       
obsesif's avatar
obsesif
11 posts
15 years ago
obsesif's avatar obsesif

i’ve gone trough your plugin file, looking for the php error-codes and updated the methods with their new ones… no fix for your ideas, though… 😉

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.