theo

Members
  • Content count

    224
  • Joined

  • Last visited

Community Reputation

138 Excellent

About theo

  • Rank
    Sr. Member

Recent Profile Visitors

862 profile views
  1. Afaik CSS has precedence over HTML width. So either define width:100% for all your images or insert a special class for this (e.g. "img_responsive"). .img_responsive { width: 100%; } To make it selectable from the CKE toolbar, do sth. like CKEDITOR.stylesSet.add('mystyles', [ { name: 'Fullwidth', element: 'img', attributes: { 'class': 'img_responsive' } } ]);
  2. I think the check for "NullPage" was wrong. We have to check for id<>0 https://processwire.com/api/ref/null-page/ Like this it works. $item= $this->wire('pages')->get('template=language,id=' . $lang_id); if($item->id) { $this->wire('user')->language = $lang_id; } Thank you.
  3. No, it does not help. Still getting: Thank you.
  4. @tpr About the language switcher problem mentioned before: The problem is with the cookie "aos_lang_id". If it contains a value for the language (like e.g. 1010) which does not correspond to a language id of your current installation, then then PW backend crashes. This may happen, if you run multiple PW instances on localhost. A check for the existence of the id you get from the cookie would help imo. Thank you.
  5. @bernhard Glad you found the bottleneck. But I'd leave sorting on by default and make an option to turn it off ( IIUC ).
  6. @bernhard I'm sure it's great what you are doing. Unfortunately, I have no time for participating or testing and I don't have a setup with 10 000+ pages atm. But keep up the good work!
  7. The reason I still use Bootstrap is not only the "Grid" part, but there are many other solutions in it, which are really useful and can save you a lot of time. Latest thing I've found is a way for responsive video embed (doing this "by hand" is not as easy as it may seem). https://getbootstrap.com/docs/4.0/utilities/embed/ Because of things like this, I prefer staying within the Bootstrap Framework.
  8. Hummm, now it works. Very strange, almost scaring... Maybe there was sth. wrong with a previously set cookie?
  9. @tpr : I've had a little time now, and i found the line which is causing the trouble in my installation. Around Line 391 in AOS 1.8.9. The commented line "//theo" // add to init() to change early if ($this->isMultiLang) { if (in_array($subModule, $enabledSubmodules)) { if (in_array('adminLangSwitcher', $configData[$subModule])) { if (isset($_COOKIE["aos_lang_id"])) { $lang_id = $_COOKIE["aos_lang_id"]; //theo $this->wire('user')->language = $lang_id; } } } } It seems as if this comes too early here. Not sure. Do you have an idea what is going on here?
  10. @MarcoPLY Should work now imo. Repository is updated. This version also creates and deletes the permission, but you still have to add it to your editor role. https://github.com/theo222/ImagePickerField
  11. @MarcoPLY Can you test this? In ImagePickerList.module (should be in site/modules/ImagePicker/) Add 'permission' => 'imagepicker' to the getModuleInfo() block public static function getModuleInfo() { return array( 'title' => 'ImagePicker Lister', 'version' => 90, 'summary' => 'ImagePicker Lister', 'singular' => true, 'autoload' => false, 'permission' => 'imagepicker' ); } Then as admin in the backend do: Access -> Permissions -> Add New: Name: imagepicker After saving, give it a title like "Image Picker". Then add this permission to your editor role (Acesss -> Roles). Try if it works. Maybe you have to log-out and in and refresh modules (Modules->Refresh).
  12. Yes, it probably has to do with the fact, that the page generating the picker list uses an admin template. The page is in Admin->Setup->Image Picker List. I have almost no time atm. Can anybody explain how to make such pages accessible for non superusers? Thank you.
  13. Yes, 3 languages, PHP 7.0.7. I am going to bed now. See you tomorrow.
  14. Right after. Click "Save" and goodbye. Might be some interaction with other stuff, but I don't know what to look for.
  15. AOS 1.8.9 crashing ProcessWire 3.0.94, when setting Misc->"Add language switcher to the admin". Error Message: I have to remove the item in the database under modules AdminOnSteroids -> data to get PW running again. What could this be? Thank you.