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

wiki data plugin (Wikibits)

Development and Programming

Michael Rog's avatar
Michael Rog
179 posts
16 years ago
Michael Rog's avatar Michael Rog

I need a way to pull content from wiki articles into templates.

Like the {exp:channel:entries} tag, except for wiki data.

(EE lets you pull content from one wiki article into another wiki article via the wiki embed tag, but you can’t pull wiki data into templates, to my knowledge, except with the Query module…)

So I’m going to write a plugin to query bits of data from EE’s wiki tables. While I’m at it, I’d be interested to know if this might be useful for anybody else, and if so, what bits of wiki data you’d like to have access to in your templates…

The ideas I have so far:

  1. list/embed article data
    • select / filter by author, namespace, title, publish date, revision date, or revision ID
    • order by author, title, or revision date
    • limit w/ parameter
{exp:wikibits:pages page_name="" page_namespace="" revision_date="" revision_author="" revision_status="" orderby="" sort="c" limit="" last_revision_only="true/false"}

{page_name}, {page_content}, {revision_author}, {revision_date}, {original_author}

{/exp:wikibits:articles}
  1. shorthand: embed the content of an article’s latest revision
    • selected by title (and optionally, namespace)
{exp:wikibits:embed page_name="" namespace=""}

{page_name}, {page_content}, {revision_author}, {revision_date}, {original_author}

{/exp:wikibits:embed}
  1. shorthand: list recently changed articles
    • filtered by namespace
    • limit w/ parameter
    • order by title or last revision date
{exp:wikibits:recent_changes namespace="" limit="" orderby="" sort=""}

{page_name}, {page_content}, {revision_author}, {revision_date}, {original_author}

{/exp:wikibits:recent_changes}
  1. shorthand: list all the articles to which a user has contributed
    • filtered by author (and optionally, namespace)
    • order by title, latest contribution date, or last revision date
    • limit w/ parameter
{exp:wikibits:bibliography author="" namespace="" type="original_author/contributor/both" orderby="" sort="" limit=""}

{page_name}, {original_revision_date}, {original_author}, {last_revision_date}, {last_revision_author}, {first_contribution_date}, {latest_contribution_date}, {contribution_count}

{/exp:wikibits:bibliography}

Anything else?

       

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.