Jump to content

zoeck

Members
  • Posts

    436
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by zoeck

  1. You can also combine corresponding classes, for this purpose there is the "@apply" function. This makes it possible to keep the code relatively clean ? Example vom the Tailwind Docs: .btn { @apply px-4 py-2 rounded font-semibold bg-gray-200 text-black; }
  2. You can set your own path to your data directory ? https://processwire.com/api/ref/paths/ or you can use the root directory: $urls->root Site root: / (or subdirectory if site not at domain root)
  3. You can use RockMigrations for such tasks ? It's a very Powerful Module Or just look at the docs ? https://processwire.com/api/ref/page/delete/ // Delete a page and recursively all of its children, grandchildren, etc. $item = $pages->get('/some-page/'); $item->delete(true); It looks like the "true" is missing: $item->delete(true); "If set to true, then this will attempt to delete all children too."
  4. Do you know the "Combo" ProField? https://processwire.com/store/pro-fields/combo/ I'm not sure, but I think this might be just the right thing for you ?
  5. I've been using Bootstrap 4 all the time, but I didn't want to take the step to version 5. I'm making my first, successful steps with Tailwind and I'm currently very satisfied. But you have to learn a lot of new things, because it's still a bit more complicated than Bootstrap, but you also have a lot more freedom. I also use Htmx and Alpine.JS with TailwindCSS ? many nice new things ?
  6. There’s the file field in the core… you can use this field for such tasks. and then there’s the paid module „form builder“ - you can easily create a form and send it via email (+attachment)… The function exists, you just have to use it
  7. You can contact Ryan and renew the licence for Formbuilder. I think that should cost about $39. I think that would be the easiest way to get an updated version ? And there is also 1 year support ?
  8. I think this is the worst solution for probably a small problem
  9. you forgot an s in $pages Wrong: <?php if ($page->get('1025')->FIELD): ?> Right: <?php if ($pages->get('1025')->FIELD): ?>
  10. and don't forget to save the value/page! ? $userPage->save(); https://processwire.com/api/ref/page/save/
  11. I think that would be really cool ? In my opinion, the page overview should be revised. The edit, move etc. buttons should always be displayed. Buttons should always be displayed. So you can call the function faster. Possibly a table view would be nicer here...
  12. You only changed the image, wouldn't it make more sense to use CSS to create round images? https://www.w3schools.com/howto/howto_css_rounded_images.asp
  13. Another small Problem: "Listen To The Voice Of Relief" Two pictures are rounded off - and one is squared...
  14. Can you check if the problem occurs with another browser or incognito window as well?
  15. I think here are some different possibilities: You create a template + page You use the same template/page where your form is (And check it with the $input API) Create a template / page for different functions (for multiple pages) - Here you have to use the $input API to decide what to do Depending on how complex everything is, you have to decide how you want to use it ?
  16. It's already possible to list commercial modules ? For example Padloper: https://modules.processwire.com/modules/pad-loper/ Or dynamic selects: https://modules.processwire.com/modules/process-dynamic-selects/
  17. I have a problem with the module. On a page with 3 languages, the sitemap displays only the default language. The site works without problems, I can switch the languages: domain.ext/ (german) domain.ext/en/ (english) domain.ext/fr/ (french) Is there something else that needs to be set so that the other languages are also displayed? Oh, i found my problem... i still had the old sitemap module installed... ?
  18. Just use the field or Selector ? https://processwire.com/docs/selectors/#or-selectors2 <?php $events = $pages->find('template=calendar-post, Start_date|End_date>=today, sort=Start_date, limit=10'); ?>
  19. Just write <?php echo $page->body; ?> or the short code ? <?=$page->body?>
  20. Line 437: <?php namespace ProcessWire; $content = $page->body;?> Just delete the "namespace ProcessWire" ?
  21. This makes no sense... if($today == $start AND $today == $start) This is redundant, it is simply 2x the same check Use this: if($today == $start)
  22. I have a problem with the new version, each time I open the dashboard, I get 2 messages: If the message is closed, it will be displayed again the next time the dashboard is opened.
×
×
  • Create New...