Recently Browsing 0 members
No registered users viewing this page.
By Peter Knight
A minor gripe but one that trips me up every time.
When there's naming error on a field, ALL the field values are erased and I have to setup everything again. IE name, type, label and descriptions details and sometimes notes.
Would be really helpful if ProcessWire didn't zap all the values but just cleared the illegal field name.
I have been following @bernhard's great tutorial on creating a Dashboard and everything has very easy to understand so far. However, I need to add a select field that a template is using (so users can create a new page from the dashboard), but I am really at a complete lost on how to achieve this. I have been googling, but can't really find anything on the matter.
$field = $this->modules->get('InputfieldSelect'); $field->name = "Select Manufacturer"; $field->findPagesSelector = "template=basic-page"; //not needed for select field $field->labelFieldName = "title"; $field->name = "Manufacturer Select"; $field->columnWidth = 34; $fieldset->add($field); I have the above code, which was originally an InputfieldPage, but since this is an options field, I have changed it. Has anyone actually gotten a select from a template (and its' values) in a module?
Hello fellow Process wire Developers!
Today i have encountered an issue using the repeater where I can't find out how to solve it therefore i am asking for help.
To be specific, I am trying to get the "file" field working properly in the repeater but i couldn't find a way on how to assign a property of a field that is being used by the repeater.
download_pdf is the name of the field that i want to access properties from.
What i wished i could do was something like $download->download_pdf.size or $download->download_pdf->name, something like that but obviously these didn't work
Hope there is a solution and thanks in advance!
I recently have received a client who has various page layouts. I wanted to give them the ability to simply add their HTML into a body field with CKEditor to allow HTML customization.
However, the client isn't very familiar with HTML.
This has left me to build a template that has multiple of the similar field types.
The thing is, I cannot use the repeater since I cannot repeat lets say an image for repeated item 1 and only body field for repeater item 2.
Therefore, I have to literally add 15 fields for them to totally be able to edit the page without issues.
What are your thoughts on this approach?
Also, I have to name the template according to what it contains, so I was thinking of using numbers instead of words.
Reason being, numbers can describe the amount of title fields, body fields and images.
Therefore something like, 3-3-2.php or three-three-two.php
I have never run into a situation where the client needed so many fields. I was always able to get around it with repeaters etc.