Forum

Thread tagged as: Question

Perch navigation - I want the CMS generated navigational link to just trigger dr...

I'm sure this is easy to do, maybe some way to prevent default action for the anchor?

Thank You

J

Darren Cusdin

Darren Cusdin 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What do you want to do?

So when a user clicks on a 'product' link for instance, they aren't taken to a top-level 'product' page - the drop down menu just appears with the list of sub-pages.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You can certainly do that with JavaScript.

Alternatively, in your navigation template you could not output the link if the item has subitems. If you go that route make sure that your page is still accessible without CSS and JavaScript, else the content won't get indexed by search engines and you could cause some users problems accessing it too.