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
how to add a field to Guestbook
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to add a field to Guestbook
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
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
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 01 Jun 2015, 09:40
Re: how to add a field to Guestbook
Hi Jan,
could you tell us in what file the code must be modified?
Regards,
Marcel
could you tell us in what file the code must be modified?
Regards,
Marcel
-
- Phoca Newbie
- Posts: 3
- Joined: 02 Jun 2015, 21:04
Re: how to add a field to Guestbook
Yes, this would be very interesting to me too! It would be very nice, if you'd explain that. Thanks a lot!
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to add a field to Guestbook
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 02 Jun 2015, 21:04
Re: how to add a field to Guestbook
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to add a field to Guestbook
Hi, what do you mean with "associated mark up"?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 02 Jun 2015, 21:04
Re: how to add a field to Guestbook
Hey Jan,
I mean the HTML-markup for the link of the fiel "Website".
Tanja
I mean the HTML-markup for the link of the fiel "Website".
Tanja
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: how to add a field to Guestbook
Hi, still not understand, can you paste a screenshot?
If you find Phoca extensions useful, please support the project