Problems With News 2.5.1 Database Templates in CMSMS 1.2

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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
alby

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post by Nullig »

Yes. I created two templates with those names and I can see them in the db.

Nullig
alby

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post by alby »

Try with a clean call

Code: Select all

{news summarytemplate="MySummary"}
Check if works and after add other params

Alby
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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
alby

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post by Nullig »

I've checked the forum thoroughly, but no resolution.

I've reported it on bug tracker.

Nullig
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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
Kevin C
Forum Members
Forum Members
Posts: 10
Joined: Tue Dec 11, 2007 4:48 pm

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post 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.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Problems With News 2.5.1 Database Templates in CMSMS 1.2

Post by Gregor »

I don't use prety url's. I changed the defalt template, and that works fine for me.
Post Reply

Return to “CMSMS Core”