Fuzzy
Members-
Posts
28 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Fuzzy's Achievements
Jr. Member (3/6)
4
Reputation
-
Fantastic. Thank you, @Jan Romero!
-
Thanks @Jan Romero for your answer. Actually, I've no further information on the error. But line 515 seems to throw the error... - Does this help?
-
Hi, I've downloaded the ImportPagesCSV module. Creating new pages works fine. But modifying existing pages throws this error Does anybody know if there is a problem with this module? Or can somebody help me with this? Thank you in advance!
-
Ok, thanks @flydev ??. I'll try to figure out more on Monday. If I do not succeed, I will come back to your generous offer ? Thank you very much for your help!
-
The database has not been updated. At least to my knowledge... Processwire has been updtaed to 3.0.200. Unfortunately, new users cannot be created and existing cannot be modified...
-
Processwire has definitely not been updated. We are running on ProcessWire 3.0.123. Server-Version: 8.0.25-0ubuntu0.20.10.1 - (Ubuntu); PHP 8
-
Hi @flydev ??, unfortunately, that didn't solve the problem... Thanks for your help! Deborah
-
Hi @Gideon So, Thanks for your reply. I've added the screenshots to my original post. Page ID 22307 is representing the user, I'm trying to create... I couldn't find an error message related to this problem. But I noticed that since a while there is an error with the following error message: "SQLSTATE[HY000]: General error: 1525 Incorrect DATETIME value". Thanks for your help!
-
Fuzzy started following Klaro Cookie Consent Manager , Processwire Not Saving User Data and Define fallback for every language
-
Hi, Today I noticed that I cannot save/edit the password, email address or assigned role of existing or new users. I can create a new user but the email address and assigned role will not be saved. In the DB the entry for the user has been created, but the entry for the emails address and passsword is empty (see screenshot below). The thing is that saving/editing other pages works fine. The problem is only with the user management. Can someone help me, please?!? Thanks!
-
Thanks, @kixe! The code is working, BUT: all data displayed which are not stored in a field on this page still fallback to the default language (e.g. navigation and footer --> template include; translated strings --> _("xyz") . No surprise, but I did not consider this. Is there a way to overwrite the language fallback behaviour of Processwire globally? - I searched the forum, but could not find any information about that...
-
@kixe, you are the best! But I think, you already knew that! Is it possible to do this for every field of a page? - The code below isn't working... if ($user->language->id == "20025") { $languageFallback = [15151,1010]; // array of Language-IDs in fallback order for LATAM } else { $languageFallback = [1010]; // array of Language-IDs in fallback order for all other languages } $pageActiveLanguageIds = $page->getLanguages()->each('id'); $languageFallback = array_intersect($languageFallback, $pageActiveLanguageIds); foreach ($page->fields as $field) { $field = ''; foreach($languageFallback as $languageID) { $field = $page->getLanguageValue($languageID, $field); if ($field) break; } $page->$field = $field; }
-
Thanks @7Studio. But the default language is still English then. What I'm looking for is: Currently in Processwire: Check if content is available in a specific language If not, content will be shown in the default language. What I want: Check if content is availbale in a specific language If not, check if language is available in primary fallback language for this specific language If not, content will be shown in the default language.
-
Hi, Currently we have set up a multilanguage site using multilang URLs and multilang fields. English is used as default/fallback. Now we have to create two spanish language versions (Spain-Spanish + LATAM-Spanish). Is it possible to define for LATAM-Spanish as primary fallback Spain-Spanish. If content is not available in Spain-Spanish publish in default language? Thanks for pointing me in the right direction...
-
Thanks @gebeer for the detailed description and code snipets. Managed to get a workaround as my knowledge of js is too limited to get the callbacks working. Nevertheless, thanks a lot for your help!
-
I know it's not a PW issue, but maybe someone can help me anyway! I managed to implement Klaro! on my website for all relevant scripts except for Google Maps. The script gets blocked successfully but when accepting cookies/other services, the script doesn't get called. I guess that the callback function is the reason for this. But I'm not able to fix it and can't find example code. This is what I've tried: { name: 'googleMap', title: 'Google Maps', purposes: ['externaltracker'], description: ['styling'], callback : function(consent, app){ }, }, And also the code below doesn't work: { name: 'googleMap', title: 'Google Maps', purposes: ['externaltracker'], description: ['styling'], callback: function(consent, app) { // This is an example callback function. console.log( 'User consent for app ' + app.name + ': consent=' + consent ); }, }, Appreciate any help!