techiferous / tabulous

Easy tabbed navigation for Rails
Other
322 stars 35 forks source link

How can I have a particular subtab appear under more than one tab #55

Closed svavantsa closed 8 years ago

svavantsa commented 9 years ago

Hi Wayne,

I have a situation. I have a subtab called Attachments that I want to appear under more than one tab. This is because, the attachments apply to more than one entity. When I simply repeat the attachments_subtab section under more than one tab in the tabs/tabulous.rb file, I am getting a runtime error stating that I can't have more than one tab with the same active_when condition. Is there a better way of doing this to avoid the error message?

techiferous commented 9 years ago

Hi @svavantsa,

Tabulous does not support this condition. I would step back and consider that maybe you could arrange your navigation differently? If attachments should be able to be navigated to in many different tabs, perhaps it should be pulled out to be its own main tab or even a permanent link next to the navbar.

In any case tabulous does not support this. A work-around would be for these other subtabs to navigate to controllers that then redirect to the controller you want. That's a rather hackish solution, though.

svavantsa commented 9 years ago

Hi Wayne,

Thank you for getting back to me. Let me consider your suggestions and I'll let you know if I have any other concerns. ᐧ

Thank You,

Surya Avantsa

How do they say my name? http://vame.me/suryaavantsa

On Wed, Jun 10, 2015 at 2:47 PM, Wyatt Greene notifications@github.com wrote:

Hi @svavantsa https://github.com/svavantsa,

Tabulous does not support this condition. I would step back and consider that maybe you could arrange your navigation differently? If attachments should be able to be navigated to in many different tabs, perhaps it should be pulled out to be its own main tab or even a permanent link next to the navbar.

In any case tabulous does not support this. A work-around would be for these other subtabs to navigate to controllers that then redirect to the controller you want. That's a rather hackish solution, though.

— Reply to this email directly or view it on GitHub https://github.com/techiferous/tabulous/issues/55#issuecomment-110874728 .

svavantsa commented 9 years ago

Wayne,

I simply created another controller with a new name and inherited it from the other controller I created first. That's it. It does every thing that other did and at the same time, I am able to have it appear under multiple tabs as subtabs. ᐧ

Thank You,

Surya Avantsa

On Wed, Jun 10, 2015 at 2:55 PM, Surya Avantsa svavantsa@gmail.com wrote:

Hi Wayne,

Thank you for getting back to me. Let me consider your suggestions and I'll let you know if I have any other concerns. ᐧ

Thank You,

Surya Avantsa

How do they say my name? http://vame.me/suryaavantsa

On Wed, Jun 10, 2015 at 2:47 PM, Wyatt Greene notifications@github.com wrote:

Hi @svavantsa https://github.com/svavantsa,

Tabulous does not support this condition. I would step back and consider that maybe you could arrange your navigation differently? If attachments should be able to be navigated to in many different tabs, perhaps it should be pulled out to be its own main tab or even a permanent link next to the navbar.

In any case tabulous does not support this. A work-around would be for these other subtabs to navigate to controllers that then redirect to the controller you want. That's a rather hackish solution, though.

— Reply to this email directly or view it on GitHub https://github.com/techiferous/tabulous/issues/55#issuecomment-110874728 .