{cms_module_hint} CGBlog How to Use It
Posted: Sat Oct 31, 2020 1:59 pm
Hello,
I'm hoping someone can help me with understanding how the {cms_module_hint} works with CGBlog. I've spent many hours trying to make this work and reviewing the forum posts, I've also tried using {cms_module_hint} with Products module a few months ago but could never get it to work, it sounds like it should be easy to make this work when reading the CMSMS documentation.
From what I've read it sounds like I should be able to use Pretty URLS and use {cms_module_hint} to direct CGBlog page flow to category specific detail pages and detail templates. Is this correct? or is it entirely not possible to use Pretty URLS and have a category specific detail page using {cms_module_hint} with CGBlog? It sounds like {cms_module_hint} was the solution to this challenge from what I read.
First question should I set the "Default Detail Page" in CGBlog Options? or leave it set to "None" when trying to use the {cms_module_hint} tag? I've tried it either way and no luck.
Second question: Which detail page do you add your {cms_module_hint} code to? the blog default or your custom detail page?
In my latest attempt I tried:
Setting the "Default Blog Detail Page" to a page I created named "blog-detail-page" and added the following code to the "smarty data logic" section:
{cms_module_hint category="Roadside" module=CGBlog detailtemplate="CustomCaseStudiesDetail" detailpage="case-studies-detail"}
I've created a "case studies" page that uses the following CGBlog code in the {content} area to display three blog categories "Roadside", "Streams and Banks" and "Flood Control" using the "Browsecat" action
{CGBlog action="browsecat" browsecattemplate="CustomCaseStudies-Category" summarypage="case-studies-2" summarytemplate="CustomCaseStudiesSummary" detailpage="case-studies-detail" detailtemplate="CustomCaseStudiesDetail"}
The case studies page displays the three blog category: "Roadside", "Streams and Banks" and "Flood Control", category image, text link, etc. and appears to work fine.
I've created a "case-studies-detail" page and also added the following code, entered in the "smarty data or logic" section.
{cms_module_hint category="Roadside" module=CGBlog detailtemplate="CustomCaseStudiesDetail" detailpage="case-studies-detail"}
When I click on a category link the summarytemplate="CustomCaseStudiesSummary" template loads and the blog articles for the specific category are displayed (thumbnails, descriptions, etc.), which is expected as the summary template is passed in the url.
When I click on an article link that is part of the "Roadside" category I want to go to the detail page named case-studies-detail and use the detailtemplate named "CustomCaseStudiesDetail", instead of the default "blog-detail-page" and default "blog detail template" yet I always end up on the "blog-detail-page" unless I turn off "Pretty Urls" but I thought {cms_module_hint} as the work around for this challenge.
Sorry for the long description, Thank you in advance to anyone who can help!
Monte
CMSMS Version 2.2.7
Installed Modules
AdminSearch 1.0.4
CGBlog 1.15.14
CGExtensions 1.61.5
CGSimpleSmarty 2.2.1
CMSContentManager 1.1.6
CMSMailer 6.2.14
Captcha 1.0
CmsJobManager 0.1.2
DesignManager 1.1.4
FileManager 1.6.6
FilePicker 1.0.2
FormBuilder 0.8.1.6
Gallery 2.3.2
JQueryTools 1.4.0.4
MenuManager 1.50.3
MicroTiny 2.2.2
ModuleManager 2.1.3
Navigator 1.0.8
News 2.51.3
Search 1.51.4
TinyMCE 3.2-beta6
I'm hoping someone can help me with understanding how the {cms_module_hint} works with CGBlog. I've spent many hours trying to make this work and reviewing the forum posts, I've also tried using {cms_module_hint} with Products module a few months ago but could never get it to work, it sounds like it should be easy to make this work when reading the CMSMS documentation.
From what I've read it sounds like I should be able to use Pretty URLS and use {cms_module_hint} to direct CGBlog page flow to category specific detail pages and detail templates. Is this correct? or is it entirely not possible to use Pretty URLS and have a category specific detail page using {cms_module_hint} with CGBlog? It sounds like {cms_module_hint} was the solution to this challenge from what I read.
First question should I set the "Default Detail Page" in CGBlog Options? or leave it set to "None" when trying to use the {cms_module_hint} tag? I've tried it either way and no luck.
Second question: Which detail page do you add your {cms_module_hint} code to? the blog default or your custom detail page?
In my latest attempt I tried:
Setting the "Default Blog Detail Page" to a page I created named "blog-detail-page" and added the following code to the "smarty data logic" section:
{cms_module_hint category="Roadside" module=CGBlog detailtemplate="CustomCaseStudiesDetail" detailpage="case-studies-detail"}
I've created a "case studies" page that uses the following CGBlog code in the {content} area to display three blog categories "Roadside", "Streams and Banks" and "Flood Control" using the "Browsecat" action
{CGBlog action="browsecat" browsecattemplate="CustomCaseStudies-Category" summarypage="case-studies-2" summarytemplate="CustomCaseStudiesSummary" detailpage="case-studies-detail" detailtemplate="CustomCaseStudiesDetail"}
The case studies page displays the three blog category: "Roadside", "Streams and Banks" and "Flood Control", category image, text link, etc. and appears to work fine.
I've created a "case-studies-detail" page and also added the following code, entered in the "smarty data or logic" section.
{cms_module_hint category="Roadside" module=CGBlog detailtemplate="CustomCaseStudiesDetail" detailpage="case-studies-detail"}
When I click on a category link the summarytemplate="CustomCaseStudiesSummary" template loads and the blog articles for the specific category are displayed (thumbnails, descriptions, etc.), which is expected as the summary template is passed in the url.
When I click on an article link that is part of the "Roadside" category I want to go to the detail page named case-studies-detail and use the detailtemplate named "CustomCaseStudiesDetail", instead of the default "blog-detail-page" and default "blog detail template" yet I always end up on the "blog-detail-page" unless I turn off "Pretty Urls" but I thought {cms_module_hint} as the work around for this challenge.
Sorry for the long description, Thank you in advance to anyone who can help!
Monte
CMSMS Version 2.2.7
Installed Modules
AdminSearch 1.0.4
CGBlog 1.15.14
CGExtensions 1.61.5
CGSimpleSmarty 2.2.1
CMSContentManager 1.1.6
CMSMailer 6.2.14
Captcha 1.0
CmsJobManager 0.1.2
DesignManager 1.1.4
FileManager 1.6.6
FilePicker 1.0.2
FormBuilder 0.8.1.6
Gallery 2.3.2
JQueryTools 1.4.0.4
MenuManager 1.50.3
MicroTiny 2.2.2
ModuleManager 2.1.3
Navigator 1.0.8
News 2.51.3
Search 1.51.4
TinyMCE 3.2-beta6