? ? Failure

User tests: Successful: Unsuccessful:

avatar Duddy67
Duddy67
23 Oct 2016

Tag view feature presentation:

Hello everyone,

I'm a web developer and I've worked with Joomla for over 5 years.
It's been a while that I've been stuck with the "multicategories problem" without finding out a real solution.
Most of the time I end up with a CCK (flexicontent, seblod) which is a far more complex and heavy solution compare to my initial needs.
So I decided to add a tag view to the content component trough a pull request as proof of concept.
Now all the articles labeled with the same tag are displayed in a blog or list layout.
The "multicategories problem" could be considered as solved since tags allow an even better flexibility regarding the item sorting (taxonomy).

IMPORTANT: An extra table #__content_tag_map is needed to get the tag view feature working properly.

CREATE TABLE #__content_tag_map (
article_id INT UNSIGNED NOT NULL DEFAULT 0 ,
tag_id INT UNSIGNED NOT NULL DEFAULT 0 ,
ordering INT NULL DEFAULT NULL ,
INDEX idx_article_id (article_id ASC) ,
INDEX idx_cat_id (tag_id ASC) )
ENGINE = MyISAM DEFAULT CHARSET=utf8;

Instruction:

  • In the administrator back-end create a new menu item.
  • Click "Select" and choose "Tag Blog" or "Tag List" in the Article options.
  • Choose a tag in the drop down list below.
  • All the articles labeled with the chosen tag are now displayed in a blog or list layout in front-end.

Ordering articles in the tag view:

  • In the administrator back-end go to Content -> Articles
  • Click the "Search Tools" button and select the tag against which you want to order the articles.
    Important: Only the tag filter must be selected.
  • Select "Ordering" (ascending or descending) in the sort filter.
  • Re-arrange article order using the drag-and-drop feature in the article list.

Pinging:

@smz

avatar Duddy67 Duddy67 - open - 23 Oct 2016
avatar Duddy67 Duddy67 - change - 23 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
Labels Added: ? ?
avatar Duddy67 Duddy67 - edited - 23 Oct 2016
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
Category Administration Components Language & Strings Front End Layout Plugins
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
The description was changed
Labels Removed: ?
avatar Duddy67 Duddy67 - change - 23 Oct 2016
The description was changed
avatar Duddy67 Duddy67 - edited - 23 Oct 2016
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
Labels Added: ?
avatar Duddy67 Duddy67 - edited - 23 Oct 2016
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2016
The description was changed
Labels Removed: ?
avatar Bakual
Bakual - comment - 23 Oct 2016

Similar things were discussed already and I still think a separate view isn't needed, especially not because it means changing where a "single tag" should be routed to. Today it goes to com_tags and not com_content.
Other PRs for reference: #10346 & #10242

avatar Bakual
Bakual - comment - 23 Oct 2016

Just as a reminder: The com_content category list view already allows to filter by tags since 3.6.0. Relevant PR is #8846.
If you want the same for the blog layout, all you need is passing the filter_tag argument to the URL or in the menu item (see staging...Bakual:AddTagFilterToBlog for what it would need). This can be done with a simple alternate menu item. No code changes needed.

avatar Duddy67
Duddy67 - comment - 23 Oct 2016

Indeed, similar things were already discussed and I still think a tag view is badly needed.
PRs #10346 & #10242 are interesting but don't do the job expected as a multicategories feature.
There is no other option but to use com_content to achieve this aim.

avatar Bakual
Bakual - comment - 23 Oct 2016

Tags aren't a "multicategory" feature. They are a "cross-extension" feature. If you're going to create a tag view, you take that cross-extension feature away. And in the end you still only filter the articles by tags which is what is already possible.

avatar Duddy67
Duddy67 - comment - 23 Oct 2016

Tags aren't a "multicategory" feature.

I know but the result is quite similar and even more flexible.

And in the end you still only filter the articles by tags which is what is already possible.

May be but currently you cannot order articles by tags as you would by categories. This possibility
is available in the tag view option.

avatar Bakual
Bakual - comment - 23 Oct 2016

May be but currently you cannot order articles by tags as you would by categories. This possibility
is available in the tag view option.

I don't understand that. You want to sort the articles by tag? If so, that could be easily added to the eixtsing views as well. Just add the necessary code to the articles model. No need for an own view as well.
We really don't want to add a tag view to com_content (and each other extension supporting tags). It would be mostly a duplicate of the existing category view and it would be a nightmare when it comes to routing. Eg should a single tag link go to com_content tag view (removing cross-extension functionality) or com_tags (making the tag view useless)?

Edit: I see now what you mean with the ordering and I don't think I like that part. I think it's very complex code and where do we stop? Next guy wants to add ordering by author or any other item property.

avatar Duddy67
Duddy67 - comment - 24 Oct 2016

Edit: I see now what you mean with the ordering and I don't think I like that part. I think it's very complex code and where do we stop? Next guy wants to add ordering by author or any other item property.

Ordering articles by tag is justified since articles are diplayed by tag in the tag view. Joomla's users would likely be able to order articles in the way they want to.
But there is no point in ordering by author or any other item property.

should a single tag link go to com_content tag view (removing cross-extension functionality) or com_tags (making the tag view useless)?

The modification I made allows you to choose which type of tag links you want to display. You can either display "standard" tag links (ruled by com_tags) or "content" tag links (ruled by com_content).
Note: You can also display the both types of tag links but it might be confusing for the website's users.

We really don't want to add a tag view to com_content

Who is we ?
I'd really like to have other Joomla's team member opinions and compare their arguments to yours.

avatar mbabker
mbabker - comment - 24 Oct 2016

You need an additional mapping table to provide data that is already available (yet in an excessively convoluted way). That alone from me gets a ? because we shouldn't be duplicating data in the database

You're trying to use the core API to perform a function it wasn't designed to do. While it may work in that way, core does not promise support for that function. Tags !== multicategory.

The other arguments already made are just as valid regardless of whether it's one person's opinion.

avatar mbabker
mbabker - comment - 24 Oct 2016

And just speaking on a code review aspect your code appears to have reverted several language and code related changes, which makes this pull request unreviewable to me.

avatar Duddy67
Duddy67 - comment - 24 Oct 2016

You need an additional mapping table to provide data that is already available

Which table are you referring to ?
If it's the #__contentitem_tag_map table I can't see how to handle item ordering as there is no ordering column and even though I added one it would be too messy to manage article ordering through this table.

You're trying to use the core API to perform a function it wasn't designed to do.

May be but my proposal is just a slight modification which allows Joomla to get a powerfull feature, and I think it worth it.

Anyway, I think is really too bad because I'm sure that plenty of Joomla's users would be deeply interested in that feature.

avatar Bakual
Bakual - comment - 24 Oct 2016

I'm sure that plenty of Joomla's users would be deeply interested in that feature.

That may be, but then lets to it properly without hacking and misusing an existing feature.
We should either change the current category feature to allow for multiple category assignments. That's unlikely to happen in a B/C way due to the way it currently works. But maybe someone has a good idea.

The other approach is to use tags, but then it should keep the cross-extension function and com_tags is the responsible extension for that. Imagine a blog (or list or whatever) where there are two articles, one video from a video extension and two featured items from a shop. That would be a multi-extension, multi-category view which could become quite powerful. It's what I proposed with #10242 but hasn't got much interest so I closed it.

avatar Duddy67
Duddy67 - comment - 24 Oct 2016

Considering the Joomla current architecture it would be a nightmare to develop a multi-category feature.
As things stand at present the only reasonable option is using tags which do the job perfectly.
But unfortunately it seems that the way that I use tags is incorrect and it's a pity.

That would be a multi-extension, multi-category view which could become quite powerful. It's what I proposed with #10242 but hasn't got much interest so I closed it.

I can tell by my clients that people wants a multi-category and not a multi-extension feature.
They are always asking how to put the same article in several categories which always force me to install a CCK component.

avatar brianteeman
brianteeman - comment - 25 Oct 2016

@duddy67 I am with you 100% - tags was always pitched as being a
multicategory feature. The fact that it works multicomponent is irrelevant
to me

On 24 October 2016 at 18:29, Duddy67 notifications@github.com wrote:

Considering the Joomla current architecture it would be a nightmare to
develop a multi-category feature.
As things stand at present the only reasonable option is using tags which
do the job perfectly.
But unfortunately it seems that the way that I use tags is incorrect and
it's a pity.

That would be a multi-extension, multi-category view which could become
quite powerful. It's what I proposed with #10242
#10242 but hasn't got much
interest so I closed it.

I can tell by my clients that people wants a multi-category and not a
multi-extension feature.
They are always asking how to put the same article in several categories
which always force me to install a CCK component.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#12529 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8eylg1bGTuyDTFDzPcSS25vMVR2uks5q3OrngaJpZM4KeLds
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jan 2017

I have tested this item ? unsuccessfully on 217492c

Used Menue Item: Tag Blog, got in Frontend
Notice: Undefined index: tag in __/Joomla/libraries/cms/component/router/rules/menu.php on line 177,
Notice: Trying to get property of non-object in __/Joomla/libraries/cms/component/router/rules/menu.php on line 177
No Article displayed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12529.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 12 Jan 2017 - Tested unsuccessfully
avatar Duddy67
Duddy67 - comment - 6 Oct 2017

For those who are interested I've developed a dedicated Joomla extension: ABTag

avatar Quy
Quy - comment - 6 Oct 2017

Should this be closed?

avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2017
Category Administration Components Language & Strings Front End Layout Plugins Administration com_content Language & Strings Front End Layout Plugins Components
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Oct 2017
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-10-06 14:44:07
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2017
Status Closed Pending
avatar joomla-cms-bot
joomla-cms-bot - comment - 6 Oct 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2017
Status Pending Closed
Closed_Date 2017-10-06 14:44:07 2017-10-06 14:44:08
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Oct 2017
avatar joomla-cms-bot joomla-cms-bot - close - 6 Oct 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Oct 2017

closed as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12529.

Add a Comment

Login with GitHub to post a comment