Moodle

block/tags and block/blog_tags

Details

  • Affected Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE

Description

Both standard blogs have nearly the same function. As far as I see the block 'tags' shows tags from interests and from blogs. The block 'blog_tags' only shows the tags from blogs.

I can't see the sense in such similar blocks.
It wil be better to delete one block and to add an option in settings ofthe block to choose which tags are shown in the block.

Issue Links

Activity

Hide
Helen Foster added a comment -

Reassigning to tags expert Yu

Show
Helen Foster added a comment - Reassigning to tags expert Yu
Hide
Helen Foster added a comment -

I'm in agreement with Ralf that we don't need a tags block AND a blog tags block. Let's simply have a tags block.

Show
Helen Foster added a comment - I'm in agreement with Ralf that we don't need a tags block AND a blog tags block. Let's simply have a tags block.
Hide
Martin Dougiamas added a comment -

As long as we "add an option in settings of the block to choose which tags are shown in the block" then I agree.

Show
Martin Dougiamas added a comment - As long as we "add an option in settings of the block to choose which tags are shown in the block" then I agree.
Hide
Mathieu Petit-Clair added a comment -

This might not be a big job, but it's worth doing it right. Both blocks are now using the same css classes, but the links are different (blogs requires a bit more information in the url). A new block putting both together should also be extensible, so that other entities can use it (courses, eventually). It's worth thinking about which other useful settings could be offered to the users.

Some ideas :

  • a "max block width" could be useful for theming, as tags can be quite large (like 50 chars), which can disrupt fixed-width themes
  • "only show my tags"
  • order by date or popularity
  • show as tagcloud (different font sizes) or as plain list (same font size for all tags)
Show
Mathieu Petit-Clair added a comment - This might not be a big job, but it's worth doing it right. Both blocks are now using the same css classes, but the links are different (blogs requires a bit more information in the url). A new block putting both together should also be extensible, so that other entities can use it (courses, eventually). It's worth thinking about which other useful settings could be offered to the users. Some ideas :
  • a "max block width" could be useful for theming, as tags can be quite large (like 50 chars), which can disrupt fixed-width themes
  • "only show my tags"
  • order by date or popularity
  • show as tagcloud (different font sizes) or as plain list (same font size for all tags)
Hide
Mathieu Petit-Clair added a comment -

This would be a good opportunity to add a parameter $type to print_tag_cloud, or type either string or array, which would contain the type of the tags to show ('user', 'blog' .. 'bookmark', etc.). An array would make it possible to use many types together ("only show tags used by the current user on a blog", etc.). This would make it possible to display a tag cloud of a user tags on his profile, instead of the current list.

Show
Mathieu Petit-Clair added a comment - This would be a good opportunity to add a parameter $type to print_tag_cloud, or type either string or array, which would contain the type of the tags to show ('user', 'blog' .. 'bookmark', etc.). An array would make it possible to use many types together ("only show tags used by the current user on a blog", etc.). This would make it possible to display a tag cloud of a user tags on his profile, instead of the current list.
Hide
Helen Foster added a comment -

Reassigning to moodle.com as Mathieu Petit-Clair no longer works for Moodle HQ.

Show
Helen Foster added a comment - Reassigning to moodle.com as Mathieu Petit-Clair no longer works for Moodle HQ.

People

Dates

  • Created:
    Updated: