This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Sebastiaan Kloos (ICTBelang)
Sebastiaan Kloos (ICTBelang)

I have three tabs which contains hasOne relations in a partial. But multidimensional tabs are not working properly. The first parent tab with a relation containing child tabs does work properly. But the second is not working. The tab-pane does not get the class active. I guess this is a Javascript problem but it is really frustrating. Maybe someone is experiencing the same problem. Any help would be appreciated. I am stuck with my plugin.

I tried to use secondary tabs in the partials containing the relation. So you would have primary tabs with relations containing a form with secondary tabs.

I guess that this causes the problem:

Primary tab one

data-target=“tabs14761-tab-01478891082323” id=“tabs14761-tab-01478891082323”

Primary tab two

data-target=“tabs14761-tab-11478891082325” id=“tabs14761-tab-11478891082325”

Primary tab three

data-target=“tabs14761-tab-21478891082326” id=“tabs14761-tab-41478891082327”

As you see, the data-target and id of tab three is not the same. Maybe this is causing the problem. If I manually add the class active to the tab-pane the tab is being showed. So the rendering of the tab logic is not working as it should be.

Hope someone can help me with this problem!

Last updated

Sebastiaan Kloos (ICTBelang)
Sebastiaan Kloos (ICTBelang)

I now see that this is something with or, the partial, or my relation.

I will try to find out what the problem is.

Sebastiaan Kloos (ICTBelang)
Sebastiaan Kloos (ICTBelang)

The problem is multidimensional tabs. Can someone help me with this. Is this a bug?

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.