-
Posts
20 -
Joined
-
Last visited
About nuel
- Birthday 12/27/1982
Contact Methods
-
Website URL
www.nuelschoch.ch
Profile Information
-
Gender
Male
-
Location
Zurich, Switzerland
Recent Profile Visitors
1,405 profile views
nuel's Achievements
Jr. Member (3/6)
3
Reputation
-
Country specific content in a multi-language site?
nuel replied to nuel's topic in Multi-Language Support
These are some good inputs, thank you @bernhard. I'm evaluating all options with my customer. Also on board is the option «Sparfux» where I ask users to choose their country and language in the menu and then simply add an url parameter like ?home=fr. If I learn how to build modules one day this could be my first project =D By the way, here's a good example of what I'm talking about (Switzerland has two options ch-de and ch-fr, Austria has none = at): https://www.siemens-healthineers.com/de-ch -
Country specific content in a multi-language site?
nuel replied to nuel's topic in Multi-Language Support
Hi @bernhard, thanks for your answer. I know what you mean. With geo detection, people would still be able to choose the language, only certain contents like a text element or a subpage, would be hidden, without their actual knowing. I still wonder how I would set up an URL segment like /che or /ger before the language segment /de or /fr set by the multilanguage support module, without altering the page tree?! -
module PrivacyWire - Cookie Management & async external asset loading
nuel replied to joshua's topic in Modules/Plugins
Can anyone explain the changes with the Google consent mode v2? Do we need to change all the Google Tag Manager snippets that we modified for PrivacyWire in the past? Do we have to and should we and can we somehow distinguish between consent for «Statistics» and «Marketing» withiin one GTM? -
Hi guys Maybe someone can point me in the right direction. I have my multi-language site with german, french, english and dutch. I now want to exclude certain contents in certain countries. The thing is, countries like Switzerland and France share French, and Switzerland also shares German with Germany. I guessed I need country-language pairs like de-DE, de-CH, fr-CH, fr-FR, en-INT or something. Based on those I can output different content, that's easy. But I only want one translation for each language. I also use Fluency/Deepl translation, so this is most likely going to be a mess with too many copies of a language. Do you see another solution than these language-country pairs resulting in something like /fr/fr/ and /ch/fr or so? Or leave the languages as they are and add geoID detection and output content based on that? I still want users to be able to choose their country and language. And it should after all be a straight forward and simple solution. Thanks, Nuél
-
Hi guys. I'm having the same issue and don't know how to fix it. PW 3.0.227 and Formbuilder v55. Plus on some devices when sending a form, the screen gets blank and the mail doesn't go out. Anyone any ideas? @ryan?
-
nuel changed their profile photo
-
Bug: "CKEditor Custom JS Style Set" and Repeater-Field
nuel replied to Andreas Faust's topic in General Support
It's 2022, I'm using Processwire 3.0.200 and I still have this issue in every project. Very frustrating! I even changed the /wire/modules/Inputfield/InputfieldCKEditor/mystyles.js in case my file is ignored (it is linked in the source code though), still no changes. Anyone found a solution to this yet? @ryan? -
Hi I'm working with PW for some time now, but – please don't laugh – never used hooks. I have 200 – 300 subpages with the template 'artist', the title of each page represents the full name, sometimes John Doe, sometimes John Emmet Brown Doe. I want to auto-populate the field 'artist_last_name' with the word that is most likely the last name, the last word of the page title. If there are more names, it can be changed manually. I need this for easier and quicker alphabetical sorting. What I put together is this, in ready.php. Doesn't work. Again, I'm new to hooks.. <?php $wire->addHookBefore('Pages::saved', function(HookEvent $event) { $p = $event->arguments('page'); if($p->template != 'artist') return; if($p->artist_last_name) return; $ln = end(explode(' ', $p->title)); $p->set('artist_last_name',$ln); }); ?> In the best case this would be done once globally without having to open and save every page. But new pages should populate the field on page save. Thanks for your help, I think it's easy, I just need a push.. Nuél
-
Ok, 5 minutes later, I just made it work again. I have two textarea fields with custom styles only available in the second. That doesn't work somehow. Had to add the styles to the first field as well, now it's working in both. Tested it twice.
-
Hey People Jon, was this issue ever solved? I'm experiencing something similar too. My custom styles basically work perfectly, as usual (modified clone of contents.css and mystyles.js), but now they are not accessible in certain templates. Same field, other template. Any ideas? I'm running 3.0.184. Thanks, Nuél
-
Thank you so much Moritz. This is even longer than I expected ? It sounds like the perfect solution for this and will definitely be my long-term goal – maybe even with the possibility to restrict the visitors location to a country or region. I know and use the modules you mentioned, on the other hand – please don't laugh – I've never worked with hooks yet. This is new and I'll need some time to try that ?. One thing got missing here and this probably makes it even simpler. The ticket codes come from an official ticket service where people buy real tickets for real concerts. So for this I won't have to generate codes on request/order and handle payments. So I will (or my customer) most likely have to import or copy/paste these codes. I have to check but I think the gag would be to enter the «online concert venue» with only a code and without a user account or name/password. So I will have to try to store the code along with the visitors IP address in the codes table. I will get back here and post my solution or further steps or questions.
-
Dear PW Community Let me shout out my question here, I really don't know where to start and hope someone can give me a hint or tell me to resign and go home and cry. I want to create a subpage that is only accessible to people with unique access codes. It's gonna be an online concert streaming page (thanks Corona!). People who buy tickets through a local ticketing service should be able to access and stream the show with their individual access code. These codes should work only for this person and show. If someone in the «audience» closes and reopens the page, they should get in again, but not their friends who were given the code of course, basically just like in a club with a ticket and a stamp on the wrist. Now, is there a possibility to achieve that with more or less basic Processwire skills? In my imagination I have a field where I list the given access codes, another two to add start and ending date/time of the show, maybe one for a unique ID/title of the show. Is there an existing module for something like that? Should I get into the module development field and create that? How?? Haha. Any comments are welcome here. Thanks, Nuél
-
How to sort according to order of page in page lister of admin?
nuel replied to nickngqs's topic in General Support
Hi guys. I have a similar problem and dug out this thread, maybe some processwire wizzard out there can help me =D I «gather» pages and subpages with a certain checkbox checked with $pages->find("checkbox=1"), ordered according to the page tree. sort=sort works quite right but it messes up the order of subpages. Example: page1 (checked) page2 –> subpage2.1 (checked) page3 page4 (checked) Now what I want to get is page1 | subpage2.1 | page4 but what I get with sort=sort is subpage2.1 | page1 | page4 Any ideas? Cheers, Nuél -
Wow, thank you guys! Great inputs. I will try all that. For now I built the whole download page on a subdomain where i forward to in the /download template i forward with $session->redirect($url). It works, but it's not the beautiful solution I was hoping for (dynamic menu etc. is not affecting the subdomain etc.). I will post my solution here when I succeed.
-
Hi there Basically I want to call code within a ProcessWire page that isn't used as a template. Example: www.mypwpage.com/myphpfile.php I have a working PW Website with a couple of pages like /artists, /releases, /videos etc. Now I need a page /download without any editable fields in the backend, just calling some PHP code (that was coded by another guy) containing a form that checks unique download-codes in a second database and starts the download of the desired file. The script is working fine right now as part of a static website, but since I built PW behind the site, this independent «Download Section» of the page doesn't work anymore. Right now I have the main file download.php as a page template on a newly created empty page called /download, so until now the form is working (wow). After sending the form containing the download-code, the file check_code.php in a subfolder /site/templates/download is called and that's where I get an error. Any help?
-
hi there i'm new to processwire, please cut me some slack if the answer is already out there.. i am "processwiring" a non-cms page that i made, containing many repeating so called "station"-elements with fields such as date, location, miles, optional links, photo upload etc. they were listed and created via php and stored in an xml file until now: <stations> <station> <date>17.8.2017</date> <location>Exil, Zurich</location> <miles>1234</miles> ... </station> <station> ... </station> </stations> i already created a working repeater field with the needed fields and successfully created the first two elements... but there are many more! what is the easiest and quickest way to batch create new repeater fields with the node element content of my xml file? otherwise i would just have to type the whole sh..t again which i am too damn lazy to do thanks in advance nuel