You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to joomla-de...@googlegroups.com
In your code you already have
//$item->addTaxonomy('Category', $item->category, $item->cat_state,
$item->cat_access);
but it is commented out. That code adds the cotent map(s). It is either
a key-value-pair of strings or a key-value-pair with the key being a
string and the value being a ImmutableNodeInterface object. The later
allows to store a hierarchy like our categories or for example nested
tags. You can use any string as key or value for the taxonomies as you
want and as many times as you want. In theory, you could create a
complete product directory with filters by this for example. Hope this
helps.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
Hi,
Thank you for your answer.
Sorry, I think I was not clear enough.
I understand that this line adds the content maps for the category. I didn't want to bother with setting the taxonomy on the categories for now, mainly because a product can be in several categories and I was not sure how to handle that.
However, I already have a addTaxonomy call for the Type: $item->addTaxonomy('Type', 'Product'); However, the type Product doesn't show up in the content maps listing. That's what I don't understand.
Nicolas
Nicolas Claverie
unread,
Jul 11, 2024, 10:36:46 AM (11 days ago) Jul 11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
Hi,
After mulling over it for the past two days, and with the help of the person reporting the issue on our website, I actually found the solution.
The issue is that in order to handle the indexing in different languages, I make a copy of the item being indexed, one for each language. However, during the copy process, the taxonomies were lost. So the problem was not there when the website was not in multilingual mode, but both my test website and the website of the person reporting the issue were.