Pro/Contra RT vs Artikel Template ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
kubens
Posts: 168
Joined: Sat 6. Nov 2004, 15:29
Location: Duesseldorf near Cologne ;-)

Pro/Contra RT vs Artikel Template ?

Post by kubens »

Hallo,

seit ein paar Tagen arbeite ich mit phpWCMS und dank dem Forum und der Dokus von Pappnase und Pepe hat der erste Einstieg auch bisher gut geklappt! Jetzt bin ich allerdings an einen Punkt angelangt, wo ich euere Meinung brauche:

Für 50% meiner Artikel benötige ich den Namen der übergeordneten Seitenebene. Ist es aus performance Aspekten sinnvoll für diese Information ein RT aufzusetzen, oder besser die Information über ein PHP Skript innerhalb eines Artikel Templates zu nutzen? Zur Zeit nutze ich das folgende PHP Skript innerhalb eines Artikel Templates:

Code: Select all

[PHP]
$tmp_acat_id        = $GLOBALS['content']['cat_id'];
$tmp_acat_parent_id = $GLOBALS['content']['struct'][$acat_id]['acat_struct'];

$WAK_acat_name        = html_specialchars($GLOBALS['content']['struct'][$tmp_acat_id]['acat_name']);
$WAK_acat_parent_name = html_specialchars($GLOBALS['content']['struct'][$tmp_acat_parent_id]['acat_name']);

echo <<<END

<div>
<h1 class='WAK_h1'> $WAK_acat_parent_name - {TITLE}</h1><br>
[SUB]<h3 class='WAK_h3'>{SUB}</h3>[/SUB]
<p class='WAK_p'>
[IMAGE]<span class='WAK_span'>{IMAGE}[CAPTION]<br>{SPACER:1x3}<br>{CAPTION}[/CAPTION]</span>[/IMAGE]
<strong>{DATE:Y-m-d:EN}</strong> 
</p>
</div>

END;

[/PHP]
Gruß & Danke
Wolfgang
Post Reply