Page 1 of 1

displaying contents separately

Posted: Fri 2. Jul 2010, 21:52
by lukaswrites
Hi, all

Anyone knows how to display articles within the {content} tag separately, as you know, when you add {CONTENT} tag on your template, it will display all available articles in a category, how can I display one article on my left sidebar , and then another one on the right sidebar, etc , what's the tag to display one single article ?

Re: displaying contents separately

Posted: Sat 3. Jul 2010, 00:42
by flip-flop
Articles can be displayed only in the tag {CONTENT}.
You need a CP to do so. -> "teaser / link article" and {SHOW_CONTENT...} for positioning the CPs.

Knut

Re: displaying contents separately

Posted: Sat 3. Jul 2010, 09:14
by lukaswrites
I've done what u said, but it didn't work : I used the tag {SHOW_CONTENT:CP,7} as I know that the cp id is 7, I put that tag on my template, and nothing happen... can you explain this?

Re: displaying contents separately

Posted: Sat 3. Jul 2010, 12:47
by flip-flop
Hi,

general instructions to articles

teaser CP:
1. Create an hidden "site structure"
2. Put in there your teaser CP and switch it to visible.
3. Take your settings (selector: "manual" or "creation date:")
4. Edit the selected template
4. save and close
5. Look to the ID of this CP e.g. [ID:22]
6. Go to your page layout and insert e.g. {SHOW_CONTENT:CP,22}

Thats all.

Knut

Re: displaying contents separately

Posted: Sat 3. Jul 2010, 23:46
by lukaswrites
then how can I edit that CP?

Re: displaying contents separately

Posted: Sun 4. Jul 2010, 09:43
by flip-flop
I do not understand the question.

Knut

Re: displaying contents separately

Posted: Thu 8. Jul 2010, 18:26
by Tidida
You could use the {LEFT} {RIGHT} rt.

The CP would be of the same article, but on the frontend would look like different ones.

Re: displaying contents separately

Posted: Mon 3. Jan 2011, 20:01
by culda_a
Hi, happy new year to all, i did not use phpwcms RT for a long time but now first I saw that all contents are empty and I have to set a new expiration date to all then when I try to use {SHOW_CONTENT:CP,886} I see is not working ...i try also {SHOW_CONTENT:886} but also is not working ...any ideea why?

Re: displaying contents separately

Posted: Mon 3. Jan 2011, 20:43
by juergen
Hmm how about using it the right way ? ;-)

Re: displaying contents separately

Posted: Tue 4. Jan 2011, 10:00
by update
Have a look:
http://forum.phpwcms.org/viewtopic.php?f=1&t=20949
This will fix it for you