Re: CGBlog, detail pages and Pretty URLs
Posted: Sat Sep 08, 2018 2:19 pm
Note that nowadays we have https://docs.cmsmadesimple.org/tags/cms ... odule_hint included by default. I'm not sure though it will solve your specific problem because it's about the detailpage parameter.Pretty URLS
Pretty URLS are ideal for websites where search engine optimization is a real concern. It provides a shorter, friendlier URL that search engines will treat better, and that are easier to share. However they come at a cost. Particularly, many of the parameters specified in the call to CGBlog, that should be passed down to another view via a link cannot be passed on a pretty url.
For example, when pretty urls are not enabled it is possible to call the browsecat action like this: {CGBlog action=browsecat summarytemplate=somesummary detailtemplate=somedetail detailpage=mydetailpage pagelimit=25 sortby=cgblog_extra sortorder=asc}. Now when the browsecat action generates its display, including links to summary views for each category, it should pass the summarytemplate,detailtemplate,detailpage,paglimit,sortby, and sortorder parameters along on the URL For the resulting summary view to use. However, it is not possible to pass these parameters on a pretty URL, and to keep them "pretty"
To that end, it is possible to provide default values for most of these parameters via the CGBlog admin console. This however, limits the flexibility of the module in some ways. Another possibility is to use the {cge_module_hint} tag to provide behavioral hints to the module on destination pages.