• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: CGBlog, detail pages and Pretty URLs
PostPosted: Tue Sep 04, 2018 11:28 am 
Offline
Power Poster
Power Poster

Joined: Wed Mar 04, 2009 11:04 pm
Posts: 256
I'm sure the question must have been asked before - but I cant find anything after a search so here goes...

I have CGblog set up and am using categories. As an example I have 2 categories, and 2 pages - each page is set to display the posts from one of the categories. The trouble I'm having is that detailpage='' doesn't work - I want to load the detail into the same page as the summary, or at least a bespoke page for each. What's currently happening is that the detail is being loaded into the homepage template. I am assuming this has something to do with Pretty URLs. How do I get around this?

Setting the detail page in the options tab of CGBlog isn't an option as each detail page needs to match the category. I dont mind if the article links in the blog section are 'ugly' but I dont know how I would get just those links to work instead of the pretty ones.

Any help greatly appreciated!

Thanks


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBlog, detail pages and Pretty URLs
PostPosted: Sat Sep 08, 2018 2:19 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3007
Location: The Netherlands
Quote:
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.


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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBlog, detail pages and Pretty URLs
PostPosted: Mon Sep 10, 2018 9:15 am 
Offline
Power Poster
Power Poster

Joined: Wed Mar 04, 2009 11:04 pm
Posts: 256
thanks ... is that a 'no' its not possible then?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBlog, detail pages and Pretty URLs
PostPosted: Mon Sep 10, 2018 10:04 am 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3007
Location: The Netherlands
No, it's a 'try this first' answer :-)

If that doesn't work I'd check if it is possible to manually add the parameter to the url. But I might be missing the obvious here, I'm not a CGBlog user.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBlog, detail pages and Pretty URLs
PostPosted: Mon Sep 10, 2018 3:10 pm 
Offline
Power Poster
Power Poster

Joined: Wed Mar 04, 2009 11:04 pm
Posts: 256
ok thanks - the reference to 'default values' in the copy above isn't relevant - thats what I mention in the question and I don't think using {cge_module_hint} would be an option because of the way the pages are built - they can't be generated all from within a blog template as they need menus, editable regions etc

Thanks for taking the time too look though. Anyone else got any ideas?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBlog, detail pages and Pretty URLs
PostPosted: Mon Sep 10, 2018 3:32 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3007
Location: The Netherlands
I could imagine cms_module_hint is useful except for the detailpage parameter because I GUESS that the page needs to be already known before the cms_module_hint tag is evaluated.

Second approach could be to disable pretty urls for a moment and check how the CGBlog url with all parameters used looks. Then find and copy the part that determines the detailpage.
Enable pretty urls and try pasting that detailpage part to the url and see if it works out. If so, you know what to add to the pretty url 'manually' in your summary template.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGBlog, detail pages and Pretty URLs
PostPosted: Mon Sep 10, 2018 3:47 pm 
Offline
Power Poster
Power Poster

Joined: Wed Mar 04, 2009 11:04 pm
Posts: 256
ok - thats something to investigate! will see what I find. Thanks


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting