Page 1 of 1
how to add a field to Guestbook
Posted: 27 May 2015, 00:05
by gregholl
I would like to add the field: "Where are you from?"
Where/how do I do this?
If necessary, I'm NOT using the website address field. Perhaps I can easily just change the label on that one?
Thanks
Re: how to add a field to Guestbook
Posted: 31 May 2015, 23:05
by Jan
Hi, there is no option to add new form field.
To change it from website form, you need to change the language string in ini file - instead of website to your name of the field and you need to change the check for this field (as now the url is controlled)
But this needs to be customized in the code
Jan
Re: how to add a field to Guestbook
Posted: 01 Jun 2015, 09:44
by Mahaan
Hi Jan,
could you tell us in what file the code must be modified?
Regards,
Marcel
Re: how to add a field to Guestbook
Posted: 02 Jun 2015, 21:09
by Seelentraum
Yes, this would be very interesting to me too! It would be very nice, if you'd explain that. Thanks a lot!
Re: how to add a field to Guestbook
Posted: 03 Jun 2015, 15:04
by Jan
Hi, there is no one file to customize, all extensions are written under MVC, so whole mvc needs to be changed (view - the output, controller - to check the field and model to save the field and load the field) - the the database needs to be changed, etc.
Jan
Re: how to add a field to Guestbook
Posted: 03 Jun 2015, 15:42
by Seelentraum
Aaah, I see! Something like that I have apprehended. But thank you anyway!
Well, for MY Problem I have found a workaround. I took the German language package and replaced the "subject" with "age" and "website" with "gender". For me it nearly works. The only thing I would like to change now, is the following: Because I changed the field "website", now it is a link. That link is going into the nothing. That is okay. But it would be nice, if I could delete the associated mark up. Maybe there is a way?
And I'm very sorry for my English!
Tanja
Re: how to add a field to Guestbook
Posted: 10 Jun 2015, 23:02
by Jan
Hi, what do you mean with "associated mark up"?
Jan
Re: how to add a field to Guestbook
Posted: 10 Jun 2015, 23:08
by Seelentraum
Hey Jan,
I mean the HTML-markup for the link of the fiel "Website".
Tanja
Re: how to add a field to Guestbook
Posted: 12 Jun 2015, 14:47
by Jan
Hi, still not understand, can you paste a screenshot?