displaying contents separately

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
lukaswrites
Posts: 7
Joined: Thu 24. Jun 2010, 11:47

displaying contents separately

Post 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 ?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: displaying contents separately

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
lukaswrites
Posts: 7
Joined: Thu 24. Jun 2010, 11:47

Re: displaying contents separately

Post 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?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: displaying contents separately

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
lukaswrites
Posts: 7
Joined: Thu 24. Jun 2010, 11:47

Re: displaying contents separately

Post by lukaswrites »

then how can I edit that CP?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: displaying contents separately

Post by flip-flop »

I do not understand the question.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Tidida
Posts: 32
Joined: Thu 17. Jun 2004, 08:42
Location: Mexico City

Re: displaying contents separately

Post 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.
The syntax used is identical
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Re: displaying contents separately

Post 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?
ImagePackging design,labels, catalogs,postcards,
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: displaying contents separately

Post by juergen »

Hmm how about using it the right way ? ;-)
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: displaying contents separately

Post by update »

Have a look:
http://forum.phpwcms.org/viewtopic.php?f=1&t=20949
This will fix it for you
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Post Reply