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

Blog List

Development and Programming

psykik's avatar
psykik
14 posts
17 years ago
psykik's avatar psykik

Hi all,

I needed a plugin to retrieve all my blogs information like title, url, description. Since I couldn’t find it, I wrote it myself.

This is particularly handy if you use blogs as website sections.

Please bear in mind this is my first attempt in making a plugin for EE and also my first try at PHP.

so any feedback welcome!

There is an optional parameter “hide” where you can tell which blog_id’s to HIDE from the list.

eg.

{exp:retrieve_blogs hide="4" parse="inward"}
      {exp:weblog:info weblog="{blog_name}"}
         {blog_title}
         {blog_description}
      {/exp:weblog:info}
{/exp:retrieve_blogs}

or

{exp:retrieve_blogs hide="1,2" parse="inward"}
      {exp:weblog:info weblog="{blog_name}"}
         {blog_title}
         {blog_description}
     {/exp:weblog:info}
{/exp:retrieve_blogs}
       
psykik's avatar
psykik
14 posts
17 years ago
psykik's avatar psykik

oeps 🙄 wrong forum, I see there’s a plugin development section… my mistake

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

Hi there psykik,

Well done on the plugin, great idea!

Perhaps it might be nice to be able to allow people to use the weblog names instead of the id’s? I for one know I never remember the id numbers but can always remember the short name of the weblog.

Just a thought though.

Well done on what looks like a great first plugin.

Best wishes,

Mark

       
psykik's avatar
psykik
14 posts
17 years ago
psykik's avatar psykik

well thanks Mark 😉 I used your retrieve status as an example 😉 so a bit of credit goes to you as well 😉

yes post all feedback and wished features here. i was also thinking about a parameter “show_inactive” so you can filter out blogs that do not have the “open” status.

grts,

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen
I used your retrieve status as an example 😉 so a bit of credit goes to you as well 😉

Yup I thought you might have done! 😉 Noticed from the layout 😉

yes post all feedback and wished features here. i was also thinking about a parameter “show_inactive” so you can filter out blogs that do not have the “open” status. grts,

Yes I think that short weblog names would be a good one. Don’t know if that should be instead of the ids or alongside? Perhaps a parameter which says which to use and then the hide parameter could either have ids or names?

The show_inactive parameter would be great too! 😊

Keep up the great work, I’m sure people will definitely find a need for this one.

Best wishes,

Mark

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

Great plugin, seeing many use more than one weblog, getting them in a list should be as easy as listing categories.

Well done. Am trying to make a list with links automatically. I use weblog short_name for tempate groups, but can’t seem to get a tag to work for url? Maybe too early in am…

Duh! blog_url everything else is named weblog_something, 2 coffee’s later n solved.

Now to get it to not show empty?

       

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.