Custom Content Block and DIVS

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
shocktone
Posts: 74
Joined: Thu 19. Aug 2004, 17:33
Location: Duesseldorf. Germany

Custom Content Block and DIVS

Post 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
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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 :?:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
shocktone
Posts: 74
Joined: Thu 19. Aug 2004, 17:33
Location: Duesseldorf. Germany

Post by shocktone »

Hi! But in the template main section right ?
So this would be something for the future ? ;)
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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 {
  ...
  ...
}
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
shocktone
Posts: 74
Joined: Thu 19. Aug 2004, 17:33
Location: Duesseldorf. Germany

Post 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 ! ;)
shocktone
Posts: 74
Joined: Thu 19. Aug 2004, 17:33
Location: Duesseldorf. Germany

Post by shocktone »

Ill translate, when i found the solution ;)
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Post Reply