I'm using in my site a form that generated pages with form post fields.
This worked good until i setup a comment system in all my pages. Now when i use my form the system get me error like there are some empty fileds in my form but i guess this error is referred to the comment form that is not set in this kind of page.
My website is a classified website and every users (also guest) can add an ad with photo. So it's important to have a complete form with images uploader.
Yes, that's the point, security... but i really need this in my form...maybe for now i can save the field like a string using the name of the file and store the file with my own function in a folder on the server... :-\
I have a form that stores data in db adding a page. It could be nice to add also a field image with the same behavior like the one in the admin, with maximum image uploaded and option for resize. Can i access to some internal functions for making this?
Ok now it works...but why you put the module in site instead of wire? I think it's not a good thing especially for updating PW i need to remember to keep this folder
I'm trying to make almost the same form but i need the parent page is not the same for all submissions but is choosen by user in the form.
I created a field in my form with the name "category" and populated with some pages i created in admin.
in the php code you wrote at this line:
$p->parent = $pages->get("/form-results/");
i tried to make this:
$p->parent = $input->post->category;
With no luck...
There is a way to obtain this?
It works but obviously i need to create the fields in the db first. I think it's better to wait next updates of PW (i've read about new users management) before making serious modification with handmade code.
Maybe could be nice if the users system will be connected with a customizable registration page, in this way we can create specific fields for users and have a right page for registering.
Thanks. i've checked the demo sample and i agree with this solution, at the first time it was a little bit strange but now i understand the structure of PW.
I need to create profile pages o a website. A profile contains a field named country. When i create a new profile i want to have a select with all the countries i can choose. I saw i can have this linking pages and choosing a page with a select but i cannot create a page for every country. Is there a better solution?
Thanks
The reason is for SEO optimization. It's just a little improvement but i always use this kind of url structure.
If it's not too complicated it could be fine.
Hello,
first i want to say thanks for this great CMS.
Now the question: it's possible to change the url structure for example from /page-name/ to /page-name.html ? And for subpages /main-page/subpage.html
Thanks