Page 1 of 1

Show template/RSS template

Posted: Thu Apr 21, 2005 11:05 am
by Alex_Leipzig
Hi all,

what are these tabs in the News Module for: "Show Template"/"RSS Template"?
How do I use them?

Alx

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:09 pm
by Ted
They are the smarty templates used to dictate what gets displayed.  They're more of an advanced feature, but I always hear about people wanting to change the output of how News displays things.  With this feature, you can modify the output directly in the admin to, say, use a div instead of the spans or change the class names used.

That, and it was a good test for the templating stuff built into 0.10.

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:20 pm
by Alex_Leipzig
Alright, it's getting clearer. Do I use CSS here?

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:24 pm
by Ted
Well, this is basically what is going to be replacing your {cms_module module='news'} tag.  So, you want to do the CSS in your template based on the classes that you see in this template.

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:26 pm
by Ted
That didn't come out right...  template means 2 different things in this context.

You want to do the CSS in the template for your page based on the class names in "Display Template" for news.

I think that makes more sense (I hope).

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:28 pm
by Alex_Leipzig
It does. I'll just trial-and-error this...

Oh - is there a way of trimming the box with the last-seen pages? It's getting out of hand...

Thanx a lot, I really appreciate CMS.

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:46 pm
by Ted
last seen pages?

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:47 pm
by Alex_Leipzig
sorry, i have a german version, you know.
it's "Recently Used Pages"

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:48 pm
by Ted
Oh, in the admin?  You can turn off bookmarks and recent pages in the User Preferences if they're in the way.

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 12:55 pm
by Alex_Leipzig
Well, that's an option, of course.
But since I use both, I was wondering, if I could trim the "recently..." to the last 20 pages or so.

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 1:01 pm
by Ted
I thought it only showed 5.  Have to look into that one.

Re: Show template/RSS template

Posted: Thu Apr 21, 2005 1:15 pm
by Alex_Leipzig
That would be nice. I have about 95 showing up right now...