Page 1 of 1
Replacement-Tag für Artikeltitel?
Posted: Fri 30. Sep 2005, 13:26
by axedon
Hi
Ich habe weder im Forum, via Google, noch bei Peperkorn o.ä. einen Replacement-Tag für den Artikeltitel gefunden, nur ein add-on für den
Titel der Seitenstruktur.
Ich würde jetzt vermuten, es gäbe ihn nicht, aber da der Artikeltitel "Standard" ist, wollte ich mal nachfragen. Vielleicht ja als add-on?
Vielen Dank!
PS: Brauche ihn für folgende Konstruktion in den Vorlagen:
Code: Select all
<div id="title"><img src="imgs/t-{TITLE_ARTICLE}.gif" alt="{TITLE_ARTICLE}" /></div>
(habe es mit TITLE, TITLE_ARTICLE, PAGETITLE, ARTICLETITLE versucht)
Posted: Sat 1. Oct 2005, 17:05
by pepe
Wenn ich richtig verstanden habe, willst du einen Bildernamen in Abhängigkeit von dem Titel der Seite erzeugen lassen????
Keinen Schimmer...
aber kannst du denn nicht auch für den Bildernamen den ALIAS der Seitenebene verwenden... das wäre doch auch eine Möglichkeit, oder

Denn wie du deine Bilder nennst ist doch sicher dir überlassen
..... dann haben wir auch schnelle eine Lösung zusammen

Posted: Sat 1. Oct 2005, 17:45
by cwenet
Für PAGETITLE muss noch eine kleines Script in folgendes Verzeichnis kopiert werden:
phpwcms_template\inc_script\frontend_render
Code: Select all
<?php
// PAGETITLE replacement
if( ! (strpos($content["all"],'{PAGETITLE}')===false)) {
$content["all"] = str_replace('{PAGETITLE}', $content["struct"][$content["cat_id"]]
["acat_name"], $content["all"]);
} ?>
Der Aufruf kann dann an beliebiger Stelle via {PAGETITLE} erfolgen.
Christoph
Posted: Sat 1. Oct 2005, 18:27
by cwenet
Das war wohl verkehrt. Aber jetz habe ich was gefunden. Müßte normal funktionieren:
Code: Select all
<?php
// ARTICLE_TITLE replacement
if( ! (strpos($content["all"],'{ARTICLE_TITLE}')===false)) {
$content["all"] = str_replace('{ARTICLE_TITLE}', $GLOBALS['row']['article_title'], $content["all"]);
}
?>
Christoph
Posted: Sun 2. Oct 2005, 12:15
by axedon
Funktioniert.
Christoph dankt Christoph!
Posted: Thu 29. Dec 2005, 19:29
by ssyfrig
Gibt es eine möglichkeit das so anzuzeigen?
is it possibly to show the RT with Mod GT?
thanks, Sven
Posted: Tue 3. Jan 2006, 10:31
by ssyfrig
I tried to edit the RT code al well but it doesn’t work.
Does any body can help me?
Thanks, Sven
Posted: Tue 7. Mar 2006, 21:34
by Evoplure
Try to copy the code without php marks in: include/inc_front/content.func.inc.php, for example after the {AUTHOR} replacement tag instruction.
The problem is that I would like to leave this file untouched and work with the Custom Replacement Tag folder (phpwcms_template\inc_script\frontend_render ). Maybe this is your case as well... I dont know how could I use GT for a custom replacement tag... and I would be very happy if someone find a solution.
Best regards
Posted: Tue 7. Mar 2006, 23:38
by pepe
Hi ssyfrig,
so geht's... / that's the way...
// article default MIT Grafical-Text MOD
$template_default["article"]["title_before"] = '<div>{GT:brush24}';
$template_default["article"]["title_after"] = '{/GT}</div>';
Der
markierte Part muß natürlich deinem "Schrifttyp" aus dem GT-MOD entsprechen...
Posted: Wed 8. Mar 2006, 08:32
by update
Hi Pepe,
one question in general - just for better understanding:
is phpwcms doing the rendering once only and then pulling the graphical text out of cache or folder or how is this working (especially in the case above mentioned by you)
Greetings
claus
Posted: Wed 8. Mar 2006, 08:39
by pepe
Dont know, how it exactly works....
But if you delete the whole existing content of your content/GT directorry per FTP ...
it will be generated again, if you call your pages
PS
have a look:
http://peperkorn-online.de/gt-mod.phtml
No special tricks... and GD2 only

Posted: Wed 8. Mar 2006, 08:56
by update
I saw it before and these types are looking much better even than my best ones. I should try it with these ones you did use to get some comparable and/or reproducable results. Testing isn't finished ever
Greetings
claus
Does not work
Posted: Wed 8. Mar 2006, 19:56
by Evoplure
pepe wrote:
$template_default["article"]["title_before"] = '<div>{GT:brush24}';
$template_default["article"]["title_after"] = '{/GT}</div>';
Unluckily, this does not work with the {ARTICLE_TITLE} replacement tag... At least to me...

Posted: Wed 3. May 2006, 21:21
by Moan
Hi there,
does anyone of you know, why the {ARTICLE_TITLE}-Tag isn´t replaced when a articlemenu is one of the contentparts?
As soon, as I turn the articlemenue invisible and add a normal WYSIWYG-Element, the article´s title shows up again ?!
Thx
Dani