Jump to content

adrianromega

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by adrianromega

  1. Thank you for clarifying this. Good luck with your next modules.
  2. Thank you for this, but for now I do not see in what situation would be useful to have images with different sizes but the same no of pixels (area)... what was your motivation for this module ?
  3. Really useful module I consider to be this one, I have done something similar on one website but was not as elegant as this one. Thank you for your work.
  4. Hello It would like to play with this module, is there any link available to download and try it on? Thanks.
  5. Hello I am on windows 10 and I am having the same problem like Mike Rockett, [Symfony\Component\Filesystem\Exception\IOException] Cannot rename ...
  6. no problem, thank you for all your work.
  7. it seems to be fine now, thank you. I really like your module and all the possibilities it offers.
  8. thanks for your reply. I have tried also the new version with support for InputfieldWrapper. Based on your example, wiretabs-example.php, I have tried to use 2 InputfieldFieldsets inside first wiretab (InputfieldWrapper inside InputfieldWrapper), the display of fields is fine, but it is not saving values of fields properly...depends on the position of the nested InputfieldWrappers, some values are saved, some are not. With only one InputfieldWrapper inside another InputfieldWrapper, all is fine, but with more nested InputfieldWrappers, something is wrong. for the config below for example, is not saving the field values form the first InputfieldFieldset. <?php /** * since you can only return 1 array to the module, you have to wrap * the tabs in an inputfield wrapper */ $inputfields = new InputfieldWrapper(); //--------------------------------------------------- $general = [ [ 'name' => 'site_name', 'label' => __('Site Name'), 'type' => 'InputfieldText', 'value' => '' ], [ 'name' => 'email_address', 'label' => __('E-mail'), 'type' => 'InputfieldEmail', 'value' => '' ], [ 'name' => 'telephone', 'label' => __('Telephone'), 'type' => 'InputfieldText', 'value' => '' ], [ 'name' => 'fax', 'label' => __('Fax'), 'type' => 'InputfieldText', 'value' => '' ], ]; $general2 = [ [ 'name' => 'set_1', 'label' => __('Setting 1'), 'type' => 'InputfieldText', 'value' => '' ], [ 'name' => 'set_2', 'label' => __('Setting 2'), 'type' => 'InputfieldText', 'value' => '' ] ]; $general3 = [ [ 'name' => 'set_3', 'label' => __('Setting 3'), 'type' => 'InputfieldText', 'value' => '' ], [ 'name' => 'set_4', 'label' => __('Setting 4'), 'type' => 'InputfieldText', 'value' => '' ] ]; $tab = new InputfieldWrapper(); $tab->attr('title', 'General'); $tab->attr('class', 'WireTab'); $advanced = new InputfieldFieldset(); $advanced->label = __('Advanced Settings'); $advanced->description = __('These settings are not required'); $advanced->columnWidth = 50; $advanced->add($general2); $tab->add($advanced); $advanced = new InputfieldFieldset(); $advanced->label = __('Advanced Settings'); $advanced->description = __('These settings are not required'); $advanced->columnWidth = 50; $advanced->add($general3); $tab->add($advanced); $tab->add($general); $inputfields->append($tab); //--------------------------------------------------- $location = [ [ 'name' => 'address', 'label' => __('Address'), 'type' => 'InputfieldText', 'required' => true, 'value' => '' ], [ 'name' => 'postal_code', 'label' => __('Postal code'), 'type' => 'InputfieldText', 'required' => true, 'value' => '', 'columnWidth' => 33 ], [ 'name' => 'city', 'label' => __('City'), 'type' => 'InputfieldText', 'required' => true, 'value' => '', 'columnWidth' => 67 ], ]; $tab = new InputfieldWrapper(); $tab->attr('title', 'Location'); $tab->attr('class', 'WireTab'); $tab->add($location); $inputfields->append($tab); //--------------------------------------------------- return $inputfields;
  9. I found out the solution, there was another module to install, Inputfield Selectize Multiple . thanks again for this module.
  10. Nice module, just tried it and I do not know how to make it work for multiple page selection... In a field page config, in Input Field Type. Inputfield Selectize appears only for Single page selection... I am using the latest processwire 3. Thank you.
  11. Thanks for info, now is all clear. Using your module you can define all kind of fields, except for InputfieldImage and InputfieldFile.... what is your suggestion to have in "settings" fields for images or files (for logoes, backgound image, etc) ? I hope you understand what I mean....
  12. Hello Macrura. Interesting module, but how are you suppose to access all the defined fields in the front-end ? Thank you.
  13. yes, it is working as it should now. thank you for the quick fix and for your devotion for this superb project called Processwire,
  14. Hi Thanks for this nice module, you have created so far very useful modules, thank you again for all your contributions to Processwire. One thing I noticed, this module does not work (modules not displayed) for modules who are not implementing the ConfigurableModule interfacce but are using the new module configuration described in here. https://processwire.com/blog/posts/new-module-configuration-options/
  15. Hello Interesting module, lots of possibilities, thank you for this. Just to let you know, there is a problem in file InputfieldHandsontable.module, line <?= $this->getCode() ?> should be inside jquery function scope or it won't work (hot is undefined).
  16. Hi BitPoet and thank you for your reply. Your suggestion was good, I have found the problem.... first of all, it was because of multilanguage option and second, I did not want to load the entire counter page and I was requesting the page path using $page->getPath(id), which it seems it does not works as I imagined in multilanguage sites, it does not get automatically the url for a particular language....
  17. Hello I am trying to do a counter for page views that works also when a page has template cache applied, so I am using Ajax to request a certain page (sending also as GET parameter id with the id of the page for which I increment the field views). I have used this method before, it worked perfectly, but now I cannot make it work... I am getting these problems... 1. The counter page that is accessed through ajax gets a 301 Moved Permanently status, not 200 OK status. 2. It does not get any GET parameters ($input->get->param nor $_GET)... 3. if I access the counter page directly in the browser, it works, I can access the $input->get or $_GET, my "views" field is being incremented, only when accessed with ajax it does not work... I am using PW 3.0.36. Please advise,
  18. Hello. I have a very strange problem in regards to this topic. I have added an image field to language template (simple image, named one_image), formatted to be Single item, attached to each language 1 image (flag) and in the front end I am accessing this field in a loop like this: foreach($languages as $language) { $url = $page->localUrl($language); $hreflang = $homepage->getLanguageValue($language, 'name'); echo "<a hreflang='$hreflang' href='$url'>$language->title <img src='".$language->one_image->url."' /></a>"; } The strange part is that is that is not showing this flag image for the default language (first language, ro) when I select another language (en, fr)... The images are uploaded, I have checked in the DB and admin area. In the front end, for the default language, it is showing only the folder path the image, not outputting the actual file name, for example "/site/assets/files/1010/" . I have attached and detached 2 times this field from the language template, the results are the same. I have also tried different formatting for this image field, nothing works, same results... I am using processwire 3.0.36. I have also attached 2 printscreens. Any advice ?
  19. Thank you for the module, it helped me understand how to create an additional button to add extra actions...
  20. Hello Adrian I wanted to try your module, but it seams not to be working. In settings I have left everything blank and unchecked. I am using processwire 2,5,3, $config->advanced = true and "Display 'name' field in content tab?" is enable. Even so, the page name is not changing when I am updating the title. Please help. Thank you.
  21. Hello and thanks for this great module. It seams to be working fine except that when is activated for a template, if that template contains image fields, after dragging and dropping the image, this module breaks the upload response and immediate image that was uploaded is not shown (instead is returned the return form inject function of this module). The version control is activated only for body field... Just wanted to mention this. Please tell me is I am doing something wrong. Thank you.
×
×
  • Create New...