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

cceglia
cceglia

Hello everyone,

I started using October a few weeks ago and I must say that I love it :)

I would like to add a new side menu item in Rainlab.Pages plugin. The problem is that when the menuover or click events are triggered, the side panel menu is showed. Instead, I would like the user to navigate to the url.

Is there a way to do it?

When snippets are clicked Snippets clicked

When my new menu item is clicked my menu item clicked

Here is my code code

Thank you very much.

pratyushpundir6424
pratyushpundir6424

In your Items plugin controller, you need to set the context to the RainLab Pages stuff if you haven't already.

So it would be something like this:

public function __construct()
{
    parent::__construct();
    BackendMenu::setContext('RainLab.Pages', 'pages', 'items');
}

Last updated

1-2 of 2

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