Page 1 of 1

usage of contentpart teaser

Posted: Fri 20. Apr 2007, 17:20
by homer.j.simpson
Hi all,
I can't seems to find contentpart teaser usage all over the forum. Can anyone help me out?
Best regards

Posted: Fri 20. Apr 2007, 18:11
by Jensensen
hi homer,

probably this could help...

http://www.phpwcms.de/forum/viewtopic.p ... art+teaser

Posted: Sat 21. Apr 2007, 03:46
by homer.j.simpson
Could u please show me the syntax.

Thanks in advance

Posted: Sat 21. Apr 2007, 18:15
by Jensensen
what :?: :idea: :?:

Posted: Sun 22. Apr 2007, 05:09
by homer.j.simpson
Correct me if my undestanding is incorrect. I understand contentpart teaser as a solution to show specifc article summry through its replacement tag. Just like teaser_ex extension except it allows to show specifc article summary. As for the teaser_ex syntax, {Teaser_ex:catefory_alias|count}. The problem which I'm having is that i can't figure out the syntax. I hope this will help your understanding.
Best regards

Posted: Sun 22. Apr 2007, 07:12
by DeXXus
A content part is a content part and a rep tag is a rep tag...the two are different in concept and in how they work.

A rep tag is a placeholder (enclosed in delimeters), with a syntax [keyword and parameter(s)] to achieve certain functions. It is more flexible and can be placed in templates and content parts, to mark where exactly you would like some output to occur.

A content part is "basicly" a form with fields and options, etc. (like a wizard) to be filled out in order to achieve it's functionality. It, more strictly, flows in a linear fashion within the site structure of categories, articles and their content.

I think the teaser_ex addon is like a hybrid of both (the extension adds code functions to generate a rep tag by filling out a wizard [like a content part] and that generated tag can then be placed where you want the teaser to appear [like a rep tag].

There IS a template for the teaser block, when it is used within the link article content part. It DOES reference some tags that are used to control the arrangement and what is/isnot to be shown. Modification of this is limited to whatever tags are supported (by that content part). You can see it's contents in "/template/inc_cntpart/teaser/teaser_block.html" to understand the tags that are referenced and how they are placed by default. Have a look ;)

Posted: Sat 28. Apr 2007, 17:17
by homer.j.simpson
Thanks for the clarification Dexxus.
:D