Jump to content

AndZyk

Members
  • Posts

    561
  • Joined

  • Last visited

  • Days Won

    6

AndZyk last won the day on April 8

AndZyk had the most liked content!

About AndZyk

  • Birthday 09/12/1987

Profile Information

  • Gender
    Male
  • Location
    Furtwangen, Germany

Recent Profile Visitors

4,621 profile views

AndZyk's Achievements

Hero Member

Hero Member (6/6)

804

Reputation

3

Community Answers

  1. You are right. The sort order doesn't seem to matter. What seems to matter is the closest match: Strange that it is only possible to set one host in the config-dev.php. Could this be a bug? But yes in this case some sort of if condition could be the way. Either with an own config variable or the PHP server variable. If you have a $config->httpHost (without s) defined, it always seems to come first: if ($config->webpackHost) { $config->httpHost = "localhost:8080"; } Ah, then this seems to be something webpack specific. I have no experience with webpack, i am still using good old CodeKit on Mac for compiling. But I am wondering why with webpack your assets don't work on both hosts. With CodeKit I got my live reload host (my-mac.local:5757) and my normal host (example.dev) and both show the same assets.
  2. Hello @bernhard, you can add multiple httpHosts in your config file as array: $config->httpHosts = array( 'example.dev', 'localhost:8080' ); Source: https://processwire.com/docs/start/variables/config/ Also you could have a separate config file "config-dev.php" for your development environment: For the HTTPS issue, you could try to this: $config->noHTTPS = 'localhost:8080'; Source: https://processwire.com/blog/posts/pw-3.0.99/ I have never tried the noHTTPS option, but maybe it could work. Regards, Andreas
  3. Here is the blog post about it: https://processwire.com/blog/posts/processwire-2.6.8-brings-new-version-of-reno-admin-theme-and-more/#new-this-gt-halt-method-for-use-in-template-files
  4. Hello @joe_g, I would use a $session variable for storing the user language. $session->set("userLanguage", $user->language); You could then perform a session redirect: if ($session->get("userLanguage") && $user->language->name === "default") { $session->redirect($page->localUrl($session->get("userLanguage"))); } I have not tested this but think it should work. ๐Ÿ˜‰ Regards, Andreas
  5. ProcessWire also offers build in export and import functions for templates, fields and pages. ๐Ÿ˜‰
  6. I was thinking about this argument and this is something I also wish that could be improved. There doesn't seem to be a roadmap anymore. The current roadmap is from 2019: https://processwire.com/about/roadmap/ I think it would be nice to revive the roadmap or at least make a poll for what the community is wishing for the most. The last poll was at the beginning of 2021. The current approach that a feature will be added if @ryan has the need for it on a project is not bad, but that leads to many developer centric and less client centric features, which I personally often don't use, because there are already so many developer centric features. ๐Ÿ˜€
  7. I had to comment there as well, because I couldn't leave this unfair comment alone. But in my experience this is normal for the heise community and a reason why I don't like to read articles there. ๐Ÿ™„
  8. I have read his comment but cannot understand his issue, because I donโ€˜t care how many tables the database has. ๐Ÿ˜‚ But the heise-community is sometimes toxic in my experience. Not as friendly like here. ๐Ÿ˜‰
  9. WordPress-Alternative: Websites flexibel gestalten und verwalten mit ProcessWire: https://www.heise.de/amp/ratgeber/WordPress-Alternative-Websites-flexibel-gestalten-und-verwalten-mit-ProcessWire-6663030.html heise+
  10. Just wanted to add, that I have given Twig a serious try a few years ago and came to my conclusion that it took me more time to learn first how to do things in PHP and then translate it to Twig than just to do it in PHP. But if you are happy to learn two languages at the same time or are already experienced in PHP then I imagine Twig can be a time saver. ๐Ÿ˜‰ I prefer a CMS that doesn't force me to learn a new template language.
  11. Good comparison and and I can agree to almost all of your statements, except: Personally I would count that as disadvantage because Craft is forcing you to use one special template engine. I know you don't want to start a discussion about Twig vs. PHP, so I just want to say that I think it is better to be able to switch template engines like in ProcessWire instead of being forced to use one template engine. ๐Ÿ˜‰ That and the expensive pricing were the reason why I never used Craft for a project yet. But I can understand why you like it so much.
  12. Thank you for your explanation. In this case I would just use an additional if-condition. if ($child->hasChildren() && $child->template->name !== "blog-post") { // Subnav } Maybe not elegant but simple. ๐Ÿ˜€
  13. Maybe I am missing something, but wouldn't it be enough just to check for $page->hasChildren()? What is the benefit of the extra check of the template settings? I always just use $page->hasChildren() for building navigations, because if I have set in the template that a page cannot have children, it will not have children. ๐Ÿ˜‰
  14. Hello @Val_0x42, You could make an AJAX call on your page at the change of a checkbox and save the user data then instead of the form submission. I would also use regular ProcessWire users to get the benefits of access control. Regards, Andreas
  15. Hello @prestoav, I don't have a solution, but I can confirm that I recently had the same issue. I tried to change a page name but every time I saved it was the old name. I noticed that this only happened on my local development environment (ProcessWire 3.0.19x & MAMP PRO) and on a staging server it was possible to change the name. Maybe somebody else had this issue too or a theory. Regards, Andreas
ร—
ร—
  • Create New...