caffeinated / menus

:pushpin: Menu generator package for the Laravel framework
https://caffeinatedpackages.com
132 stars 59 forks source link

Active State with AJAX #45

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hello!

I have currently one url e.g. "backend/".

All links in this layout will load bis ajax (e.g. backend/news)

The menu is definied over your add on.

How can I set here the link how is active ?

Greetings from Germany.

kaidesu commented 9 years ago

The active link detection is determined via the URI string. If your content is loading through AJAX, then you'll need to manage the active state yourself.

https://github.com/caffeinated/menus/wiki/Active-Link-Detection

ghost commented 9 years ago

How can I do this with your link ?

Have you an example ?  

Am 15. Juni 2015 10:30:45 schrieb Shea Lewis notifications@github.com:

The active link detection is determined via the URI string. If your content is loading through AJAX, then you'll need to manage the active state yourself.

https://github.com/caffeinated/menus/wiki/Active-Link-Detection


Reply to this email directly or view it on GitHub: https://github.com/caffeinated/menus/issues/45#issuecomment-111976583