Jump to content

Torsten Baldes

Members
  • Posts

    192
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

39,834 profile views

Torsten Baldes's Achievements

Sr. Member

Sr. Member (5/6)

56

Reputation

3

Community Answers

  1. Thanks! This works great. I added a "sticky" checkbox to my categories page and now it stays at the top. 🤩
  2. @elabx Do you mind sharing this solution. I'm in the same position right now and would like to keep my categories on top. Thanks!
  3. Hi, I'm in the process of relaunching a site of mine and wanted to build and test it side by side with the current site. I tried to set the template folder in ready.php for some users with $config→setLocation() to a different folder (as described here): $userNamesWithDevAccess = ['testuser']; if(in_array($user->name, $userNamesWithDevAccess)) { $config->setLocation('templates', 'site/templates-dev/'); echo '<pre>'; var_dump($config->urls->templates); var_dump($config->paths->templates); echo '</pre>'; } This seems to work as intended: string(21) "/site/templates-dev/" string(54) "/Users/myaccount/mysite/site/templates-dev/" But when I go to my frontend, there's only a blank page besides my var_dump. (Same blank page when I remove the var_dump test.) If I go to the backend I get the following error message: Hey now… Error: Exception: Missing or non-readable template file: site/templates-dev/site/templates/admin.php (in wire/modules/PageRender.module line 584) #0 wire/core/Wire.php (416): PageRender->___renderPage(Object(HookEvent)) #1 wire/core/WireHooks.php (968): Wire->_callMethod('___renderPage', Array) #2 wire/core/Wire.php (484): WireHooks->runHooks(Object(PageRender), 'renderPage', Array) #3 wire/core/WireHooks.php (1094): Wire->__call('renderPage', Array) #4 wire/core/Wire.php (484): WireHooks->runHooks(Object(DefaultPage), 'render', Array) #5 wire/modules/Process/ProcessPageView.module (193): Wire->__call('render', Array) #6 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(DefaultPage), Object(PagesRequest)) #7 wire/core/Wire.php (416): ProcessPageView->___execute(true) #8 wire/core/WireHooks.php (968): Wire->_callMethod('___execute', Array) #9 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array) #10 index.php (55): Wire->__call('execute', Array) #11 {main} (I modified the line 584 in PageRender.module to output the whole path.) So looking at the path (site/templates-dev/site/templates/admin.php), it seems the system prepends the new path to the old path. Which is probably also the reason for the blank pages at the frontend. Is this a bug, or am I doing something wrong? Thanks! ProcessWire 3.0.246
  4. This looks great! Is there a way to add some admin actions (e.g. edit, clone, delete) to a column, or would that be done via a custom column template?
  5. @teppo Great module! I just found it after years building my own indexes (with FieldtypeConcatenate). I have a special case where I use a Repeater Matrix inside a Repeater Matrix (building columns). I added all the fields inside the inner repeater (including the repeater itself) to the indexed fields list. But the contents won't get indexed. For simple repeaters (just one level) it works as expected. Is there a way to add the contents of the inner Repeater Matrix to the index? Thanks!
  6. @ryan Does ProMailer work with multilanguage sites? I have a request for a newsletter solution for a Processwire site with 6 languages (incl. chinese, russian and arabic). I guess, this means i would use a list for each language. Right? Are there any other obstacles (mail template, subscribe form, …)? Thanks!
  7. @kixe Do you have any special settings for the sessions? $xy->session->hasCookie(true) is always false, where $xy->session->hasCookie() is true. (I'm logged in to xy.) Thanks!
  8. Thanks! It's my way for a multi-site installation, which I can't/won't use because it's also multilanguage and an existing installation with lot's of pages. So I thought, this would be the easier way.
  9. Thanks! Yes, that could be my way to login. But the user also has to have an account in the other instance to login. That's the problem where my sync question comes from.
  10. @kixe Nice! But I don't think this would work for me. Does this work with backend access and editing? My users need access to every backend to edit content. But I don't want them to manage multiple profiles with (worst case) different passwords.
  11. Hi, i'm looking for a way to automatically sync users from a main installation to (multiple) other installations which all live on the the same server (pw native multi-site). Is there an easy way to do this? Or is the "easy way" to get all the users (with a specific role) via multi-instance (https://processwire.com/blog/posts/multi-instance-pw3/#using-multi-instance-in-pw3) and import/update them regularly (cron job) and disable profile editing for the subsites? Thanks!
  12. @ryan Thanks! I was refering to your "Future multi-instance goals" https://processwire.com/blog/posts/multi-instance-pw3/#future-multi-instance-goals That would possibly a great nice-to-have, but i guess, it's not that easy to implement.
  13. Thanks @ryan! I'll give it a try! Is it also working via http? --- Regarding the profile image: Yes it's from a running clothing brand and it's a statement against racism. The following screenshot is from their website: No, not that I know.
  14. @szabesz @wbmnfktr Thanks for your comments. As I said I'm evaluating the different methods right now. And part of this evaluation is doing some research (e.g. posting here). Narrowing down the possible solutions and building some testcases is the next step. As the main site is already done and live since 2016, the multi site solutions with third party modules are too much hassle. So the possible ways to go are "native" multi site or multi instances. My profile image is from my twitter account and automatically pulled in from there. I don't see where it is part of a discussion here and frankly it's not even political but common sense.
  15. Hi, I just read about Multi-Instance in PW3 (https://processwire.com/blog/posts/multi-instance-pw3/#using-multi-instance-in-pw3). As I'm in the process of evaluating different approaches of a multi site setup, this is one of the choices. Is this working properly or are there any downsides or caveats? @ryan Is this already possible or is it still on the todo list: https://processwire.com/blog/posts/multi-instance-pw3/#future-multi-instance-goals Thanks!
×
×
  • Create New...