Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Display page as 'active' when that page is generated by a plugin

Started by Jacob 9 years ago · 0 replies · 730 views
9 years ago

I've asked this question on StackOverflow, but nobody answered there, so i thought I would try asking it here.

I'm writing a plugin that generates and manages a set of page content from a small SQLite database. In my page structure, I've created a page at mysite.com/plugin_page. This pulls data from the plugin and has links that show pages such as mysite.com/plugin_page/view/$1. Once you enter the view/$1 structure though, all pages are built by the plugin.

When the user is viewing mysite.com/plugin_page, the active page highlighting works fine in my navigation menu. When you go to the viewing page though, no page is listed as 'active' and the correct page isn't highlighted in the navigation menu.

Is there something I need to do within the plugin to account for this? If interested in looking at the code itself, here is the repository link.

last edited 02/19/18 by Jacob

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago