NEW - Retrieve Status names…
Posted: 30 January 2008 03:16 PM   [ Ignore ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6537
Joined  04-15-2006

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

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}<br />
{/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

File Attachments
pi.retrieve_statuses.php.zip  (File Size: 2KB - Downloads: 114)
 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 01 February 2008 10:20 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6537
Joined  04-15-2006

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

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64900 Total Logged-in Users: 56
Total Topics: 81834 Total Anonymous Users: 55
Total Replies: 439959 Total Guests: 273
Total Posts: 521793    
Members ( View Memberlist )