christianbarkowsky / contao-tabcontrol

Contao Extension :: Tabcontrol
https://brkwsky.de/tabcontrol-contao
8 stars 4 forks source link

Initial tab via location.hash #8

Closed pablopaul closed 10 years ago

pablopaul commented 10 years ago

Hi,

I found the following comment:

As of v1.2 of TabControl, initial tab can be specified via URIs anchor

Furthermore it says:

initialTab | String | The id of the tab that will be selected on initialization (defaults to first tab)

So I assume the URI anchor must match the ID of the desired tab list element, is that right?

Is there any specific setting to output a tab ID in Contao if the tab has only CSS classes at the moment?

`

  • Downloads
  • ``

    Thanks

    christianbarkowsky commented 10 years ago

    Fixed.

    Give each SECTION START element a CSS ID name ... then you can use the hashes.

    See: http://www.christianbarkowsky.de/contao-tabcontrol.html