Page 1 of 1

Custom Content Block and DIVS

Posted: Thu 3. Mar 2005, 15:55
by shocktone
When I choose the CSS DIV option in the Page layout section.
DIVs for left, right, footer.. are created in the source code.
But when I create a custom block no DIVs are created for this one.
Of course I can place a DIV around the custom block in the main block. That will work.
But am I missing something ?

Thanks alot

Posted: Thu 3. Mar 2005, 16:05
by pico
Hi

I have a Customblock called MEINS

so in the Template I have this Code

Code: Select all

<div class="meins"> ..........  </div> 
it don't work automaticly :D in the Moment :?:

Posted: Thu 3. Mar 2005, 16:09
by shocktone
Hi! But in the template main section right ?
So this would be something for the future ? ;)

Posted: Thu 3. Mar 2005, 17:16
by pico
Hi

if you have enter a Name for your CustomBlock in PageLayout, then you should have in the Template a Block with this Name, in this Block you have to use your CSS-Class with div class.

also mal in deutsch

wenn du im Seitenlayout bei Blöcke - Eigene einen namen eingetragen hast z.B. MEINBLOCK, dann muß in der Vorlage dieser Block mit diesem Namen erscheinen. Und da verwendest Du dann die CSS-Klasse mit

<dic class="meinblock"> ...was auch immer... </div>


und in die frontend.css musses dann so rein

Code: Select all

.meinblock {
  ...
  ...
}

Posted: Thu 3. Mar 2005, 17:40
by shocktone
Hi pico,

"wenn du im Seitenlayout bei Blöcke - Eigene einen namen eingetragen hast z.B. MEINBLOCK, dann muß in der Vorlage dieser Block mit diesem Namen erscheinen. Und da verwendest Du dann die CSS-Klasse mit"

bis dahin ist alles ok.

Aber jetzt:

<dic class="meinblock"> ...was auch immer... </div>

Das geht mir nur, wenn es im Haupt Block steht.
D.h. eigentlich sollte es doch so sein:


Es wird im Quelltext automatisch ein DIV für den neuen Block angelegt.
Genau wie es DIVs für die standard blöcke gibt. (wird aber nicht gemacht)
In den custom block schreibe ich dann im template den inhalt rein. also z.b. {content} oder {custom_block} oder was auch immer.

Ich verstehe ehrlich gesagt nicht, wozu die neuen Blöcke im template überhaupt da sein sollen. Ich kann doch meine gesamtes template im Haupt Block erstellen. Oder dient das (nur) der übersicht ?

ahh kompliziert ! ;)

Posted: Thu 3. Mar 2005, 17:40
by shocktone
Ill translate, when i found the solution ;)

Posted: Thu 3. Mar 2005, 17:47
by pico
nur mal so ein Beispiel:

http://www.hdk-online.de/index.phtml

dieses Login Feld mitten drin ist ein eigener Block der - zumindest beim FireFox - eine feste Position hat

:D