Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 11:53:18 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149635 Posts in 21099 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: FORM Module <fieldset> implemetation  (Read 1285 times)
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« on: June 06, 2008, 07:19:12 PM »

Hello,
is there any possibility to avoid the tables in the Form Module and use fieldsets instead?

Best regards,
Stefek
« Last Edit: June 06, 2008, 07:41:17 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: June 06, 2008, 07:34:55 PM »

Hi Stefek,

I don't see a change for this without rewriting some of the modules core-files.
Nevertheless, even if you use fieldsets in a form you have to format the output of the fields and their labels in any way - the nearest (easiest) for this is to use tables.

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #2 on: June 06, 2008, 07:48:37 PM »

I don't see a change for this without rewriting some of the modules core-files.
Yes, I can see that.
I found the way out. It's a kind of "advanced solution" and you will need more time, but sometimes the visual result is very important.
Quote
Nevertheless, even if you use fieldsets in a form you have to format the output of the fields and their labels in any way - the nearest (easiest) for this is to use tables.
Yess thats right, but you can control the output easier.
But I can see the problems by reworking such a module.

In fact tabless ain`t best in order to generate forms - but in this case I can agree, that it is more simple.

Thanks Bernd.
Best regards,
Stefek


// off topic
By the way, your toogleMe Module is running like crazy  grin
I will publish a new site in the next days whre I used it. Thanks again!

« Last Edit: September 04, 2008, 10:23:06 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
BerndJM

Offline Offline

Posts: 1764



« Reply #3 on: June 06, 2008, 08:01:05 PM »

in addition:
you must remember the final form is generated in a loop,
for the use of fieldsets one have to do seperate loops for every fieldset and a master loop for the fieldsets themself, in addition there is a need for handling (moving/ordering) the fieldsets also the field to fielset relation, the database-table structure needs several changes ...

I think this would be nearly a new written modul wink
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #4 on: June 06, 2008, 08:12:03 PM »

You're right
The tables are good enough for a simple form...

... But I'm still working on a way to publish fieldsets without rewriting the module.

BTW:

The Ajax Handling would be great for the repositioning of the fields.
The step-by-step reordering really gives me pain in the a**  cheesy

Best Regards,
Stefek
« Last Edit: September 04, 2008, 10:25:55 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #5 on: July 11, 2008, 11:36:27 AM »

Hello,
is there any possibility to avoid the tables in the Form Module and use fieldsets instead?

Best regards,
Stefek
All right,
after some try & error I did it:
http://bowling-star-hallesaale.de/bowling/kontakt.php

It's not really good for fieldset, bacause you can use a fieldset for one item at once.
But in small forms I like the look more than a table.

Best regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
diodak

Offline Offline

Posts: 85


« Reply #6 on: July 11, 2008, 12:08:16 PM »

Well done Stefek.
BTW, smth wrong with your footer in Opera.
Logged

Buchsbaum
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #7 on: July 11, 2008, 12:47:18 PM »

Well done Stefek.
BTW, smth wrong with your footer in Opera.

Thanks.
BerndJM told me that the behaviour also exists in FF3.
Is that right?

/// Problem fixed.


Best,
Stefek
« Last Edit: September 04, 2008, 10:26:52 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
diodak

Offline Offline

Posts: 85


« Reply #8 on: July 11, 2008, 12:53:21 PM »

I`ve seen that at form page, looks like you should install opera and ff for testing.
Logged

Buchsbaum
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #9 on: July 11, 2008, 12:57:45 PM »

@deschek

I will do  wink

Thank you!
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
vark

Offline Offline

Posts: 3


« Reply #10 on: August 31, 2008, 05:58:41 AM »

Great idea, Stefek. 

Could you please post all the changes that you made to allowed you to use <fieldset> please?

Thanks.
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4755



« Reply #11 on: September 04, 2008, 05:06:01 PM »

Hello Vark!

Sorry that I led you standing for so long.

If you didn't solve your question for now by yourself:
I'm currently working on a form which uses fieldsets and is 100% tableless.

Once I'm ready with this, I will provide a small tutorial on how to do this.

(The tutorial will show HOW TO GROUP Fiedsets with a form module. No core-file must be touched.)


Best Regards,
Stefek
« Last Edit: September 04, 2008, 10:28:22 PM by Stefek » Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!