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 - Retrieve Status names…

Development and Programming

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

Hiya,

I’ve not had time to fully test this one out yet but I am pretty sure that it should be working okay.

There is a post here that describes in more detail what this plugin is for.

I will also not attach the plugin to this post at the moment as this is just to announce its creation rather I will keep the other post going for now whilst people test it out. If I get feedback that it isn’t working then I will move everything across to this post and carry on from here. If not then well I suppose nobody needs the functionality and the time I took to make it was a waste :-( Was good fun learning though! 😊

Quick Description Of Plugin This plugin will allow you to spit out all status names for use in a weblog tag without your having to remember all the names. For example if you had a status group called Statuses and you just had a couple of extra custom statuses in it such as pending and waiting and you also have the open and closed statuses if you wanted to show all of these in a weblog tag you would do the following :

{exp:weblog:entries weblog="default_site" status="open|closed|pending|waiting"}

Now say you went and added another 20 statuses to this group. Could you remember them all without going to the admin section? Possibly not. That is where the plugin comes in handy.

Plugin Usage Put this tag pair around a weblog tag in place of the status parameter. There is one parameter which is required which is the group=”” parameter. Set this to the name of your status group. eg. {exp:retrieve_statuses group="Default Status Group" parse="inward"} {exp:weblog:entries weblog="default_site" status="{statuses}”} {title} {/exp:weblog:entries} {/exp:retrieve_statuses}

Hope someone finds it useful and as always and because this isn’t fully tested please please please please please test fully in a dev installation before going live with its use.

Best wishes,

Mark

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

Hmmm,

Just noticed that the plugin wasn’t attached to the last post. Have now updated it so it is on there. I could have sworn I did upload it though.

Best wishes,

Mark

       

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.