olafgleba
Members-
Posts
125 -
Joined
-
Last visited
-
Days Won
1
olafgleba last won the day on May 19 2022
olafgleba had the most liked content!
Profile Information
-
Location
Cologne, Germany
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
olafgleba's Achievements
Sr. Member (5/6)
101
Reputation
-
Whats possible, switching default language on existing sites
olafgleba replied to olafgleba's topic in Multi-Language Support
Hi @Sergio, i fully agree, this is tough to achieve. Because of the exceptions. As far as i am told joomla for example supposed to handle this a bit more easy. However they do it, i do not want to use Joomla anyway. Finally i wrote a little script which helps me to swap content. And - important for me - it includes most of the available multilingual field types. For my current project (which triggered the posting) this means i got this default language swapping thing ready in less than 5 hours. Instead of several days. Maybe this is also helpful for others... https://gist.github.com/olafgleba/1e1c33d8ad3fc22961dfba33a6ee2f36 -
Whats possible, switching default language on existing sites
olafgleba replied to olafgleba's topic in Multi-Language Support
Hi @monollonom, thank you for posting the thread. Editing the language section is the more easy part when changing the default language. If you have plenty of multilingual content, then it gets hard eventually. Therefore, having such a good starting point thanks to @gebeer , e.g. his php script to swap content of language tabs,- this whatever makes it worth the effort. I mostly work on multilingual sites/projects, so this affects me regularly,- its a pity PW doesn't handle this more smoothly. Like other CMF do. -
Whats possible, switching default language on existing sites
olafgleba replied to olafgleba's topic in Multi-Language Support
Hi @Gideon So, thanks, yes, i tried that and it works. Still it feels a bit awkward linking to the main homepage address like https://foo.bar becoming https://foo.bar/en/ in the browser. You lose hierarchy as there are only language segments then. cheers, Olaf -
olafgleba started following ajax, $pages->find, current language results , Whats possible, switching default language on existing sites , Sorting uploaded files, Backend and 4 others
-
Hi, there is a (not so small) company website. On launch the default website language was adapted to german ("/"),- with english ("/en/") and chinese ("/zh/") as additions. After merging with another company, the default website language now has to be english ("/") and the other languages as additions ("/de/", "/zh/"). There are several valuable posts about how to change the default language when set up a installation. But unfortunately i can't find any approach to change the default language on existing multilingual sites. Which is not uncommon practice, i suppose. Am i right,- still the only way/approach in PW to handle this is rebuilding the whole page content from scratch? Hard to explain to clients... cheers Olaf
-
@virtualgadjo, thx for the helpfull answers. Yes, it all leads to do it with a hook. I just wondered i maybe missed something i overlook. So, hook, here we go... Cheers, Olaf
-
Hi @virtualgadjo, thx, yes, drag and drop is possible. I meant something like sorting the files alphabetically for example. Or by name etc. Just like you do it template based in the page tree. have a nice day too 😉
-
Hi, hm, i have the faint idea i did it sometime ago, but can't remember now i am afraid: I have a page with only one field of type 'file'. Do i have the ability to change the sorting of those files within the backend view? Thx in advance, Olaf
-
Hi @adrian, while your module is a real pleasure to work with, i wonder if i miss something, as "Copy Field Content to other Page" seems not to work with fields of type "files". The references are copied, but the files itself not. Not sure if this is intended or maybe a bug? Cheers Olaf
-
Thanks, @matjazp. I need to get myself looking at the github issues more regularly.
-
Hi, since i updated my local PHP to 8.4.13 (from 8.2), all PW installations are quirky. Regardless what 3.0.x.x.x PW versions. On load (Backend/Frontend): Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in [...]/wire/core/WireSessionHandler.php on line 51 Followed then by: PHP Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in [...]/app/wire/core/WireSessionHandler.php on line 51 Although it is a deprecation/warning, it has effect on the behavior within the Backend (page tree doesn't load etc.) when debug is on. I also tried to upgrade a local PW installation (v. 3.0.242) to the latest master/dev, the folders and files are created (wire, index.php etc.). But loading the backend or frontend both gives completely blank page immediately. Fortunately the rollback works. I did a search, but found not much on this topic, i am afraid. Emptied all caches, compiled files multiple times. Does anyone have a clue what to do or where to look at? Thx in advance Olaf
-
Show full filename in repeater item headers
olafgleba replied to olafgleba's topic in General Support
Hi @BrendonKoz, brilliant, thanks a lot! "Truncation" and such,- i missed to use those terms. Probably therefore i got no results while searching the forum... -
Hi, strange that i never thought about it before,- now a client asked for it: Is there a setting to allow showing the full file name in Repeater Item headers (and not only on hover)? Cannot find any and not sure where to dig. Thanks, Olaf
-
Where to set image resizing quality and how to re-resize images
olafgleba replied to Adam Kiss's topic in General Support
Hi @tpr (and @horst), first, thanks for the module. It was a splendid timesaver in several projects (especially with corrupted webp images/files) in the past. Is this module still maintained? I ask because i get an error (s. below) with latest Version (0.0.4) with PW 3.0.243. Thx and cheers -
solved ajax, $pages->find, current language results
olafgleba replied to olafgleba's topic in Multi-Language Support
Moin @bernhard, so good! :-). The last sentence got me going. I overlooked to adjust the js ajax endpoint url on language switch. Next beer on me, please 😉 -
solved ajax, $pages->find, current language results
olafgleba posted a topic in Multi-Language Support
Hi, i only found posts with Ajax + Search topics, which does not help me with my question i am afraid. Within a form i narrow down the results to specific conditions (here: countries assigned to continents). While the first select (continents, s. Screen 1) is populated on page load, the second one gets filled up by a ajax call/response (form action attribute references to that ajax driven page). Works well. What i cannot figure out is why the ajax driven page does not consider the current language when quering pages ($pages->find()) within the ajax page (s. screen 2 (country names should be in english, not in german). As the ajax driven page is a regular PW template based page, i would expect that PW detects the language versions of the page fields automatically like on any other page. Without specifying something additionally. But obviously not. And i miss something or doing it wrong. Maybe helpful: The ajax page is a processwire page derived from a dedicated template. ProcessWire namespace is set (on the ajax driven page) All language checkboxes (Tab settings) in related pages are active Default language is german, both screens showing the page set to english. Thx in advance for any hint. cheers Olaf Screen 1: Screen 2: