I typically use two page layout templates, one for the home page, one for all the rest of the pages on a site. The latter is set as the default template.
When I set up CGBlog for a customer, for some reason it is using the home page template (not the default template) for the detail page of an entry. The summary of listed articles uses the correct template.
I checked the news module and it also uses the correct template, it is only the detail view for the blog that is incorrect. I have looked around but have not been able to locate where I might change this behavior. Any ideas?
using:
CMSMS 1.11.10
CGBlog 1.12.1
CGSimpleSmarty 1.7.2
CGExtensions 1.38.6
PHP 5.4.22
CGBlog uses incorrect layout template
Re: CGBlog uses incorrect layout template
When you use modules like News and CGBlog and hit the detail link the default function is to take over whatever is in that pages default {content} area...
If you want every detail view to go to a specific page that uses a specific template you need to set this page in the modules admin...
If you want different ones to go to diff. pages you need to set that in the {tag}, look at the Help for parameters...
If you want every detail view to go to a specific page that uses a specific template you need to set this page in the modules admin...
If you want different ones to go to diff. pages you need to set that in the {tag}, look at the Help for parameters...
Re: CGBlog uses incorrect layout template
Understood. I may not have explained this overly well, so let me try again.Dr.CSS wrote:When you use modules like News and CGBlog and hit the detail link the default function is to take over whatever is in that pages default {content} area...
If you want every detail view to go to a specific page that uses a specific template you need to set this page in the modules admin...
If you want different ones to go to diff. pages you need to set that in the {tag}, look at the Help for parameters...
The problem is not the content area, that part displays correctly, nor is it in the CGBlog templates, which I have adjusted using CSS. It is that CGBlog is using an incorrect layout template. The layout templates are the ones that affect the look of the entire site, just as cmsmadesimple.org shows a menu and logo at the top of every page.
The home page on my site uses one layout template. The rest of the pages on the site use a secondary template, set as the default so that every new page uses it. To give you an example, it would be as if the look and feel of the cmsmadesimple.org layout template changed in the detail page of the blog to the look and feel of the dev.cmsmadesimple.org layout template. Where does one change that?
Best way to do this is give you the URL:
http://www.hendersonvilletents.com/blog.html
Click on the links to see what I mean about the layout template. The template should be the same one as the blog page uses, but it's not.
Last edited by Parapet on Fri Apr 25, 2014 10:51 pm, edited 1 time in total.
Re: CGBlog uses incorrect layout template
Actually what Dr.CSS wrote is pertinent as most modules are not content pages (or content types to be more accurate). So usually there is a setting in the module configurations/definitions/settings, whatever the case may be, to render the module details in a particular page that should exist and is usually linked to the page template you want.Parapet wrote:Understood. I may not have explained this overly well, so let me try again.
The problem is not the content area, that part displays correctly, nor is it in the CGBlog templates, which I have adjusted using CSS. It is that CGBlog is using an incorrect layout template. The layout templates are the ones that affect the look of the entire site, just as cmsmadesimple.org shows a menu and logo at the top of every page.
The home page on my site uses one layout template. The rest of the pages on the site use a secondary template, set as the default so that every new page uses it. To give you an example, it would be as if the look and feel of the cmsmadesimple.org layout template changed in the detail page of the blog to the look and feel of the dev.cmsmadesimple.org layout template. Where does one change that?
In your case I assume that you want the details to be seen on the blog page, so you would have to set CGBlog to display these on that page...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: CGBlog uses incorrect layout template
I see, they are all basically going to the home page, look in the cgblog admin Option tab to see what these fields hold...
Summary View Options
Default detail page (if no page id is specified on the URL):
Default summary page (if no page id is specified on the URL):
Summary View Options
Default detail page (if no page id is specified on the URL):
Default summary page (if no page id is specified on the URL):
Re: CGBlog uses incorrect layout template
They are set to "None"Dr.CSS wrote:I see, they are all basically going to the home page, look in the cgblog admin Option tab to see what these fields hold...
Summary View Options
Default detail page (if no page id is specified on the URL):
Default summary page (if no page id is specified on the URL):
Re: CGBlog uses incorrect layout template
I would set the detail page, "Default detail page (if no page id is specified on the URL):" to a page that uses the 'page' template you want...