Jump to content

LostKobrakai

PW-Moderators
  • Posts

    4,956
  • Joined

  • Last visited

  • Days Won

    100

Everything posted by LostKobrakai

  1. NotificationArray is extending WireArray, so all the WireArray functions should work there.
  2. Just had to look this up for another topic here, but this could be useful for you: http://modules.processwire.com/modules/form-template-processor/
  3. @kongondo What a post. Seemingly crowed by arrows, but after a few looks so full of info. Are there any good tutorials out there about this topic? A few month ago I had my problems to enable fulltext search in one of my modules and I would like to know a little more about this. Preferably without learning SQL in it's entirety.
  4. <ul> <?php foreach($homepage->children as $nav){ echo "<li>".$nav->title; if($nav->numChildren){ foreach($nav->children as $nav_2){ echo "<li>".$nav_2->title; } } } ?> </ul> This should generate a single list of entries, even though pages are nested in the backend. Just change the variables to fit your purposes.
  5. Just to be clear, what exactly did you expect? There's nothing special about this pages in any way. What you see if you click on "view" comes from the template's php file. Change that file, to show you're formdata instead of the form itself. But keep in mind to limit the access for these pages, as I would think you don't want public form data access.
  6. This library is not meant to work after html5 spec, in fact even Ryan didn't meant it to be used for the frontend. It's presumably even older than the spec. If you take a look at "required", this doesn't even set the html5 required flag, You would need to add this as attribute by yourself, too. I would just use "autofocus" for the value and the name.
  7. In my opinion it's not exactly about doing a disconnect. Nowadays tech is our constant focus. You work at a computer, in the evenings, you chat on your phone or your tablet and so on. It's this omnipresence that I think is the problem. If the techology could master the step of becoming independent from this devices I imagine it could do a better job of enhancing real life, as currently it's more of an replacement, which has such an all-consuming feel to it.
  8. I've had a good time using valitron at one time. Have a look here about in and it's use in pw: https://processwire.com/talk/topic/7763-form-validation-with-valitron-library/
  9. Have a look at what the function actually does. It's looking if the template of the current page is named "settings", so this only removes the delete tab for the "settings" template. Change this to fit your purposes. For the settings tab, there's also a Fieldset "ProcessPageEditSettings" with a tab also named "ProcessPageEditSettings". Remove them in the same fashion as the "ProcessPageEditDelete".
  10. The current stable version of ProcessWire is 2.5.3, dev version is 2.5.15. For easy updating I would suggest using this module: https://processwire.com/talk/topic/7525-module-processwire-core-upgrade/
  11. You can edit the topics title by editing the first post in the full editor.
  12. It's funny if you take a look at the video, ignore the hologram stuff and just analyse the actions of the people there. Then you'll realise how much has to happen, before something like this really gets useful. By now it's just barely more than a 3D monitor. A year ago I wrote my bachelor theses about virtual reality and the interaction of those, but with the extra feature of (theoretical) haptic feedback of those holograms. That's the point when this will get suddenly much more interesting.
  13. I just looked a a single example Wordpress site, which happend to have the pretty url in the canonical tag. So google shouldn't know about the ugly ones as long as you're using only pretty urls.
  14. I've added a barebone module to the processwire recipes site, so maybe people will just point to a single source for something like this and Soma doesn't have to ramble about details as much https://processwire-recipes.com/recipes/extending-page-save-process/
  15. // Skip the label as long as it's blank $submit->set('skipLabel', Inputfield::skipLabelBlank);
  16. For skipping labels have a look here: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/core/Inputfield.php#L67 and in the __construct() a few lines below.
  17. Have a look here. You can https://github.com/ryancramerdesign/ProcessWire/blob/6cba9c7c34069325ee8bfc87e34e7f1b5005a18e/wire/core/InputfieldWrapper.php#L65 You can change this with the setMarkup / setClasses Methods on the InputfieldForm.
  18. data_max_age is set in the module's settings. As for how often, I'll quote from the module directory text.
  19. While I still can't image what exactly you're trying to archieve, I don't think repeaters are the thing you need. Repeaters do what the name suggests, they repeat a single kind of contentblock. Currently only pagetables are able to show/group different "subtemplates" into a page, which seems like what you want to do with your content blocks. As to your request of disabling the repeater button. You could write a module which extends the repeater and includes a simple javascript file to hide the button after a given number of items. Additionally you could then hook into the page saving and look for the number of repeaters and delete potential excess ones.
  20. 2.5.3 is the stable version, so this should be included even there.
  21. Which version of processwire do you use? I just tried it on the newest dev version and there was no problem.
  22. You still need to change the second part of the condition to work with a page field.
  23. // Page field single if($page->blog_categories->title === "Swatch"){ } // Page field multiple if($page->blog_categories->get("title=Swatch")){ }
  24. You need to add the hook in the init function as you can see it done in my first post here. The thing you're writing there is a class, these can only hold properties and functions and not raw code, like you did. It's only there to provide functionality, which can be called later. The init function of a module is always called on loading the module.
  25. @Soma I updated my post to reflect this as there could easily be people just copying the whole thing.
×
×
  • Create New...