Jump to content

David Bopp

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by David Bopp

  1. Because I landed on this thread the other day looking for the right module: You don't need a module to implement a proper tag field. In the current version of PW (3.0), you can choose between many different Input field types for a PageReference, including input fields with autocomplete features.
  2. All those solutions give me back the first URL in the whitelist of hosts (config file). I have two URLs in the whitelist (live domain and test domain) and I am looking for a way not always have to edit multiple URLs in the code when I switch between live and test environment.
  3. Great extension! Very useful for a project of mine, thank you! I have the same problem as saschapi. I save my page. Next I want to leave, I get a browser message (firefox) telling me that I have unsaved data. Google translation from German: "This page asks you to confirm that you want to leave the page - data you have entered will not be saved under certain circumstances."
  4. I realised that the content of the field is cut off after 255 chars. How can I enlarge the amount of chars that processwire processes? EDIT: First problem solved. Problem was the sanitizer. I used $sanitizer->text() instead of $sanitizer->textarea() Second question still open: How can I set the maxlength attribute on an InputFieldTextarea? The following code only worked on InputFieldText: $field = $modules->get("InputfieldText"); $field->attr('maxlength', "80"); // html output: maxlength="80" ... $field = $modules->get("InputfieldTextarea"); $field->attr('maxlength', "254"); // no equivalent html output
  5. Is there a possibility to preselect a radio button list option in the field?
  6. I'd like to change the error message "missing required field" update-safe. According to the config file documentation, I can do that as follows: // file site/config.php $config->InputfieldWrapper = array( 'useDependencies' => true, 'requiredLabel' => 'Valeur requise manquante', ); But this does not work. The only thing that seems to work is to change the error message directly in the file InputfieldWrapper.php Christophe is also talking about this misbehaviour. Is this a bug? Or did I miss something?
×
×
  • Create New...