Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

42 Excellent

About DV-JF

  • Rank
    Sr. Member

Recent Profile Visitors

4,140 profile views
  1. Hey all, short question: I've setup a multi-language site using different domains for the different languages in site/ready.php I'm using following code: <?php if($config->httpHost == "www.example.de") $user->language = $languages->get('default'); elseif ($config->httpHost == "www.example.si") $user->language = $languages->get('si'); elseif ($config->httpHost == "www.example.com") $user->language = $languages->get('en');?> All domains are mapped into the same directory - this is working superfine 🙂 Now I have to take care about following use case: If a user is logged in and wants to change the language, the session have to be automatically transferred to the refering domain, so that the user having not to log in again. IS this possible? Can you give me some hints on how to do this best with the current PW version?
  2. Hey @johnstephens when I'm running into such problems, I'm trying to figure out which variable has which value at which time. A tool which is very helpful is TracyDebugger. https://modules.processwire.com/modules/tracy-debugger/ When you have installed the module you could do something like this... $dom = new \DOMDocument(); bd($dom); @$dom->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8')); bd($dom->getElementsByTagName('img')); foreach($dom->getElementsByTagName('img') as $img) { bd(img); } and you'll see exactly what you need to know - https://adrianbj.github.io/TracyDebugger/#/debug-bar?id=dumps Just give it a try and you'll love it 🙂
  3. @nbcommunication Hey Chris, just wanted to say thanx for this module!!! With ProcessWire 3.0.164 it worked out of the box... great readme.md! Is there a way to get you a cup of coffee ☕ 💸? Only one short question? After two months, do I have to renew any tokens or so? Many greets, Jens alias DV-JF
  4. Hey @Pip, you're on the right way - keep on going... I would do it this way: Create a template for the items Create a template for the ingredients Create a page for holding all ingredients I normally use an empty template called "placeholder" for these pages Create a "Page Reference Field" called ingredients and assign this field to the items template Make sure to use "Choose multiple" in "Input" tab It's on your side to choose which one works best for you - just play around Choose the parent page "ingredients" as parent - see 3.) You can check "Allow Creating new Pages" - this gives you the option to add new ingredients directly from the item page. Now every thing should be set up to create a new "item" page. You should be able to select or create new ingredients directly from this page. Your page tree should look like this in the end: - Items - Pizza Dough - Hawaiian Pizza - Ingredients - Sauce - Pineapple - Cheese - Ham Even if this video is a little bit old, here's Ryan showing how it works:
  5. Hey @Mikie, thank you for this hint. Unfortunately this isn't an option for the upcoming project cause this service is not hosted in the EU. In any case I will have a closer look at it, maybe I can use it in one or the other project. I'm not only concerned with the costs that would arise from an upgrade. Of course I'm willing to pay for good software and also support Ryan with the use of some ProModules. I just wanted to clarify beforehand if I can still use the old version of Padloper, which I have already had good experience with, even if it has been difficult at times. Or if the new version of Padloper will be available in the very near future and if it is worth waiting for.
  6. Among other things, I work for an advertising agency that focuses on a specific industry. In 1st line the orders are mostly for smaller websites (max. 20 subpages) for handicraft companies. For this purpose we are currently developing a "Master-Template", which then only needs to be filled by content editors. This template is used for all end customers and will be further developed during operation. Should an end customer have "special" wishes regarding design or function, we usually implement this in the project of the respective customer, and then adapt this functionality into the already existing "main template". For version management, we used GitHub - with the files in the /site/ folder, it works best. However, we're still looking for a way to document changes to templates and fields so we can incorporate them into the main project.
  7. Hey @kongondo and all others... I'm not sure if this question was asked before: A customer of mine wants to add a little shopping cart to her website and Padloper would exactly fit her needs. Is it worth buying an "old license" at this point in time and can I upgrade to the new version in the future, at best free of charge? This is a difficult decision for my part, as I cannot judge how long it will actually take until the next version is released. What would you recommend? Best regards!
  8. I've figured it out and opened an issue on github: https://github.com/processwire/processwire-issues/issues/1163 If anyone is interested in a solution: Make sure to add a trailing slash to the URL
  9. Hi, I've a problem and don't know why this happens: I'm trying to import some fields to a mirrored PW site with same version (3.0.153). The import stops without any error message. Fields are not imported. See attached video. Any ideas how to debug this? EDIT: This is the field I'm trying to import, but others fail also: { "svgfile": { "id": 416, "name": "svgfile", "label": "SVG File", "flags": 0, "type": "FieldtypeImage", "extensions": "svg", "maxFiles": 1, "outputFormat": 2, "inputfieldClass": "InputfieldImage", "icon": "files-o", "fileSchema": 6, "gridMode": "grid", "focusMode": "on", "clientQuality": 90, "outputString": "", "defaultValuePage": "", "textformatters": "", "entityEncode": "", "useTags": 0, "tagsList": "", "collapsed": 0, "showIf": "", "themeOffset": "", "themeBorder": "", "themeColor": "", "columnWidth": 100, "required": "", "requiredIf": "", "unzip": "", "overwrite": "", "descriptionRows": 1, "noLang": "", "maxWidth": "", "maxHeight": "", "resizeServer": 0, "maxSize": "", "maxReject": "", "minWidth": "", "minHeight": "", "dimensionsByAspectRatio": "" } } import_fields_fails.mp4
  10. By the way: This is really helpful. @joshua Is there an opposite option to only show an element if a specific data-category isn't allowed? I want to display the link for managing cookies only to users if cookies of a certain kind are not allowed.
  11. Hi @joshua, I really like your module, especially the way how scripts are loaded asynchronous. Thank you for sharing! It would be nice if you would use data-type="optin" instead of type="optin" in order to have valid HTML5. Many greets!
  12. ...no ideas? Maybe I should post this into Wishlist & Roadmap ?
  13. Hey all, hope you're feeling well these days! Short question: Under "Setup > Templates" it's possible to sort the templates by last modified. Is this possible for fields view to? Long explanation: Currently I am in the process of programming a reusable template and often have to copy several fields & templates from different PW installations into my "master version". Therefore it would be good to see already in the field list when the last modification has taken place. Stay healthy & don't forget to wash you hands - many greets!
  14. It's an old topic, but I have nearly the same problem: When using condition the conditon "required if" I'll get an error displayed: but it seems to work 🤥 Unfortunately I was wrong, when saving the page PW tells me that all these fields are required : @ryan Could you shortly explain why we can't use "required if" conditions in repeater fields and if this may change in the nearer future? Many greets !
  15. Hey, thank you for the answers and hints. I've solved the problem using "Adminer" from "TracyDebugger". @BitPoet Special thank goes to you 👍, I'll have a closer look on your module soon and will test it for sure!
  • Create New...