Edit form block

Permalink
Hi,

I'm trying to edit the code of the form block.

The standard code places the title WITHIN the form, which is not allowed. I want to move the title OUT of the form, so that my site passes the W3C Validation.

Anyway, I've looked at every single file in the concrete/form directory, and I can't find anything that displays the title (h3)..

Does somebody know where I can find this?

Thanks,

Tom

View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
w.r.t validation, could there be some confusion between the title tag and heading tags?
Tommiiee replied on at Permalink Reply
I'm not quite sure what you're trying to say, but the thing I want to edit is the FORM TITLE (which is displayed like --> <h3>Form title</h3>)
JohntheFish replied on at Permalink Reply
JohntheFish
OK, now I am clear what the issue is, though am surprised to learn that having a well formed h3 tag within a form is a W3 validation issue. You tend to get headings within forms all over the web. Purists even reject the fieldset tag because the same could be achieved with a heading and some css.
wagdi replied on at Permalink Reply
wagdi
Tommiiee replied on at Permalink Reply
Hi,

Thank you for trying to help. I've reviewed your links, but I couldn't find the location of the <h3> tags there too :(
Tommiiee replied on at Permalink Reply
Anyone?
Mainio replied on at Permalink Reply
Mainio
I'm not sure where you get the h3-tag, are you e.g. using a custom template for the form block? Or are you using some other block than the core form block?

However, the core form block's view template can be found from:
/concrete/blocks/form/view.php


Custom templates (if any written for your sites):
/blocks/form/templates/


And the logic that writes the actual form elements etc. can be found from:
/concrete/blocks/form/controller.php


Look at the bottom of the file for method MiniSurvey::loadSurvey().

Br,
Antti / Mainio
Tommiiee replied on at Permalink Reply
I've checked both files, still can't find the <h3> & </h3>

It's simple:

I'm using the core block.

When creating it, it asks for a Form Title. My Form Title is "Search".

When I publish the block (form), the form title is displayed in the H3-heading. But since the H3-heading should be OUTSIDE of the <form>, NOT inside, I want to change it.

But I can't find where the Form Title is outputted -.-