我可以将一个类别分配给Joomla中的多个部分吗?

时间:2021-12-15 20:17:08

I want to assign the same category to multiple sections in Joomla. E.g. category cats will be child of the sections domestic-animals and adorable-anmials.

我想将相同的类别分配给Joomla中的多个部分。例如。类别猫将是家畜和可爱的动物部分的孩子。

Is there a component or a trick to achieve this?

是否有一个组件或技巧来实现这一目标?

3 个解决方案

#1


You can try searching all the functions that deal with section-category relationships and dirty-add this case there.

您可以尝试搜索处理节类别关系的所有函数,并在那里脏添加这种情况。

However I would not recommend doing this type of Joomla core hacking because you would need to keep track of all such hacks during core updates.

但是我不建议做这种类型的Joomla核心黑客攻击,因为你需要在核心更新期间跟踪所有这些黑客攻击。

What do you want to accomplish? I guess there should be a workaround.

你想要完成什么?我想应该有一个解决方法。

#2


No, in Joomla! 1.0 and 1.5, category cannot be assigned to multiple sections. To tackle that you may do the following

不,在Joomla! 1.0和1.5,类别不能分配给多个部分。要解决这个问题,您可以执行以下操作

* creating duplicate articles of the categories you want and assign the duplicates articles to new category and then assign it to the section. so that the article copy will there be in two categories under same section
* using menus rather than dynamic lists of content items. so that with the menu structure you can work out the thing you need
* using various third party extensions that simulate assignment to multiple categories to same section.
* using key words to simulate categories and sections.

if you can explain me what you are exactly about to do. then i shall make it more specific

如果你能解释我你准备做什么。然后我会使它更具体

#3


You can use alias to make cats as sections domestic-animals and adorable-animals.

您可以使用别名将猫作为家畜和可爱动物的部分。

If you want to make field that can assign multiple category you have to make edit the core code.

如果你想创建可以分配多个类别的字段,你必须编辑核心代码。

#1


You can try searching all the functions that deal with section-category relationships and dirty-add this case there.

您可以尝试搜索处理节类别关系的所有函数,并在那里脏添加这种情况。

However I would not recommend doing this type of Joomla core hacking because you would need to keep track of all such hacks during core updates.

但是我不建议做这种类型的Joomla核心黑客攻击,因为你需要在核心更新期间跟踪所有这些黑客攻击。

What do you want to accomplish? I guess there should be a workaround.

你想要完成什么?我想应该有一个解决方法。

#2


No, in Joomla! 1.0 and 1.5, category cannot be assigned to multiple sections. To tackle that you may do the following

不,在Joomla! 1.0和1.5,类别不能分配给多个部分。要解决这个问题,您可以执行以下操作

* creating duplicate articles of the categories you want and assign the duplicates articles to new category and then assign it to the section. so that the article copy will there be in two categories under same section
* using menus rather than dynamic lists of content items. so that with the menu structure you can work out the thing you need
* using various third party extensions that simulate assignment to multiple categories to same section.
* using key words to simulate categories and sections.

if you can explain me what you are exactly about to do. then i shall make it more specific

如果你能解释我你准备做什么。然后我会使它更具体

#3


You can use alias to make cats as sections domestic-animals and adorable-animals.

您可以使用别名将猫作为家畜和可爱动物的部分。

If you want to make field that can assign multiple category you have to make edit the core code.

如果你想创建可以分配多个类别的字段,你必须编辑核心代码。