Jump to content

Soma

Moderators
  • Posts

    6,800
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. Soma

    I'm back

    Thanks! Yeah I had deleted my first account after I got 100k followers... don't ask why. Then on my second account @somartist2 I tried to leave 2-3 times but then reactivated the account. And finally I did it. I'm on bluesky now, and still on Instagram and other platforms. No I didn't realize, but yeah I was very active for many years answering and helping many. It's great to hear tho. 🙂 Oh @ryan, thanks for the warm welcome back. Yeah I went on a long journey, glad you been following me. Great to see you're still running this thing haha. And now even using llm's! Yeah OMG so many names that I almost forgot about. I'm an old man now hehe.
  2. Soma

    I'm back

    Sooo, I'm still alive and in August, I will start on a new job and project that probably brings me back to work with the cool and great Processwire. :D 7 years ago I was forced to change job and ended in a cool new place doing front-end dev not using PW anymore. So unfortunately I didn't really use or follow PW in that time except once a year doing something tiny bits on the handful of websites I am responsible for. I'm sorry if I just disappeared "over night" and maybe left some things behind I was doing for PW, and didn't spend time looking out for them. The reason is, I also was very frustrated with a lot of things with the job and life at that time and 2019 was also when I started painting again digitally, as maybe some of you know. I went full hyper focus mode, everyday almost for 2-3 years in my spare time and since then slowed down. I was able to make a small career with it, and made a lot of new connections and experiences which was awesome. I will continue to work on making art and illustrations as I have a lot of new freedom with the new job too combine a lot of my skills. Finally I can work from home full time. A little dream come true. Thanks for still being here and keeping this small but awesome community alive! I have to catch up now! :D Cheers Soma
  3. The dev2 I made to the master couple months ago. So the new commit is just a minor addition to the url parser. I think I had difficulties with making the dev2 to master and I couldn't delete the dev2 branch. ?
  4. Soma

    Looking for a new Job

    I just wanted to mention. I found a new job as a front-end dev at https://backslash.ch. Since 2 months there already and enjoy it. We work with in-house CMS specially targeted to governments. So a lot less PW for me in the future, but I'll use it as my tool for private projects.
  5. Glad you found it yourself. What's also possible is to just add a page-{name} or page-{id} to the item template and use them to style.
  6. I have a config-dev.php for dev server or local setup. and the "root" stays the same just the domains are different.
  7. I don't have cats ? Yes that's true. I know the "redirect if domain name is found in url" would need even a much more sophisticated parsing method, but it gets too complicated for my brain. I think having random strings as root name would be a much easier solution.
  8. Yes the problem is most likely that both sites share the same names in it. abelt.test is in both setups and even in the root name. Just rename the root to something else more unique would do the trick. It's not something you would see anyway. "abelt.test" => array( // domain name is used to map to root page "root" => "abelt", // page name for the root page "http404" => 1031 ), "alexander-abelt.test" => array( // funktioniert nicht mit /en/ auf Home "root" => "alexander", "http404" => 1029 ),
  9. Ah reading againg. Ah reading again, I'm not 100% sure why this happens in your case. (but most likely what i said anyway :)) What is the setup config? And what Module version?
  10. I think this can happen if your multisite root page name has also the domain name in it. You should avoid that. Just rename it to something else My guess is that this comes from the fact you have domain.com and www.domain.com. You want to avoid that, cause the script isn't clever enough to know which is which. In any case you want to avoid having two domains setup for the same site. You should redirect your www to non www or the other way around.
  11. Then if $wire works for the hook $wire inside the funtion doesn't work, need to use wire(). And yes the lock file is most likely the problem cause of using $wire inside your function.
  12. $wire is not available in site/init.php .... You need to use wire().
  13. Have you debug mode on? I think $wire is not available in site/init.php.
  14. I think you looking for this https://processwire.com/api/ref/inputfield/get-errors/ ?
  15. Yeah good point. The way to do it is simple. If javascript is deferred, add the classes like uk-grid etc and not just the data attribute. https://getuikit.com/docs/grid#usage
  16. Yeah that's not anymore. There's a parser on page render now.
  17. Hello guys Though times. Hope this is ok to post here. I'm currently looking for a new job here in Switzerland. I have over 20 years of experience in web development. I'm specialised in front-end HTML5, CSS, JS and backend (PW of course). I also have strong visual design skills. If anyone has a tip or knows a good address, I would really appreciate it. Thanks in advance for any help you could provide. Soma
  18. Are you sure you did everything correct? I also installed a new latest master PW3.0.123, and added 2 multisites to test. Works fine here. Can you show the config or tell more about what you did? The allowed httpHosts should be entered in the config as well. And the multisite config is as shown in the readme. The default 404 page has always been the basic-page template in PW, and the ID is what you enter in the multisite config. This works fine.
  19. Yeah those search fields are something you wanna change to your needs or remove them. It's still something that is not configurable.
  20. Read here what name() does https://processwire.com/api/ref/sanitizer/name/
  21. I'm not sure if it's the user that has output formatting off by default. I'm using this module in a project and have many page fields and image field on the user template and registering works great (though i made some change to the module and made a custom one extending it). I have also a $user->of(true); in the templates/_init.php Could be worth trying?
  22. I must agree as well with all those alternatives and multiple ways for the same thing.... should really stop. I lost track long time ago and 99.99% never use any of them and really don't care at all. It's utterly confusing and I completely don't understand the reason behind it. It makes it harder than it should be. So many things goes against it...
  23. So back to your first post and what is the problem? It's hard to say as it depends what you want to do. I think it's once you $mymodule = $this->wire('modules')->get('MyModule'); The module is loaded and init()'d , unless it's a autoload module. So the fullname is already set. So you want to set the fullname after you set the names or when you call execute. Or have a getter method for fullname. There's lots of ways... <?php namespace ProcessWire; class MyModule extends Process { public static function getModuleInfo() { return array( 'title' => "My Module", 'version' => 1, ); } public function __construct() { $this->set('firstName', 'Han'); $this->set('lastName', 'Solo'); } public function init() { } public function getFullName() { return $this->firstName . ' ' . $this->lastName; } public function ___execute() { return $this->getFullName(); } }
  24. Well set() sets a property to the data property which is PW specific. I think it's mostly used to make it distinct data for a module or object and set data to a WireData module which is used to save data to DB like module/class configurations, change tracking etc. Defining a property directly in the class body makes it just a normal class property which PW doesn't threat special and it won't be in the data array. protected $foo = "bar"; // standard class property - and then set foo using set() $this->set("foo", "baz"); // set data array only $this->foo = "bar2"; // set the class property - You'll end with two "foo" which are not the same $this->foo // bar2 $this->get("foo") // baz (from data array) But If you don't set a class property and only use data array or set(key, value) to define a PW data property $this->set("foo" , "bar"); $this->foo = "bar2"; is the same "foo" Just look a the WireData class
×
×
  • Create New...