eZ Community » Forums » General » New form is missing decoration
expandshrink

New form is missing decoration

New form is missing decoration

Friday 16 May 2014 3:18:22 am - 3 replies

I was feeling brave so once again, tried to make a new "form" class in Ezpublish 4.3

1. I created a new class by copying the existing feedback form class to a new name (bug_form2)

2. I copied and renamed collect.ini to collect.ini.append.php from /settings/ to /settings/override/ and /settings/siteaccess/site_name/  (I figured at least one of them would work - wrong)

3. Edited the above files as per the example in the tutorial

4. I didn't put the details in the menu.ini's as I did not want it visible in any menus.

5. Put an override.ini.append.php file in /settigns/siteaccess/site_name/ and edited it as per instruction.

6. I copied the feedback_form.tpl to the new form (bug_form2.tpl) in:/extension/ezwebin/design/ezwebin/override/templates/full/

The instructions at this point become confusing and say that After the user clicks the Send button, eZ Publish looks for the corresponding template in the /content/collectedinfo/design directory.    

I have no such design directory in my installs and can only guess at the full path.

I CAN find a /content/collectedinfo/

I have given up at this point, because my new form does not have a "send" button, so to do the next bit seems a bit pointless.Does anyone have an idea on what might be stopping my form from having "decoration".

It has none of the form's attribute "names"  like Subject, Sender name, email, message etc, and no button, but the actual boxes for the form's content are visible !

Modified on Friday 16 May 2014 3:21:31 am by cousin mosquito

Sunday 18 May 2014 1:01:49 pm

You might want to check var/log/error.log and turn on template debugging.

Sunday 18 May 2014 10:59:43 pm

Quote from Betsy Gamrat :

You might want to check var/log/error.log and turn on template debugging.

Hi Betsy, thanks for your help. I did turn on template debugging, but in my new form, and even in the old (correctly working) form, the appropriate templates did not appear to show, as in, I could not see their names. I could see the names of many other templates.

The only error I got in var/log/error.log was the following, which didn't mean much to me.
[ May 18 2014 20:43:17 ] [131.203.7.218] error/view.php:

I wondered if, because I am storing my design templates in an extension based set-up, that the system couldn't find them? but then I also have a copy here:
ezpublish-4.3.0/extension/ezwebin/design/ezwebin/override/templates/full/

... and I know it reads this dir, because if I hack the original form (feedback_form.tpl) here, the edits show up in that form. 

Thursday 19 March 2015 4:10:25 am

Quote from cousin mosquito :
Quote from Betsy Gamrat :

You might want to check var/log/error.log and turn on template debugging.

Hi Betsy, thanks for your help. I did turn on template debugging, but in my new form, and even in the old (correctly working) form, the appropriate templates did not appear to show, as in, I could not see their names. I could see the names of many other templates.

The only error I got in var/log/error.log was the following, which didn't mean much to me.
[ May 18 2014 20:43:17 ] [131.203.7.218] error/view.php:

I wondered if, because I am storing my design templates in an extension based set-up, that the system couldn't find them? but then I also have a copy here:
ezpublish-4.3.0/extension/ezwebin/design/ezwebin/override/templates/full/

... and I know it reads this dir, because if I hack the original form (feedback_form.tpl) here, the edits show up in that form. 

Finally, Ive solved it. The form does not take on its decoration until it has been republished. 

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from