Jump to content

kongondo

PW-Moderators
  • Posts

    7,476
  • Joined

  • Last visited

  • Days Won

    144

Everything posted by kongondo

  1. @DV-JF, No, there isn't. For such cases, we have getMenuItems().
  2. @DV-JF Use a try catch block like this: <?php namespace ProcessWire; $menuItemsAsArray = [];// only if use getMenuItems() $menu = ''; $menus = $modules->get('MarkupMenuBuilder'); try { // no error: render menu $menu = "<div>"; $menu .= $menus->render('footer-3', $scnd_options); $menu .= "</div>"; // OR IF USING getMenuItems() //$menuItemsAsArray = $menus->getMenuItems('footer-3'); } catch (\Throwable $th) { //bd($th, 'ERROR'); // get error message (No menu items found! Confirm that such a menu exists and that it has menu items.) $menu = $th->getMessage(); } // if using menu items array if(!empty($menuItemsAsArray)){ // build menu from array }
  3. No, I don't think so. But you have 7-days post-purchase to change your mind and get a full refund.
  4. Let's say you have Site A, Site B and Site C. Site A and Site B are ProcessWire sites whereas Site C runs on something else (Laravel, WP, some PHP forum, etc). You can use bootstrapping/include to access Site A whilst in Site A when in a CLI environment. You can also use bootstrapping to access Site A inside Site C. To access Site B inside Site A or vice versa, you use multi-instance approach. i.e. one ProcessWire inside another ProcessWire instance (site).
  5. Hi @RyanJ, Please see this post and the one after for the resolution. I am still working on a proper solution. Sorry for the inconvenience.
  6. I was impressed by their response time actually. I thought I'd have to wait a while but they managed to resolve it via a live chat (took about 30 minutes).
  7. Indeed they have! They say it was a one-time glitch in their system that caused the domain not to point to the IP address (or something along those lines). Just waiting for the propagation to finish globally but I can already see the site is working here. Thanks for your help as always @teppo. I'll mark this as solved.
  8. Just tried. These cannot find the domain. They do find the sub-domains though. I'm chatting with namecheap. Let's see what they have to say.
  9. @teppo, thanks for chiming in. I forgot to mention that I had already tried this as well as https://www.whatsmydns.net/. It doesn't work in these places. As far as I can tell yes. I've also checked reverse DNS Lookup and it points back to my domain name. I don't think so. Besides, they don't manage the domain for me. That's done by namecheap. Only thing Linode have are the value (hostname) of the reverse DNS. I'll try and report back. Thanks.
  10. Quick update. MB version 026 and 027 have now been merged into master. Please see the linked posts and the extra fields section of the docs for the changes. Thanks.
  11. @Ivan Gretsky Thank you for reminding me about this! Not only are there new features, but the dev version already has fixes for the issue you filed recently! I note that I added these features way back in January 2020! For now, I'll just blame the pandemic/isolation for my forgetfulness ?. I'll merge to master asap. Thanks.
  12. Hi all, I have a site that suddenly is no longer reachable via its domain name. It can only be reached via its IP Address! The message the browser displays if you try to access the site is: server IP address could not be found. Funny thing is that its subdomains and other domains on the same server work just fine, reachable via their domain names. I have Googled and tried a few suggestions such as confirming the site is not getting blocked by my local network, to no avail. The site sits on a VPN server (Linode) but the domain names and dns are with Namecheap. The only recent change is Linode upgraded the VPN, to offer more storage. Sometimes back, I cannot remember how long, I upgraded the server to PHP 7.2 (I know, I need to upgrade again), but I didn't experience any issues. Any ideas where to look, what to try please? Thanks.
  13. Exactly what you caught me typing, i.e., if you declare one and not the other, the other value gets automatically and proportionately resized. So, if you declare height, width will be auto and vice versa. If you set both height and width and have this setting 'post_small_image_size' => true, then you will get exact dimensions. Currently this is only explained in the code, e.g. here but the language can be improved. For instance, the 'no manipulation' is not exactly true as that dimension will be autosized..
  14. I am afraid I don't understand the question. Do you mean editing an image, e.g. your 'welcome-waving' image by clicking on Edit, then the crop icon? Which settings are these? Maybe send me a screenshot of what you are trying to do? Thanks.
  15. Excellent! Glad you got it sorted ?.
  16. Edit the field blog_images Go to its Details Tab Scroll down to the bottom to the Use Tags section. Enable tags using one of options 2 - 4. I normally use 2 (user enters tags by text input). Save
  17. Sorry about this. The documentation can be improved (even completed! ?). You need to add the tag to an image in your blog post. These are the images in the blog_images field in a blog-post template. See attached (zipped) animated GIF (it seems I cannot upload GIFs anymore). featured-image-blog.gif.zip
  18. Thanks for reporting this @DV-JF. Incidentally, @Ivan Gretsky reported the same warning yesterday in the GitHub repo ?.
  19. Definitely not! That's not how we roll in this community. I guess you should start here then? https://processwire.com/docs/start/templates/ It's always the name of the field :-) <?php namespace ProcessWire; // will yield its value // @note: the value can be as simple as a string or integer, or more complex, e.g. an array or object // @note: that field must be present in the template that this page uses $page->name_of_field; In other words the 'name of the field' is a property (some would say attribute) of that page. Just like things (humans, buildings, animals, etc) have properties/attributes: height, width, etc. Edit Also note that $page always refers to the current page, but the principle of 'name_of_field' still applies. For example: <?php namespace ProcessWire; // this page we are viewing // get a property from it. $height = $page->height;// height is the name of an integer field in the template used by this page echo $height; // get another page not currently in view // get it using its ID $anotherPage = $pages->get(1234); // this other page uses the same template as our 'current page' above // so, we can get its height property as well $anotherPageHeight = $anotherPage->height; echo $anotherPageHeight; // @note: we only echo 'simple' field values, i.e. those that do not return an array or an object, etc
  20. Welcome to the forums and to ProcessWire @brandy :-). I don't know how much of the docs and/or tutorials you have gone through already. If you haven't already seen the docs about $page and $pages. I'll also throw in selectors. You'll get along better and farther with these under your belt.
  21. Welcome to the forums @jonassalen, Have a look at this thread. It should answer your question, but the solutions might need a bit of tweaking since the case there was to 'preserve' default language pages.
  22. What does this mean exactly? No save? No post? ? Depends on the type of field. Plain text? Not repeaters by the looks of it. Maybe a little bit more info will help get better responses :-).
×
×
  • Create New...