This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I have tried countless ways to create a link to a page that has a parameter. I need a link to this :
work/:category
I have tried this:
'work'|page({ category: galleryModel.category.slug })
But this just creates a link to the current page or just shows 'work' and that's it.. which in this case is work/pregnancy/hannahs-surprise-pregnancy.. when it should show work/pregnancy.. I checked to make sure galleryModel.category.slug holds the right value and it does. But it doesn't seem to be generating what I want it to. I have a work/category.htm in my pages directory in my theme. This url is "/work/:category" as well.. so I'm not sure what else to do.
Thank you for any help.
Last updated
Actually,
'work/pregnancy'|page
typing it out raw like this is even linking to 'work/pregnancy/hannahs-surprise-pregnancy' too... because this page's url is '/work/:category/:project' .. I feel like that's the only reason it would be linking to this page.. :/ I know in Laravel there is a way to organize your routes. How do you do this with pages?
Nevermind.. I changed it to '/work/:category/view/:project' and it still is doing the same thing.. even when I do a raw:
'work/pregnancy'|page
It's still linking to 'work/pregnancy/hannahs-surprise-pregnancy'
Last updated
I figured it out. They are not very clear in the documentation in my opinion.
'work/category'|page({ category: galleryModel.category.slug
1-3 of 3