-
Posts
155 -
Joined
-
Last visited
-
Days Won
5
alxndre last won the day on February 25 2018
alxndre had the most liked content!
About alxndre
- Birthday 05/06/1987
Profile Information
-
Gender
Male
Recent Profile Visitors
6,200 profile views
alxndre's Achievements
Sr. Member (5/6)
267
Reputation
-
alxndre changed their profile photo
-
Upgrading to PW3 / Page Reference Field (PHP Custom Code) Problem
alxndre replied to Orkun's topic in General Support
Have you cleared the modules cache and the compiled files? -
Instead of repeaters, you can use a multiselect Page Reference field, along with the ConnectPages module to synchronize the connection. With this, your genre fields on your movie page, and vice versa, will be visible and always updated, and if you prefer you can display the field in a separate tab using fieldset.
-
The same error is being discussed in this thread where throwing a 404 exception in an include file throws an exception (well, a different one). In that thread it seems that there are different scenarios that can trigger this. What I'd suggest right now is to install the Tracy module if you haven't yet to give you a better look at what's happening.
-
Because at this point, $notes is only a string. $dude->notes returns the contents of the field notes, not the field itself. Why do you need to assign the field to another variable? In most cases this should be enough. $dude->notes = "He's a dude"; $dude->set('notes',"He's a dude"); $dude->save(); //or $dude->setAndSave('notes',"He's a dude");
-
The easiest I could think of is to export your models into CSVs using this exporter app or by code with this library, and then upload them using ProcessWire's CSV import module. It would require some planning on how you would map your existing data into ProcessWire tree, and its field/template/page paradigm, but it shouldn't be too hard once you've figured that out.
-
You could try using the FieldTypeDecimal module for this. If I remember correctly, there is a setting to specify number of decimal places in there.
-
@Sebi, I'm trying out both the single and double JWT auth methods. Double JWT works fine in my tests. With single JWT, it seems that when Bearer token is being ignored if it is not supplied. Meaning, if I submit a request with only an API key (no JWT token), the request is accepted. At the same time, if I submit the request with a wrong Bearer token, it responds appropriately with error 400. In my understanding, both scenarios should return a 400. I'll perform more tests to verify and report if it really is the case or if I'm missing something.
-
recipe Utility function to recursively search through repeaters
alxndre replied to MoritzLost's topic in Dev Talk
This is a nullable type variable declaration. It simply means $allowed_repeater_types could either be an array or null. https://www.php.net/manual/en/migration71.new-features.php -
There are some modules that have their own configurations/settings that are displayed on this page, which are applied using this submit button.
-
Simple issue with find based on Select Option value
alxndre replied to cst989's topic in General Support
Can you share your actual snippet so we can see if the issue is coming from somewhere else while you're building your filter string. -
This reminded me of endless hours making my Geocities site look perfect. And your the site looks awesome! And then I proceeded to spend an hour learning about shoelaces. ? Fascinating stuff! ?
-
I think his problem is how to get the value for $hash. // $hash = ????; $hash = howToHashThePlain('password1337'); $u = $pages->get("template=user, pass=$hash"); I'm trying to figure it out as well but most of the related things (salts, functions matches and hash) are set to protected, so I'm thinking this could not be done without touching the core modules, or extending/duplicating them to support generating the hash for the field on-the-fly. I'll perform more tests when I could. ? On a side note, I could not imagine a practical use case where you -should- be using the password field to search for members given that passwords are not meant to be unique or indicative of anything. So if OP could enlighten us on how he's using this, maybe we could be motivated to work on it more. ?
-
Is it possible to use HTML tags in log files and how?
alxndre replied to Juergen's topic in General Support
I don't think this is possible because WireLog replaces the escape characters with spaces: // somewhere in WireLog::save() $text = str_replace(array("\r", "\n", "\t"), ' ', $text); and it also sanitizes the tags when outputting. -
Option to set a "home" child as admin menu link
alxndre replied to neosin's topic in Wishlist & Roadmap
Usually we use the finder (Pages > Find) and saving bookmarks for commonly used filters. Other times, we create custom module for this if additional functionality is needed. -
[Solved] How to get pages without children using one template?
alxndre replied to Remi's topic in API & Templates
Maybe because findMany uses lazy loading and could not evaluate the results' children.template selector.