RT Versus CP
Posted: Wed 3. Jan 2007, 12:36
I think it is time for a general discussion about the meaning, function and sense of replacement tags (RT) in contrast to content parts (CP). In my opinion it is necessary to get a clear differentiation because newer development (especially in the hacks section) show that there is a growing uncertainty of how to deal with new functions. Release new functions as content parts or as replacement tags??
Ok, this is just a brief introduction with some thoughts of mine:
As I understand the main purpose of replacement tags is to offer meta functions such as creating minor dynamic areas. Lets take the show_content RT for example. It does not have a benefit on its own it is just a function in the system to call specified content. But what about the show_calendar RT it is content and should therefore rather be a CP doesn't it? Hmm, strange.
Another example: Oliver rejects the userpanel cause he wants the login to be a replacement tag, but the newsletter registration is a content part? Sorry, but there is something wrong I think!
At this point you should get my intention:
I definitely want to keep the sense in the system, I would like to arouse your attention to this topic, please don't mix it all up. There is a difference that makes a difference
At first I'd like to try to collect all the pros and cons:
CONTENT PARTS:
Pros:
Easy to set up
Easy to manage
Easy linking to each other (example: linking from login to registration)
Logical Context
You see what you have in your sitestructure
Easy assigning to certain structurelevel
can be used with different settings
Cons:
Uncomfortable to place in the layout (create special content area or user show_content RT)
Some kind of installation necessary
REPLACEMENT TAGS:
Pros:
No real installation required
Can be placed anywhere (articles, layout, wherever)
Can be used with different settings
Are dynamically rendered on ANY page if put into the layout!!
Cons:
Many of them are uncomfortable to use (see all the users with the Nav_LIST_UL Problems)
No backend Management implemented
Not as handy as CPs (copy and paste??)
What do you think? Does it make sense to you?
Ok, this is just a brief introduction with some thoughts of mine:
As I understand the main purpose of replacement tags is to offer meta functions such as creating minor dynamic areas. Lets take the show_content RT for example. It does not have a benefit on its own it is just a function in the system to call specified content. But what about the show_calendar RT it is content and should therefore rather be a CP doesn't it? Hmm, strange.
Another example: Oliver rejects the userpanel cause he wants the login to be a replacement tag, but the newsletter registration is a content part? Sorry, but there is something wrong I think!
At this point you should get my intention:
I definitely want to keep the sense in the system, I would like to arouse your attention to this topic, please don't mix it all up. There is a difference that makes a difference

At first I'd like to try to collect all the pros and cons:
CONTENT PARTS:
Pros:
Easy to set up
Easy to manage
Easy linking to each other (example: linking from login to registration)
Logical Context
You see what you have in your sitestructure
Easy assigning to certain structurelevel
can be used with different settings
Cons:
Uncomfortable to place in the layout (create special content area or user show_content RT)
Some kind of installation necessary
REPLACEMENT TAGS:
Pros:
No real installation required
Can be placed anywhere (articles, layout, wherever)
Can be used with different settings
Are dynamically rendered on ANY page if put into the layout!!
Cons:
Many of them are uncomfortable to use (see all the users with the Nav_LIST_UL Problems)
No backend Management implemented
Not as handy as CPs (copy and paste??)
What do you think? Does it make sense to you?