Jump to content

doolak

Members
  • Posts

    300
  • Joined

  • Last visited

Everything posted by doolak

  1. Yes, if there would be an option to choose one the existing images. This would be very useful e.g. for an image gallery. I want to make it possible to select one of the existing images as the gallery thumbnail. Fot this selection a WYSIWYG field will be a bit "oversized"...
  2. I found the information I was asking for: http://processwire.com/talk/topic/2287-image-size-configuration-questions/?p=22535 Maybe it would be fine to have all available options somewhere available at one place - the thread above would be a nice place to collect them ;-)
  3. What is the current status of the availabe options for resizing an image? Can I find some information about this somewhere? I usually use e.g.: $detail = $project->project_image->size(800, 600, array('upscaling' => false, 'cropping' => true)); $thumb = $project->project_image->size(250, 175, array('upscaling' => false, 'cropping' => true)); Is there any option now available to set cropping to center or top? Edit: Ahh, forgot to mention: HAPPY EASTERN !!! ;-)
  4. That's exactly what I was looking for - thank you, Soma!
  5. I am using the Form Builder - the form is embedded via iFrame so including the script in the template or as hook after page::render would not work. That's why I would like to change the module itself - but this would be nice with a hook, not by changing the modules files.
  6. Hi Ryan, the problem is that I want to use the localized datetime field in a form, so I have to get the output on the frontend side. And, as it's embedded via iFrame I thought it may be the best possibility to hook directly into the module itself - is this possible?
  7. Yes, that's were I got the code above ;-) I am just looking for a possibility to embed both codes into the Datetime module without changing it - so what I need is a hint how I could do a hook into the module ...
  8. Hi there, I need to show the Date/Timepicker in German, so I am using the jQuery UI/Datepicker/Localization like below: $.datepicker.regional['de'] = {clearText: 'löschen', clearStatus: 'aktuelles Datum löschen', closeText: 'schließen', closeStatus: 'ohne Änderungen schließen', prevText: '<zurück', prevStatus: 'letzten Monat zeigen', nextText: 'Vor>', nextStatus: 'nächsten Monat zeigen', currentText: 'heute', currentStatus: '', monthNames: ['Januar','Februar','März','April','Mai','Juni', 'Juli','August','September','Oktober','November','Dezember'], monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', 'Jul','Aug','Sep','Okt','Nov','Dez'], monthStatus: 'anderen Monat anzeigen', yearStatus: 'anderes Jahr anzeigen', weekHeader: 'Wo', weekStatus: 'Woche des Monats', dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], dayStatus: 'Setze DD als ersten Wochentag', dateStatus: 'Wähle D, M d', dateFormat: 'dd.mm.yy', firstDay: 1, initStatus: 'Wähle ein Datum', isRTL: false}; $.datepicker.setDefaults($.datepicker.regional['de']); This works fine when it's added into the InputfieldDatetime.js - but just for the date - for the time (which uses the Timepicker addon) one should be able to use this code: $.timepicker.regional['de'] = { timeOnlyTitle: 'Zeit wählen', timeText: 'Zeit', hourText: 'Stunde', minuteText: 'Minute', currentText: 'Jetzt', closeText: 'Schliessen', timeFormat: 'HH:mm', amNames: ['AM', 'A'], pmNames: ['PM', 'P'], }; $.timepicker.setDefaults($.timepicker.regional['de']); ... but I could not get this work when including it into jquery-ui-timepicker-addon.js - so I just changed the options in that file. As it's obviously not recommended to change the code in the modules files, I would like to add the localization by a hook. How could I load a hook always when the datetime module is called? It would work fine with Page::render, but in use with the Form Builder it wouldn't work then, when the forms are embedded by iframe. So it would be great to add the javascript by a hook "into the datetime module"... Would be great if somebody could show me the right direction. Cheers, doolak
  9. @thingstodo: Maybe you made the same mistake like I did: Check if you are trying to get the thumb from Pageimages (one ore more images) instead of single image - this does not work. Edit the image field and set it to allow only one image and look if it works then.
  10. Hi arjen, the parent page will have the "has_children_class" and if it's the actual parent it will have the "parent_class", too. So it can be styled with CSS through: li.parent.has_children { color: #fff }
  11. Ok, got it: it has to be: echo "<img class='mitglied_image' src='{$thumb}' alt='{$page->mitglied_foto->description}' />"; not: echo "<img class='mitglied_image' src='{$thumb->url}' alt='{$page->mitglied_foto->description}' />";
  12. Thanks, apeisa - you were right. I have set the field to allow just one image and the error is gone. Now i have just to find out why it is displayed now as a 1x1 Pixel image ;-)
  13. Hi there, i receive the following error: Error Exception: Method Pageimages::getThumb does not exist or is not callable in this context (in /home/xxx/public_html/xxx.de/wire/core/Wire.php line 232) I am calling the thumbnail as follows: $thumb = $page->mitglied_foto->getThumb('thumbnail'); echo "<img class='mitglied_image' src='{$thumb->url}' alt='{$page->mitglied_foto->description}' />"; Am i doing something wrong? I am using one of the latest dev versions of PW.
  14. So if "FC" stands for "ü" this would be fine - but does not work here...
  15. title*=j%FC (searched for "jü") response: {"selector":null,"total":0,"limit":50,"start":0,"matches":[]}
  16. So the database collation seems to be ok, the page itself is set to UTF-8, too. No idea, what could be the reason...
  17. Thanks, great - so no need to change it in the module itself.
  18. But this does not make any difference - of course not, because it just sets the replacements for the page name (but nice to know, btw - i always thought that it would be better to have "ue" than "u" in the page name).
  19. public static $defaultReplacements = array( 'ä' => 'a', 'ö' => 'o', 'ü' => 'u', 'đ' => 'dj', 'ж' => 'zh', LOL - weird that here it's different. Thanks, guys!
  20. Thanks for checking, Wanze! The collation is set to utf8_general_ci - this should work fine, shouldn't it?
  21. Yes, the problem was the field concat. Switched to title and it works now! Thanks, Ryan! Strange that the german umlauts are not found here - i have to enter "u" for "ü", then it finds the name with the umlaut "ü"...
  22. The setting, which i had first when using checkboxes were: 1.) Parent of selectable page(s): /einstellungen/Mitglieder 2. label field: mitglied_vorname_name_geburtsdatum (concat field) 3. Dereference in API as: Multiple pages (PageArray) When switching to PageAutocomplete i used this settings: 1.) Parent of selectable page(s): /einstellungen/Mitglieder 2. label field: mitglied_vorname_name_geburtsdatum (concat field) 3. autocomplete advanced options: Contains phrase or partial word (but tried the others as well) 4. fields to query: mitglied_name mitglied_vorname 5. Dereference in API as: Multiple pages (PageArray) I am using a dev version of PW 2.3 which i downloaded few days ago.
  23. Just found out that PageAutocomplete seem not support German "umlauts" - would it be hard to implement this? Don't know which other "special chars" are affected.
×
×
  • Create New...