Jump to content

dotnetic

Members
  • Content Count

    780
  • Joined

  • Last visited

  • Days Won

    8

dotnetic last won the day on February 15

dotnetic had the most liked content!

Community Reputation

868 Excellent

About dotnetic

  • Rank
    Superhero

Contact Methods

  • Website URL
    http://www.jensmartsch.de
  • Skype
    jens.martsch

Profile Information

  • Gender
    Male
  • Location
    Münster, Germany

Recent Profile Visitors

8,071 profile views
  1. There is an alternative method in ProcessWire to determine if $page is editable by current user: https://processwire.com/api/ref/page-permissions/editable/ It returns true or false if the user is allowed to edit the page.
  2. Yeah, little bit of confusion on my side. I think it was too hot on this day. Moving to the dev branch.
  3. Changed the translation of "move" as suggested by @bernhard: https://github.com/jmartsch/pw-lang-de/releases/tag/4.0.1 Also added new translations for latest master 3.0.159 https://github.com/jmartsch/pw-lang-de/releases/tag/5.0.0
  4. The big catch is, that no HTML is generated but structured data and you only have to define your elements once and can reuse them as often as you like in one field, without modifying the template or adding new fields to ProcessWire. You can move things around and render the different elements like an image for example, however you want it. Output it as a picture element, put some divs around it, etc. Or render a heading of level two as a heading level 3 instead. This is not possible if you only have HTML.
  5. This is awesome. Have to test it in production. Thank you
  6. I think I can also lead you in the right direction. I think it's possible, if I understood you right. You can get all fields of a template and render them in a module, if you want to. And so you can with multiple templates. Do you want to do the output on the frontend or in the admin? Maybe I find the time in the next 2 days to give a more detailed answer. What do you mean with that? What you mean with modules? ProcessWire modules or just a modular approach?
  7. You can achieve what you want with ProFields: Table. It is excactly what I did for a customer portal: You can add as many items as you want, and define the type of each field of a row. For example the field "Eigenschaft" is a FieldtypePage, which pulls it options from a list, that my customer can manage himself. Additionally one requirement was, that when one item was already selected, then it should not be selectable in the other rows. I wrote a blog post how to do this: https://dotnetic.de/blog/disable-options-in-select-elements-that-are-already-selected-in-another-select-element/
  8. Shut up and take my money. I also thought a long time about making a fieldtype with editor.js, because it is just awesome to store contents as structured data. Prosemirror is an alternative, which works similar and is used in Statamic for its Bard field (which is also awesome). Is there any release date yet?
  9. Thanks @horst for this tutorial, which is very good for new users. I also updated the link in the README of the german language pack: https://github.com/jmartsch/pw-lang-de/blob/master/README.md
  10. @awesomolocity I think I found out what you meant: You selected no filter for the module name or the category and then clicked "show all". That was a bug/missing feature, which is fixed now https://github.com/jmartsch/processwire-modules-manager2/archive/v2.0.103-beta.zip.
  11. Hi @awesomolocity. The XHR request is only being made once on loading the module, and not when changing what to show. If you select "Show all" make sure, that nothing is selected in the "Search for module" field. If a category is selected "Show all" means to show all modules in this category.
  12. You won't regret it!
  13. Till which step did you get? Is the setup completed? Did the error occur within the setup?
  14. Your are welcome. I don't think that this should be in the module repository, as it is for a very special case. And If users or search engines guess your preview variable, they are able to see/index your content, which is not yet to be meant to be read, hence the unpublished status.
  15. The first selectors would not return unpublished pages. You have to use $pages->find('your-selector, include=unpublished') or include=all instead. The $pages->get() method already includes hidden and unpublished results, as you are explictly requesting pages. Regarding your problem: You want to hook the ProcessPageView::pageNotFound method and modify the output. I made a little proof-of-work module for you. It is a combination of the hooks for pageNotFound and Page::viewable. Maybe there could be a better and easier solution. Install the attached module to test it out. previewOption.module.php
×
×
  • Create New...