Jump to content

DV-JF

Members
  • Content Count

    167
  • Joined

  • Last visited

Community Reputation

42 Excellent

About DV-JF

  • Rank
    Sr. Member

Recent Profile Visitors

4,168 profile views
  1. @kongondo Thank you for the hint. Another short question: Is there a possibility to add a data attribute to the menu or/and the items, when using the render function?
  2. Hey @kongondo I've read the docs and tried to find some hints here in the forum, but couldn't find anything regarding to my problem: I need some menus only be displayed on the frontend when they are filled in the backend. When I try to render a menu <?=$menus->render('footer-3', $scnd_options);?> with no items in it I get an error: Even if i try to count the items before with <?php bd($menus->getMenuItems('footer-3'));?> I get this error. So how can I check, if a specific menu has some items, is not empty or is unpublished and render it only if these conditions match? Many greets.
  3. Hey @kongondo I've found a PHP warning, i guess, when there a no items assigned to a menu, have a look at the screenshot: Latest Version of PW 3.0.167 / Menu Builder 0.2.5 / PHP 7.2.34
  4. That's a good point. Right now there isn't a detection for this but I'll think about a way to implement this. Hey @joshua any news or ideas on this?
  5. Thank you for your answer - I'll think I'll have a look at https://processwire.com/api/ref/session/force-login/ Maybe I'll use a unique hash field which changes automaticly after the user is logged in.
  6. 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?
  7. 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 🙂
  8. @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
  9. 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:
  10. 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.
  11. 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.
  12. 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!
  13. 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
  14. 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
  15. 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.
×
×
  • Create New...