-
Posts
4,956 -
Joined
-
Last visited
-
Days Won
100
Everything posted by LostKobrakai
-
NotificationArray is extending WireArray, so all the WireArray functions should work there.
-
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/
-
@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.
-
<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.
-
regarding saves form as page of FormTemplateProcessor module
LostKobrakai replied to adrianmak's topic in General Support
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. -
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.
-
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.
-
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/
-
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".
-
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/
-
You can edit the topics title by editing the first post in the full editor.
-
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.
-
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.
-
New to Hooks, trying to wrap my head around the syntax
LostKobrakai replied to creativejay's topic in Getting Started
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/ -
// Skip the label as long as it's blank $submit->set('skipLabel', Inputfield::skipLabelBlank);
-
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.
-
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.
-
data_max_age is set in the module's settings. As for how often, I'll quote from the module directory text.
-
Best way to make this Markup Generation Module
LostKobrakai replied to joer80's topic in API & Templates
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. -
2.5.3 is the stable version, so this should be included even there.
-
Is there a way to rename the default admin section names?
LostKobrakai replied to evanmcd's topic in General Support
Which version of processwire do you use? I just tried it on the newest dev version and there was no problem. -
New to Hooks, trying to wrap my head around the syntax
LostKobrakai replied to creativejay's topic in Getting Started
You still need to change the second part of the condition to work with a page field. -
New to Hooks, trying to wrap my head around the syntax
LostKobrakai replied to creativejay's topic in Getting Started
// Page field single if($page->blog_categories->title === "Swatch"){ } // Page field multiple if($page->blog_categories->get("title=Swatch")){ } -
New to Hooks, trying to wrap my head around the syntax
LostKobrakai replied to creativejay's topic in Getting Started
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. -
New to Hooks, trying to wrap my head around the syntax
LostKobrakai replied to creativejay's topic in Getting Started
@Soma I updated my post to reflect this as there could easily be people just copying the whole thing.