andreas michael thul

Musik & Technik


Joomla! plugin sectionList

Dieser Artikel ist in Ihrer Sprache nicht verfügbar.

sectionList displays a list of articles assigned to a category within your text.

The configurable list will be grouped by category tree.

License

sectionList is published under GNU/GPLv3

System Requirements

  • Joomla! CMS 2.5.x / 3.x
  • NOT compatible with Joomla! CMS 1.X

Install

Download the plugin using the link at the end of this page.

Install the package using the Joomla! Extension Manager.

Activate the plugin by either clicking on the “Status” column of the sectionList entry within the Extension Manager or Plug-in Manager or open the plugin-options by clicking on the name and change the status from “Disabled” to “Enabled”.

Uninstall

Uninstall the plugin by using the Joomla! Extension Manager. Don’t forget to remove all sectionList references within your articles!

Usage

To display the list of articles, add

{sectionlist ID}

at the position you want to insert the list. The plugin will replace the markup with the corresponding category list.

To find the ID for a category, have a look at the rightmost column of  the Category Manager.

Options

  • Heading level: Starting level of heading tags
  • Show start category: Show title of starting category.
    If ‘no’ is selected, heading level of first category will still be ‘Heading level’ + 1
  • List type: Type of list to display articles (unordered / ordered)
  • Style: CSS style assigned to sectionList
  • Sort by: Column the articles are sorted by
  • Sort order: Order how the articles are sorted
  • Limit: Maximum number of articles displayed (0 = unlimited).
    This will limit the number of displayed articles for each call of the plugin, not for each category displayed. Be careful when using this option in recursive category structures.
  • Layout: Use article title for sectionLists or use custom layout
  • Custom layout: Custom layout for sectionLists, see section “Custom layout” for details
  • Date format: strftime compatible string, without the leading ‘%’

Custom layout

After enabling the custom layout option, the contents of the “custom layout” box will be used instead of the linked article title to generate the lists.

Within this box, you define the contents between the opening and closing “<li>”-tag of each list item using standard HTML code and some special tags to insert the article data.

To do exactly what the “title”-layout option does, enter

<a href="###url###">###title###</a>

Besides the URL and title, there are several other tags you can use:

  • ###alias###: the alias of the article
  • ###aliasname###: the “created by” alias name set in the publishing options
  • ###author###: the author of the article
  • ###date###: the date (and / or time) the article has been published
  • ###id###: the id of the article
  • ###title###: the title of the article
  • ###url###: the url to the article
  • ###username###: the Joomla! username

So using all possible options, you might also enter something like

On ###date###, ###author### wrote an article called '###title###' which has the internal id ###id### and was aliased as '###alias###'. To access this article, open <a href="###url###">###url###</a>

into the custom layout box

Disclaimer

This software is provided as is without any guarantees or warranty.

Use at OWN risk!

Changelist

0.9 [2014-03-09]:

  • added: Joomla! 3.x compatibility; thanks to Cooper Brislain

0.8.1 [2013-09-17]:

  • fixed: default settings; thanks to enoctis for reporting

0.8 [2013-05-13]

  • added: tags ###aliasname### and ###username### for the custom layout option
  • added: sort options by id and by hits
  • fixed: “Only variables should be assigned by reference” when using PHP 5.4x

0.7 [2012-10-11]

  • added: custom layout option

0.6 [2012-10-01]

  • added: sort option “published”; thanks to Taryn for suggesting
  • added: option to limit the nuber of displayed articles for each call of the plugin; thanks to Taryn for suggesting

0.5 [2012-09-14]

  • added: sort options (sort articles by title or ordering; ascending or descending); thanks to Elisabeth Bartl for suggesting

0.4 [2012-07-04]

  • added: sectionList now supports updates using the Joomla! Extension Manager

0.3.2 [2012-07-02]

  • fixed: sectionLists are now also displayed in blog and frontpage view

0.3.1 [2012-07-01]

  • fixed: plugin did only process first sectionList; thanks to Alex Chartier for reporting

0.3 [2012-06-22]

  • fixed: ‘Warning: Missing argument 4 for plgContentSectionList::onContentAfterDisplay()’ in media manager
  • added: multi-language-capability; included languages: de-DE and en-GB
  • changed: license is now GNU/GPLv3

0.2 [2012-06-01]

  • changed: updated plugin for Joomla! 2.5

0.1 [2010-10-26]

  • initial release for Joomla! 1.5

Download

sectionList (ZIP-archive, 19,8kb)

Links

sectionList in the Joomla! Extension Directory

 

34 Kommentare

  1. Thanks! Works like a treat :-)

  2. great effort on the plugin…
    couple of suggestions for gaps in requirements…

    enable it to be placed in a module – currently in content only
    enable published/unpublished articles – currently UNpublished shows in list
    enable user rights check – currently registered article shows in list
    add option to count items in categories and children
    add option to show empty categories
    add option to use article title or alias
    add option to skip some categories

    I think you would have a solid product if these additions became available.

  3. Excellent!! Solved my problem!! Tks

  4. Very useful! Really solved my problem.

  5. This plugin can work with Joomla 3.0+ by changing one line:

    Change line 58:
    $now = $date->toMySQL();
    to
    $now = $date->toSQL();

    • Thanks! If this really does the trick, I’ll offer a Jommla 3+ release asap. The plugin now works with Joomla! 3.x

  6. That’s exactly what I was looking for. Many thanks!!

  7. As another user did, I disabled the plugin and enabled it (twice) to get it working. The first time I did this, I did it without actually going into the plugin settings (from the plugin manager), which didn’t work. The second time, I actually did so through the plugin settings, and it worked.

    • Thanks for the report. There is an error in the default settings (which are used when enabling the plugin without opening the settings) which will be fixed with release 0.8.1

  8. I tried it with Joomla 3.0 it installs. But whenever I save an article it breaks. So I can’t even save it with the syntax in there. and the front end page doesn’t load.

  9. Does this work in Joomla 3.0

    • As I don’t run any 3.x installations, I don’t know.
      Would be cool if you could try and leave a feedback.

  10. I can’t get it to work. It just doesn’t list anything.
    Plugin is enabled.
    Main category IS is 107, which contains 2 sub-categories, each with an article
    I add menu item to a new single article, which says:

    A selection of interviews:

    {sectionlist 107}

    Please select an interview from the list.

    And it displays on the front end only:

    A selection of interviews:

    Please select an interview from the list.

    • Hi Axl, it’s hard to help tracking errors, especially when not having access to the installation and when there’s no error message.

      Please double check the plugin is active and all settings are set correctly. From what you typed, it should work.

      • Thanks for the reply. It’s weird, but problem solved. All I did was disable the plugin (which was of course already enabled after I installed it), and then re-enabled. Bingo, articles show up under sub-categories as I intended.

        I can’t believe this feature isn’t in the Joomla core. The default way of handling a Category list with sub-categories is ridiculous.

        Your plugin is great!

  11. Great plugin !
    Why not propose link to sub-category in the list ?

    • Thanks for the suggestion. The plugin is rendered by it’s parent page, so a section browser would have to rely heavily on Javascript.

  12. Thank you so much, it is so great plugin.
    best regards

  13. First Thanks to developers.This is excellent plugin it saved me lot-of-time so-many times.Oceangoing thanks to developers.

  14. Great plugin! Thank you Andreas

    Suggestion: to the sort order list add “by order” so that it lists according to published order.

    • An option to sort articles by “order” was included with release 0.5

  15. This is actually pretty cool. It works, and it does its job and it is nice for simple listing.

    I think a feature you might like to consider for future development would be the ability to change the ordering by rank/hits/votes/thumbs up-down.

    Thanks for the contribution though!

  16. Great plug-in! This has saved me a lot of time over other solutions that are either overly complicated or require me to write my own core hacks. I did, however, want to add some functionality to it, to support displaying the metadata author instead of the joomla username (this is useful for my purposes, as we use our site to publish a digital version of a print journal. If you’d like the code, I think there are like 5 line changes.

    Cheers!

    • Thanks for the suggestion, if you send me your additions, I’ll add them to the next update.

  17. Excellent plugin! I’ve been looking for something like this for a little while and this is almost exactly what I had in mind. Is it possible to show the created date for an article within a category? I am trying to use it for a press release section of the site where the main category is Press Release, and then the subcategories are the months with articles in each. It would be great if there was a way to show a date under the article so it would like this: (the [link] is just to show what the link is
    ——————————–
    October

    [link]sectList is a great plugin to spice up your joomla site[link]
    October 2, 2012

    [link]Developer searches far and near for the perfect plugin for their site[link]
    October 1, 2012

    ——————————-

    Thoughts?

    Thanks so much!

    • Thanks for the suggestion, will be added in a future release.

  18. Dear, I am really thankful to you for this plugin.

    Now my wishlist and my suggestions:

    1. I want a merger of 2 plugins. First is your “Plugin Sectionlist” and second is “Plugin Include Component”.
    Link to this 2nd component is this:

    http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/embed-a-include/8741

    2. This 2nd plugin creates perfect Lists in an articles (exactly the Joomla core lists, with all the options of table, number of articles, pagination, ordering etc). The code is simple {component url=” }

    3. I used this 2nd Plugin in one article, and made several lists of one Category + Sub Categories + Sub Sub Categories …..
    Then at top, I make the list of all these Categories+Subcategories and hyperlinked them.
    As result, I got something very much closer and similar to Sectionex.

    Negative thing is this that I had to do it all “Manually”. Moreover, whenever I have to add any “subcategory” then I have to edit the content too and add it there too.

    4. Now I want a merger of your “plugin sectionlist” and this “plugin include component”, so that all the things are done automatically and end result is like “Sectionex” (or even better as Sectionex was unable to handle pagination).

    Dear,

    I am total layperson has no idea of programming. Therefore, I request you to design this Perfect extension for us, which is simply better than any other existing extension in this arena.

    Another Idea:
    **************

    There is already a Menu “List Category” option in Joomla Core.
    It shows all the Articles in One Parent Category and all it’s sub-categories. And at bottom, it shows the List of this Parent Category with sub-categories.

    This Core Menu option in Joomla is already very much closer to Sectionex. If 2 modifications are done, then it will become perfect (or better) replacement of Sectionex.

    1st Change:

    The “List” of parent category + subcategories is showed at bottom. That should appear at top of page (just like sectionex). This is not a difficult task and there is already a discussion about it how to achieve this task.

    http://forum.joomla.org/viewtopic.php?f=615&t=726155

    2nd Change:

    The default Joomla “Category List” gives the option of “Ordering” the articles according to “Subcategories”. But problem is this that it does not gives the “Heading” for sub-categories, so that it could be differentiated by articles of next coming sub-category.

    If you could include this “Heading” of sub-categories in it, then it will become totally like Sectionex (or even better).

    Therefore, we need not to reinvent the wheel.

    Once again, I am total layperson. I have only the Ideas and don’t know if it is possible to do it or not. But let’s hope for the best.

    Thanks and Regards.

    • Thanks for the suggestions.

      I’ll see what is possible, but don’t hold your breath.

  19. Great little plugin !!! A possible improvement could be to limit the amount of articles that are displayed to only the newest few from a category. Great plugin tho :)

    • Thanks for the suggestion, the feature will be added to a future release.

  20. Hi, this looks really good but is it possible to have 2 or 3 columns? That would be really great!

    • With the current release, the current release supports only 1 column. Support for multi column display might be added to a future version.

  21. Hey Andreas, thanks for the plugin. I was using SectionEx on a J1.5 site but they do not have a J2.5 version. This plugin did the job for me.

    Cheers.

    • I was using SectionEx myself until I ran into some major problems a while ago and thought about building my own solution.
      If you have any ideas for improvements, let me know.

Kommentar schreiben