You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble sorting out how to write the routes I need. I am using stash along with Resource Router to determine the templates to be used based on a user's logged in user group. I have some pages that are using Low Search to return filtered lists of results. I also have have pages that show details for single entries. The urls I am trying to set up would look like this:
I'm having a problem where depending on the order I have my code blocks in my config file, I get the wrong pages for either filtered lists or for the announcement details. When I have the route block for the announcement detail first in the config, I get the announcement detail template for both announcement details and for filtered lists. If the route code block for the filtered lists is first I get the filtered list template for filtered lists and for announcement details. I get the fact that the route I have set up is matching both cases, but I'm not sure how to fix it. Here is the code I have in place for the routes:
Hi,
I'm having trouble sorting out how to write the routes I need. I am using stash along with Resource Router to determine the templates to be used based on a user's logged in user group. I have some pages that are using Low Search to return filtered lists of results. I also have have pages that show details for single entries. The urls I am trying to set up would look like this:
For general listing of announcements:
www.example.com/login/announcements
Paginated general listing of announcements:
www.example.com/login/announcements/P2
filtered listing of announcements:
www.example.com/login/announcements/encryptedquerystringhere
filtered listing of announcements with pagination:
www.example.com/login/announcements/encryptedquerystringhere/P2
announcement detail:
www.example.com/login/announcements/url-title-of-announcement
I'm having a problem where depending on the order I have my code blocks in my config file, I get the wrong pages for either filtered lists or for the announcement details. When I have the route block for the announcement detail first in the config, I get the announcement detail template for both announcement details and for filtered lists. If the route code block for the filtered lists is first I get the filtered list template for filtered lists and for announcement details. I get the fact that the route I have set up is matching both cases, but I'm not sure how to fix it. Here is the code I have in place for the routes:
`'login/announcements' => function($router) {
`
Can you help me to sort out what I need to change to get the results I mentioned above?
Thanks,
Brian
The text was updated successfully, but these errors were encountered: