Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Hilft das hier nicht weiter... zumindest schon mal für vorhandene CPs:
http://forum.phpwcms.org/viewtopic.php?p=144705#p144705
http://forum.phpwcms.org/viewtopic.php?p=144705#p144705
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Die Frage ist doch: Wie kann ich [LEFT] usw dazu bewegen, zu bemerken, ob {VERTMENU} gefüllt ist und Platz braucht (col-3) oder nicht. Ansonsten geht ja alles, aber auf {VERTMENU} reagiert [LEFT] nicht. Naja,, vielleicht tickt ja auch mein Logiksektor grad nicht richtig, evtl braucht es da mehr "custom_logic"?
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.
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.
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Wie sieht's denn bei [VERTMENU] aus
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
{VERTMENU} funktioniert, für sich alleine genommen.
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.
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.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Code: Select all
[LEFT]
{LEFT}
[VERTMENU]
{VERTMENU}
[/VERTMENU]
[/LEFT]
[LEFT_ELSE]
[VERTMENU]
{VERTMENU}
[/VERTMENU]
[/LEFT]
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Ok, danke, das hilft schon mal weiter. Aber (das hatte ich vorher auch schon) das [VERTMENU] [/VERTMENU] steht wieder/immer noch im Klartext auf der Seite und ohne CP in {LEFT} sind es immer noch 12 Spalten und nicht 9 - eine Übung in Gelassenheit
Kann ja auch nicht gehen:
Nur wäre ich schon irgendwann mal gerne auf den Trichter gekommen, wie das richtig geht...
Kann ja auch nicht gehen:
Code: Select all
col-md-[LEFT]9[/LEFT][LEFT_ELSE]12[/LEFT_ELSE]
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.
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.
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Vielleicht hilft der "LevelLift" da weiter???
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Naja, erstmal frage ich mich, warum [VERTMENU]dazwischen ist mein 1 2 3 Menü[/VERTMENU] im Quelltext stehen bleibt. Das kann doch nur bedeuten, dass es nicht abgearbeitet wird, oder?
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.
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.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
ja, genau so ist es. Wo kommt das denn her — aus einem Custom Block?
Und noch etwas: Du musst sicher sein, dass der Block Inhalte enthält — das ist keine Prüfung, ob im Template etwas zwischen [TAG][/TAG] steht. Der Wert von {TAG} ist es, gegen den verglichen wird.
Und noch etwas: Du musst sicher sein, dass der Block Inhalte enthält — das ist keine Prüfung, ob im Template etwas zwischen [TAG][/TAG] steht. Der Wert von {TAG} ist es, gegen den verglichen wird.
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
{VERTMENU} wird duch ein FE-render-Script befüllt.
Wie kann ich da prüfen, ob es einen Inhalt gibt?
Wenn {VERTMENU} gefüllt --> mache 9 + 3 Spalten und zeige {VERTMENU} sonst 12 Spalten (das funktioniert (noch) nicht)
oder wenn CP in {RIGHT} --> mache 9 + 3 Spalten und zeige {RIGHT} sonst 12 Spalten (das funktioniert)
oder wenn {ADS_2} gefüllt --> mache 9 + 3 Spalten und zeige {ADS_2} sonst 12 Spalten (das funktioniert)
oder wenn {VERTMENU} oder/und CP in {RIGHT} oder/und {ADS_2} --> mache 9 + 3 Spalten und zeige {VERTMENU} und {RIGHT} und {ADS_2} sonst 12 Spalten (das funktioniert)
Code: Select all
<?php
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
die("You Cannot Access This Script Directly, Have a Nice Day."); }
// ----------------------------------------------------------------
$_vertmenu = '';
if(isset($LEVEL_ID[1])) {
$_vertmenu = trim( buildCascadingMenu( 'FA,' . $LEVEL_ID[1] . ',' . '4' . ',' . 'act_path|nav nav-pills nav-stacked' . ',' . 'class_active_li|class_active_a' . ',' . ''. ',' . '0' ) );
//{NAV_LIST_UL:FP,'.$level_id.',,act_path,active}';
//$_vertmenu = trim( buildCascadingMenu( 'FP,' . $GLOBALS['content']['cat_id'] . ',' ) );
// this is exactly the same as {NAV_LIST_UL: F,start_level_id, }
// but built with php function behind
if( $_vertmenu ) {
$_vertmenu = '<aside class="">
<nav>
<div class="menu">' . $_vertmenu . '</div>
</nav>
</aside>
';
} else {
$_vertmenu = '<img alt="" src="/_pics/dandelion.png">';
}
}
else {
$_vertmenu = '<img alt="" src="/_pics/dandelion.png">';
}
$content['all'] = str_replace( '{VERTMENU}', $_vertmenu, $content['all'] );
?>
Wenn {VERTMENU} gefüllt --> mache 9 + 3 Spalten und zeige {VERTMENU} sonst 12 Spalten (das funktioniert (noch) nicht)
oder wenn CP in {RIGHT} --> mache 9 + 3 Spalten und zeige {RIGHT} sonst 12 Spalten (das funktioniert)
oder wenn {ADS_2} gefüllt --> mache 9 + 3 Spalten und zeige {ADS_2} sonst 12 Spalten (das funktioniert)
oder wenn {VERTMENU} oder/und CP in {RIGHT} oder/und {ADS_2} --> mache 9 + 3 Spalten und zeige {VERTMENU} und {RIGHT} und {ADS_2} sonst 12 Spalten (das funktioniert)
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.
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.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
zuviel Custom, ich nutze dann schlicht HTML Kommentare und prüfe auf eine solche Kombi und ersetze mit meinem Fallback.
und so weiter.
Code: Select all
<!--LEFT-->[LEFT]{LEFT}[/LEFT]<!--/LEFT-->
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Hast Du zuufällig ein kleines Beispiel parat, an dem ich mich weiterhangeln kann?Oliver Georgi wrote: ich nutze dann schlicht HTML Kommentare und prüfe auf eine solche Kombi und ersetze mit meinem Fallback.
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.
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.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Code: Select all
if(strpos($content['all'], '<!--LEFT--><!--/LEFT-->')) {
$content['all'] = str_replace('<!--LEFT--><!--/LEFT-->', 'Hamwa nich, Left iss nich!', $content['all']);
}
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
die Ausgabe "Left is nich" kommt brav, aber immer noch nicht in Abhängigkeit vom Vorhandensein (oder Fehlen) eines Menüs
Die Spaltenanzahl in Abhängigkeit vom Vorhandensein des Menüs klappt auch nicht (und das ist ja die eigentliche Thematik)...
Die Spaltenanzahl in Abhängigkeit vom Vorhandensein des Menüs klappt auch nicht (und das ist ja die eigentliche Thematik)...
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.
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.
Re: Gleicher Inhalt auf jeder Seite z.B. rechte Spalte
Vielleicht könntest dein Template so anlegen, dass erst mal 12 Spalten angelegt sind.
Wenn dein vertmenu erzeugt wird, fragst fragst du eine typische Zeichenfolge ab, und änderst entsprechend den breiten Bereich.
Etwa so:
Wenn dein vertmenu erzeugt wird, fragst fragst du eine typische Zeichenfolge ab, und änderst entsprechend den breiten Bereich.
Etwa so:
Code: Select all
if(strpos($content['all'], 'kann-nur-in-vertmenu-auftauchen')) {
$content['all'] = str_replace('class="fette-12-Spalten-breit"', 'class="nur-voch-9-Spalten-breit"', $content['all']);
}