Page 1 of 1
					
				Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 5:24 pm
				by Nullig
				I can't seem to specify which templates to use, it always goes to the default one.
Am I putting too many parameters in the tag? Can I not specify both templates in the call?
Code: Select all
{news category='special*' browsecat='1' summarytemplate='MySummary' detailtemplate='MyDetail}
Thanks,
Nullig
 
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 5:50 pm
				by alby
				Nullig wrote:
Am I putting too many parameters in the tag?
No
Nullig wrote:
Can I not specify both templates in the call?
Yes, News use default template if not specificated
Nullig wrote:
Code: Select all
{news category='special*' browsecat='1' summarytemplate='MySummary' detailtemplate='MyDetail}
 
 
Check sintax, detailtemplate is not close:
 detailtemplate='MyDetail'}
Try to invert quote also (' -> ")
Alby
 
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 6:03 pm
				by Nullig
				I missed the close quote when I was typing it here, I had it in the call properly.
I tried changing the single quotes ' to double quotes " but it made no difference.
Code: Select all
{news category="special*" browsecat="1" summarytemplate="MySummary" detailtemplate="MyDetail"}
Nullig
 
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 7:43 pm
				by Nullig
				Yes. I created two templates with those names and I can see them in the db.
Nullig
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 8:33 pm
				by alby
				Try with a clean call
Code: Select all
{news summarytemplate="MySummary"}
Check if works and after add other params
Alby
 
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 9:08 pm
				by Nullig
				It all works perfectly as I add parameters until I add the browsecat="1", then it goes back to the default templates.
Nullig
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Fri Oct 26, 2007 9:29 pm
				by alby
				Nullig wrote:
It all works perfectly as I add parameters until I add the browsecat="1", then it goes back to the default templates.
Search in forum for this.
I remember a problem with this param.
Alby
 
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Sat Oct 27, 2007 5:26 pm
				by Nullig
				I've checked the forum thoroughly, but no resolution.
I've reported it on bug tracker.
Nullig
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Sat Dec 29, 2007 11:38 am
				by Gregor
				Hi,
Just to let you know. This problem also occurs whitout the browsecat-option. If I set the new made detailtemplate to default, than it shows up correctly, however changing to another default template and calling the template by using 
detailtemplate="Bestuursnieuws"
 does not make a difference to the output.
I'm using cmsms 1.2.2
Greetz,
Gregor
 
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Mon Dec 31, 2007 8:09 pm
				by Kevin C
				Are you using pretty URLs for news? I couldn't get the news templates to be applied after I made some modifications to use pretty URLs for news items. The only way I found to get the templates to take effect was to remove the rewrite rule I added in the .htaccess file for the news items.  There is probably a way to modify the rewrite rule to take the news template parameters into account, but that's beyond me.
			 
			
					
				Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2
				Posted: Tue Jan 01, 2008 2:07 pm
				by Gregor
				I don't use prety url's. I changed the defalt template, and that works fine for me.