Eigenes Formular ohne Contentpart "Formular"

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
harald
Posts: 246
Joined: Wed 2. Mar 2005, 16:01

Eigenes Formular ohne Contentpart "Formular"

Post by harald »

Hallo Forum,
ich möchte gerne ein eigenes Formular innerhalb PHPWCMS versenden.
ICH WEISS: Es gibt ein tolles Contentpart dafür. Das nutze ich auch meistens. Jedoch ist mein Formular vom Aufbau her so komplex, dass ich ein HTML-Formular nutzen möchte.
Nur, wie gebe ich es weiter? Über den alten Formmailer oder PHPmailer. Wie binde ich es ein?
Danke für ein paar Hinweise...
Viele Grüße
Harald
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

CP "Externer Content" oder direkt verlinken, oder encoded im CP "html"???

greetz
Last edited by Jensensen on Wed 19. Dec 2007, 22:48, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

Kannst Du es nicht im CP zusammenschrauben, dann in einem Editor umschrauben (bei Beibehaltung der classes, ids, Feldnamen usw) und allem, was der Quellcode aus dem Formular so hergibt und dann in einen html CP pasten?
Müsste doch gehen, oder irre ich mich?
Geht doch auch mit der Suche zB...
Last edited by update on Sat 22. Nov 2008, 13:34, edited 1 time in total.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Also mein phpwcms Mailer sagt dazu immer: HE! LASS DAS ! oder so ähnlich... Habe da schon mal rumgebaut aber wie sehr vieles halbunfertig liegen lassen... :?

Meines hatte javascript .... und das muss man dem Server erklären.. dass das gut ist so ..
harald
Posts: 246
Joined: Wed 2. Mar 2005, 16:01

Post by harald »

Danke für eure Antworten. Habe es jetzt doch mit CP gemacht. Jedoch ist das noch Version 1.28 und lässt sich nicht besonders gut formatieren. Ausserdem ist das Ding so lang... Wenn ich ergänzen möchte, muss ich stundenlag sortieren. Irgendwann trau ich mich ans Update.
Gruss Harald
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

harald wrote:... Wenn ich ergänzen möchte, muss ich stundenlag sortieren...
Ist nicht nötig, wenn Du für das Formular eine --> Vorlage verwendest!
Diese regelt das Aussehen des Formulars, unabhängig von der Reihenfolge der Felder beim Editieren. :wink:

Greetz
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

Verstehe ich das richtig: unten im CP formular pastete ich meine Vorlage rein - mit allen Klingeln und Schellen**, die mir einfallen und da, wo das dann alles erscheinen soll, schiebe ich die Platzhalter aus der Liste rein. Richtig?
Wenn dem so wäre ---> 8)

** = divs, rts, classes...
User avatar
Mr.Flash
Posts: 50
Joined: Thu 3. May 2007, 19:17
Contact:

Post by Mr.Flash »

ganz genau :)
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

claus wrote:...Wenn dem so wäre ---> 8) ...
Ist genau so!

BEISPIEL:

[x]

...den Rest "reintackern", editieren, ergänzen - und gut is - nix sortieren usw. (hab ich anfangs aber auch gemacht und dabei geflucht, bis ich's gerafft hatte)

greetz
Last edited by Jensensen on Fri 19. Sep 2008, 21:11, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Eigenes Formular ohne Contentpart "Formular"

Post by update »

I'm just playing around with Jensensens tableless one and Knuts instructions given in the other thread ( http://forum.phpwcms.org/viewtopic.php? ... a&start=30 ) - this custom template thing is really cool. Possibilities -> freedom! :lol:
just wanted to say thanks!
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: Eigenes Formular ohne Contentpart "Formular"

Post by update »

Testing the form (built with fieldsets...) I realize that it doesn't save the already filled form fields when hitting send while missing some required fields.
This isn't user friendly at all :cry:
The form built as a standard one is behaving different regarding this issue - it is keeping safe the already filled in fields.
I did some testing but it didn't help anything - the fields are completely empty again each time I forget one to fill in. :evil:

Has anybody any clue how to solve this - did I do something terribly wrong or is it a bug or even a (hidden) feature :wink:
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: Eigenes Formular ohne Contentpart "Formular"

Post by update »

From time to time one has to formulate the problem to take some breath and rearrange the whole stuff and himself once again...
It's working now! :D

In case it is of interest here is what went wrong

Code: Select all

<label for="vorname">{LABEL:vorname}</label><input type="text" name="vorname" id="vorname" value="" tabindex="3" />[BR]
This is working and is sending the form too (I wanted to have the tab indexes...)
To enable the fields to remember a previously given input it should be like this

Code: Select all

<label for="vorname">{LABEL:vorname}</label>{vorname}[BR]
Only the tab indexes are gone - next topic!!!

Life is so easy sometimes :oops:
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
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Eigenes Formular ohne Contentpart "Formular"

Post by juergen »

hehe just guessing :

Code: Select all

......

<label for="name">Name<strong>*</strong>value="Himbelhuber"</label>{name}
Did I catch the main bet ? :D
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Eigenes Formular ohne Contentpart "Formular"

Post by update »

No, not with "Himbelhuber" :lol:

These are the facts so far:
when I do it this way

Code: Select all

<label for="vorname">{LABEL:vorname}</label>{vorname}[BR]
it is formatting a nice labelled input field. So far so good...

But when I try to do it with a checkbox (my form has a lot of them) like so

Code: Select all

<label for="checkbox">{LABEL:checkbox}</label>{checkbox}
the output looks like
My label for checkbox [] checkbox
where checkbox isn't the label but the name of the box - this seems to be a bug!
Source code output for this one is

Code: Select all

<label for="checkbox">Einverständnis erklärt!</label><input type="checkbox" name="checkbox" id="checkbox" value="checkbox" /><label for="checkbox">checkbox</label>
You see?
Doing it this way (a checkbox again)

Code: Select all

<label for="fachbetriebsadresse">{LABEL:fachbetriebsadresse}</label><input type="checkbox" name="fachbetriebsadresse" id="fachbetriebsadresse" value="Fachbetriebsadresse" />[BR]
it's again nicely formatted but doesn't remember the checked state anymore

And doing it like so

Code: Select all

{LABEL:checkbox}{checkbox}
lets the checkbox stick to the label unformattable with an extra "checkbox" (no, not the label :evil: )

So I could try with "Wanninger" or "Müller-Schnödenfels" or "Gustav Gans" :lol: :lol: but these checkboxes don't seem to be able to work as intended (otherwise I'll always be prepared to find myself on a kind of a "woodway" either :wink: )
To have a choice by now between the no and the no-thing is rendering myself quite unpleased - "we're not amused" to cite the queen :lol: :lol:
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
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Eigenes Formular ohne Contentpart "Formular"

Post by Jensensen »

[x]
Last edited by Jensensen on Fri 19. Sep 2008, 21:09, edited 2 times in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply