Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
rsx_plugins_table, rsx_plugins_list
It has been quite some time since I’ve written a plugin for textpattern. This plugin is quite simple; it will produce a list of the plugins you have installed in textpattern. To use the plugin, simply place the tag <txp:rsx_plugins_table /> in a form or page template. The plugin will produce a table, which you can style with CSS if you feel so inclined. I’m using this plugin right now on my about page.
Download the plugin: rsx_plugins_table.txt.
Update: I’ve added a new plugin that generates a definition list of your installed plugins instead of a table. This may be good for people who were trying to display the table in a very narrow space. I’m using this plugin right now on my about page. To use the plugin, simply place the tag <txp:rsx_plugins_list /> in a form or page template.
Download the plugin: rsx_plugins_list.txt
Update: You can now choose not to display inactive plugins by setting show_inactive to 0, as in <txp:rsx_plugin_list show_inactive="0" />. The default value for the parameter is 1.
Update Apr 6th 2008: You can now decide not to show the description field in the list or table by using the show_description parameter.
Update Jul 24th 2009: The source code for both plugins is up on GitHub: rsx_plugins_list. and rsx_plugins_table. People can do what they like with the code, offer up improvements, etc. I’m going to try and put all my old plugins up online in this way.
Last edited by ramanan (2009-07-24 18:56:53)
Offline
Re: rsx_plugins_table, rsx_plugins_list
cool, i think will use this soon when i rebuild my about page :)
Johan Nilsson
Offline
Re: rsx_plugins_table, rsx_plugins_list
Great. I made it for Alicson because she wanted something like this for the help site she is making. It seems useful enough to release to the public.
Offline
Re: rsx_plugins_table, rsx_plugins_list
And looking at my list of plugins, I should upgrade to the new and improved word count plugin by Kelp!
Offline
Re: rsx_plugins_table, rsx_plugins_list
:) thanks Ramanan
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: rsx_plugins_table, rsx_plugins_list
I’ve added a new tag that makes a definition list instead of a table. See my edit above.
Offline
Re: rsx_plugins_table, rsx_plugins_list
ramanan – you threw a curve and forgot to switch .php yo .txt on the list plugin, thank god textdrive is so cool and shoots off a 300 multiple choice error! Might want to fix that, also.
Offline
Re: rsx_plugins_table, rsx_plugins_list
Doh. I uploaded the wrong file. Thanks. I’ll update the link when I get home tonight.
Offline
Re: rsx_plugins_table, rsx_plugins_list
You could still get the contents out, you just had to view the source (for some reason the php wasn’t being executed). I should have mentioned that also. But it’s a nice little plugin!
Offline
Re: rsx_plugins_table, rsx_plugins_list
Ah, that would work too. Nevertheless the link should work now.
Offline
Re: rsx_plugins_table, rsx_plugins_list
I like the idea of this plugin, but would it be possible to make it so we can edit the descriptions to our own liking, and not show plugins that are “inactive”?
Offline
Re: rsx_plugins_table, rsx_plugins_list
Not showing plugins that are inactive is a change I can make, sure. I’m not sure how you would show edited descriptions. How would you edit the desciption? Where would you store it? What sort of tag do you invision?
Offline
Re: rsx_plugins_table, rsx_plugins_list
Just so you know, I’m going to use this plugin regardless. I think it’s great in its simplicity, and in the fact that by it’s nature it’s one less thing you have to manually update (i.e., adding/removing plugins from the list). That’s sweet!
As for the description thing:
First let me explain why I even ask. Quite simply, I sometimes have no clue what a plugin is for because the descriptions are a bit vague, and I don’t like passing that on from my site to the next person who visits. I would like something like this because it would give me the ability to describe a plugin (once I discovered its true nature) in my own words, words that made sense to me (and maybe the next person).
Now, I’m no php guru, so I may not know what I’m talking about (most likely), but what I envision, perhaps, is making use of the “Extensions” Tab (again, I have no idea if that’s even possible; maybe there’s a monopoly on that tab or something). So for example, after activation of your plugin, a simple list (plugin names) is generated in the Extensions tab. When a name is clicked, a small expansion happens so that an edit box is revealed under the plugin title with the default description already showing in the edit box. A person can either leave it alone, or customize the text as seen fit. Click save. That’s one thought about the fuctional flow, I’m sure it can be better/simpler somehow.
That’s about all I can conceive and tell you. If it can’t be done, no biggie, I like the plugin and will use it gratefully anyway. The no “inactive” plugins mod would be cool though.
Last edited by Destry (2006-05-25 22:19:49)
Offline
#14 2006-05-26 00:07:04
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: rsx_plugins_table, rsx_plugins_list
Destry:
It is possible and there is at least one other plugin that allows you to do it, but it is not as elegant as the solution you propose here. However, it might serve your purpose for the time being.
If you install the ied_plugin_composer plugin (BTW, it’s really for plugin developers but will let you do what you need to) you will see an addition for it on the extensions tab.
Once you choose that you get a list of installed plugins so find any plugin whose description you wish to change then hit the edit button next to it. In the page that follows, scroll down until you see the description field and edit it, then hit save and all is done.
Last edited by net-carver (2006-05-26 01:52:05)
— Steve
Offline
Re: rsx_plugins_table, rsx_plugins_list
Stevo…sweet, man, worked like Formula 51. Damn, that’s a tight plugin by Yura, makes me want to learn how to dev. <small>_heh_</small>
So, Ramanan, if we can drop the “inactive“s, or maybe make it an option to do so, then we ball-parked it.
Last edited by Destry (2006-05-26 00:53:24)
Offline