Custom content block - How to create and position?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

nicht hauen - aber die 2 nicht sichtbaren sind aber auf Sichtbar gesetzt?
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Ist richtig so.

Hast du auch Inhalt eingefügt? Sonst wird ja logischerweise nix angezeigt.
Also nimm irgendeinen CP und fülle die drei BOX1-3 mal mit Inhalt, dann klappt es auch.

Das ist übrigens genau das, was O.G. sagte, sonst hättest du permanent eine leere Formatierung.
wenn du so etwas braucht, dann wird das direkt im Hauptteil der Vorlage gemacht.

Ist eben eine Art "IF" bzw. "WENN" Inhalt, dann zeige ich an.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Post by Marceau »

Hehe, ja alle drei sind sichtbar und alle drei haben auch einen CP
WYSIWYG: hab da zu testzwecken einfach mal nen Text eingegeben...

Aber naja es wird mir nur eine Box angezeigt.
Nun habe ich folgendes festgestellt:

Ich habe auf meiner Site den {NEWS} RT, dort werden alle 3 Artikel auch angezeigt. Klicke ich jetzt auf jenen Link (Box1, Box2 oder 3), dann werden mir jeweils immer nur die eine Box angezeigt, aber nicht alle drei zusammen. Guckt es euch selber mal an, auf der linken Seite:

http://www.marceau-unlimited.com/phpwcms
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

ich glaube Du mißverstehst den Zusammenhang zwischen "Artikel" und Content Part!!! Mach Dich da noch mal richtig schlau.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Marceau
Posts: 201
Joined: Sun 23. Apr 2006, 01:52
Location: Leipzig, Germany
Contact:

Post by Marceau »

Is WYSIWYG HTML kein Contentpart??
There are 10 types of people in the world: Those who understand binary and those who don't
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi,

schaue mal auf diese Seite:

Code: Select all

www .mz.ja-nek .de/test2_8_2.phtml
Hier gibt es vier Artikel, die jeweils mehrere CP beinhalten.
IM ersten Artikel (mehr... -> bedienen) sind 3 CPs in drei verschiedenen User-Blöcken untergebracht. (Heißen bei mir CONTENTPART2-4).

Ich kann diese Blöcke in der Vorlage positionieren wo ich möchte, es funktioniert.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
danielreeders
Posts: 14
Joined: Wed 30. May 2007, 09:25

Post by danielreeders »

jsw_nz wrote:CUSTOM_BLOCK creation....
I was able to get this to work, but not on first try.....

Thinking it might be the order in which each is created:
I created a new layout with custom blocks
I created a template applying layout and saving immediately (not filling in any info).
Then completed template.

The article then properly showed custom blocks....
my original attempts did not work
That was my experience too. There is a bug somewhere that means custom blocks only show up in the "display:" drop down list occasionally.

When I created them, I added them to pagelayout, opened the template, closed the template, went to the article, they didn't appear. Logged out and back in again, they appeared. Logged back in the following morning, now, they don't appear.

[EDIT]I should mention I'm using the custom pagelayout too, ie. I'm putting all the HTML including {CONTENT} in the MAIN block of the template.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

after creating new blocks - open template which should use it once -> and save template!

Without additional replacement tag {MYBLOCK} in template nothing will be shown!

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply