• Content count

  • Joined

  • Last visited

Everything posted by vmo

  1. HI, I am trying to use the Inputfield Chosen Select Multiple in a page reference field that is used in a repeater and when I add a new items to the repeater the multiple select is not rendered, it only shows a multiple select box. I think that the javascript code that renders the field is not triggered after the Ajax load because when turning off the Ajax functionality. Is there a way to make it possible to render the field in a repeater? Thank you
  2. This solution did not worked, I tried the solution from @Robin S and worked, many thanks.
  3. Hi, many thanks for the code, this works like a charm, saved the day/week
  4. Hi, I having a problem with image field inside a repeater field and with extra image fields and user profiles and the AdminOnSteroids. With the superuser profile there is no problem, but the user has other profile then superuser the image in the repeater field does not show the image after upload and do not save the image and the extra image fields does not show correctly (each language in a row) and the internal link selector does not work and does not show any error. After a week trying to understand why the non superuser users where not able to upload the images and creating new fields to verify if the originals ones where with some kind of problem I come to the conclusion that the problem where not the fields on them selfs but with some module that was causing this behavior. After trying to disable the module a tweak the AdminOnSteroids configurations the only thing that work for me was to uninstall the module and the users can upload the image the the extra image fields show correctly. Its is a great module and I hope you can resolve this issue. Thank you
  5. Hi, I Installed the "AutoExportTemplatesAndFields" and when creating repeater fields the module was affecting the fields editing. I had two repeater fields: "repeater1" and "repeater2", the "repeater1" should repeat the "images1" field and the "repeater2" should repeat the "images2", the problem was each time I edited one of them and change the repeated field the other assumed that modification. Example: editing the "repeater1" and change the field to "image3" the "repeater2" instead of having the "image2" has the field to be repeated assumed the field "image3". After uninstall the "AutoExportTemplatesAndFields" module I could edit each repeater and assign different fields to them. I hope you can find the issue it is a great module to use. Thank you.
  6. Hi, I am creating a template that have two repeater fields: - One for "slideshows" images, other for "highlights" images The field "slideshows" has a "slideshow_images" field (image type) to be repeated and the fields "highlights" should have the field "highlights_images" field (image type) to be repeated. What is happening is when I add the the "slideshow_images" to the field "slideshows" the field "slideshow_images" is also added to the field "highlights" and if I had the field "highlights_images" to the "highlights" field the "slideshow_images" in the field "slideshows" is replaced by the "highlights_images" field. I already deleted all fields and create from scratch and the result is always the same. I am using the Processwire 3.0.39. Can anyone explain what is happening? Thank you
  7. Hi, I found the problem. After uninstall the module "AutoExportTemplatesAndFields" the problem was solved the repeater fields now have different fields and when I change the field in one does not affect the other repeater fields. Thank you.
  8. HI, I want to upgrade the processwire from 2.7.3 to 3.0 but I don't know it the installed modules work in the new version. Or if it is better to continue using the 2.7.3 version and wait for the modules upgrades? Thank you
  9. Yes I think that is the best. Make a copy and upgrade it in a test environment. I think everything is going to be smooth but is always the best asking if there was any issue on that. Many thanks
  10. My concern is to upgrade and the site go down or begining to get errors and maybe do not possible to recover, maybe is best to make a copy of the site and to upgrade.
  11. Hi, I have a possible project where the users would register and login to create a page or pages, upload images and the user only be able to access and edit his own page(s). What is the best way todo this, Create all the functionalities using the frontend or it is possible to use the backend? Is there another way? In the front end is possible to render the fields as they are used in the backend when editing a page? Thank you
  12. Hi, I have a template "Project" and in this template accepts url segments. The site is a multi-language site, it as PT and EN languages. The possible segments are configured in a Class, at the "_func.php", that has a method that returns all the segments info already translated width "_x('string','context')", and with that info a Project menu is created. The translation was made in the admin translating the "_func.php" for EN. For example _x("apresentacoes",'Segments') when in PT returns "apresentacoes" and _x("apresentacoes",'Segments') when in EN returns "presentations". The site has a language switcher and I want to concatenate the current segment to each language switcher when creating the language switcher: PT => projecto/nome-do-projeto/apresentacoes EN => project/name-of-project/presentations And I don't know how to get the translation from a current segment like "apresentacoes" when in PT to add it to the EN switcher or the translation for "presentations" when in EN to add it to PT switcher. How can I get a translation from string that isn't associated to a page or other PW object? Thank you very much
  13. Hi, I created the file _strings.php and translated it and noting happened. I used the _x() and tried the __() but with the same result, I think I am doing something wrong, I need todo more tests. Thank you
  14. Hi tpr, there are only two segments translated the other two possible segments are the same in PT and EN. What is happening is if there is no translation it returns the same string. I implemented the code and I don't get the translation when changing the current user language it returns the same string, it changes the current language but does not find the translation. The translation occurs in the _main.php and the translated string are translated in the _func.php maybe this is a issue, maybe when using the translation function _x() or __() it only evaluates the translation strings associate with that file and not all the translated strings in all translated files. I found this post https://processwire.com/talk/topic/10447-using-translatable-strings-across-template-files/ about this. Thank you
  15. Hi, this is the code I am using, is the standard code of the Languages Profile. <?php foreach ( $languages as $language ) { $_cst = ''; if (! $page->viewable ( $language )) continue; // is page viewable in this language? if ($language->id == $user->language->id) { echo '<li class="current">'; $_cst = $current_segment; // [1] Segment in the current language } else { echo '<li>'; $_cst = _x($current_segment,'Segment'); // [2] Translated segment } $url = $page->localUrl ( $language ); $_url = $url; if($current_segment) $_url = $_url.$_cst; $hreflang = $homepage->getLanguageValue ( $language, 'name' ); echo '<a class="link-language" hreflang="'.$hreflang.'" href="'.$_url.'">'.$language->title.'</a>'; echo "</li>"; } ?> The question is when in PT I need to translate the segment "apresentacoes" to EN and only using the _x() it not return the translationlue va, I think I need to load in some way the EN language and get the "apresentacoes" translation value. Thank you.