Do you see what I see?

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Old Boy
Posts: 1203
Joined: Fri 23. Nov 2012, 13:52

Re: Do you see what I see?

Post by Old Boy »

Du hast recht... der CP Tabs ist natürlich wunderbar!
Und ICH liebe und verwende ihn gerne, selbst wenn es mal "von Hinten durch die Brust ins Auge" gehen muss :)

Vielleicht habe ich mich ja nur in die Richtung Bilder spezial drängen lassen, weil photojo überwiegend Fotos präsentiert ?

Und der von update vorgeschlagene Lösungsansatz ist aus eigener Erfahrung sehr "fummelig" in der Verwendung, kostet viel Nerven ... und wäre deshalb immer meine 2. Wahl!
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Do you see what I see?

Post by Oliver Georgi »

Mit Tabs geht es um Längen einfacher, dafür ist der da. Es gibt nun wirklich tausende Beispiele im Netz, wenn man es nicht hinbekommt, die Bootstrap-Lösung aufzubereiten. Ich persönlich halte die dort realisierte Trennung von Tab-Kopf mit Contentcontainern in HTML für unglücklich, aber mit einer zusätzlichen each()-Schleife hat man das auch erledigt.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
photojo
Posts: 713
Joined: Wed 15. Nov 2006, 20:02
Location: Regensburg, Germany
Contact:

Re: Do you see what I see?

Post by photojo »

Könntest du evtl. mit einem klitzekleinen (!) Häpchen noch weiterhelfen? Geht es auch ohne zusätzliches JS für den CP Tab. (Das Bootstrap-JS ist dabei.) Hardgecoded im CP HTML gehts ja.
Im dem Template für den CP Tabs gibt es ja "nur" zwei Bereiche. Man bräuchte aber, wenn ich es richtig verstehe, ja noch einen dritten Abschnitt um die eigentliche Inhalte der Tabs zu erhalten, oder?
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Do you see what I see?

Post by Oliver Georgi »

Ist doch alles ganz einfach. Es geht nicht ohne zusätzliche JavaScript bzw. alternativ PHP. PHP ist aber eben nicht so schön. Für Suchmaschinen ist es so am besten, der Navblock ist an sich nicht sinnvoll im Inhalt, da ohne semantischen Nutzen.
https://github.com/slackero/phpwcms/blo ... pTabs.tmpl
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
photojo
Posts: 713
Joined: Wed 15. Nov 2006, 20:02
Location: Regensburg, Germany
Contact:

Re: Do you see what I see?

Post by photojo »

Wahnsinn!
Vielen Dank!
Ich bin begeistert!
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Do you see what I see?

Post by update »

photojo wrote:Wahnsinn!
Vielen Dank!
Ich bin begeistert!
Ich auch! :)
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.
photojo
Posts: 713
Joined: Wed 15. Nov 2006, 20:02
Location: Regensburg, Germany
Contact:

Re: Do you see what I see?

Post by photojo »

update wrote: Ich auch! :)
Schön!
Old Boy
Posts: 1203
Joined: Fri 23. Nov 2012, 13:52

Re: Do you see what I see?

Post by Old Boy »

Oliver Georgi wrote:Ist doch alles ganz einfach.
...
Na ja, wenn man's "kann"!

Klappt aber (natürlich) wunderbar ... und (natürlich) bin ich ebenfalls begeistert, sehr sogar :D
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Do you see what I see?

Post by update »

Kann ich auch eine Auswahlmöglichkeit für ein Bild integrieren, und wenn ja, wie?
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.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Do you see what I see?

Post by Oliver Georgi »

update wrote:Kann ich auch eine Auswahlmöglichkeit für ein Bild integrieren, und wenn ja, wie?
Was meinst Du?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Do you see what I see?

Post by update »

zB beim CP WYSIWYG:
'fieldgroup1' => array(
'legend' => 'Field group name 2',
'template' => 'bne-umweltschulen.tmpl', // bind the fieldgroup to a specific template, or default
'fields' => array(
// [WYSIWYG_STRING1]{WYSIWYG_STRING1}[/WYSIWYG_STRING1]
'string1' => array(
'legend' => 'field 1',
'type' => 'str',
'render' => 'html',
'maxlength' => 100,
'placeholder' => ''
Gibt's da auch was für die Auswahl eines Bildes?

Oder anders gesagt: Ich würde gerne für die Dateneingabe eine kleine BE-Vorlage machen, wo Daten eingegeben werden können und Texte und zB links oben ein Bild.
Beispiel:
Attachments
IMG.jpg
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.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Do you see what I see?

Post by Oliver Georgi »

wie wärs mit CP Text mit Bild oder auch CP Images?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Do you see what I see?

Post by update »

OK ;)
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.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Do you see what I see?

Post by update »

ich wollte halt im BE die verbindlichen Eingabefelder haben, damit es zu keinen Falsch- oder Nichteingaben kommt...
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.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Do you see what I see?

Post by update »

Oliver Georgi wrote:wie wärs mit CP Text mit Bild oder auch CP Images?
gibt es da auch die Möglichkeit, in der conf.template_default.inc.php was zu definieren?
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.
Post Reply