-
Posts
1,358 -
Joined
-
Last visited
-
Days Won
16
Everything posted by elabx
-
Hi! Has anyone tested this module with recent ProcessWire versions?
-
Why is composer an overkill? You are one command away from the library! The docs don't seem to offer the library as a package.
- 9 replies
-
- 2
-
-
- include
- phpspreadsheet
-
(and 1 more)
Tagged with:
-
Yep, getting the exact same behaviour!
- 6 replies
-
- forum
- bad gateway
-
(and 1 more)
Tagged with:
-
You could use a Table (or multiplier) field to set this up. And when rendering your JSON output, generate the variations using the Table field data on the page.
-
I think there is no way around this currently.
-
When you say page listings you mean Listers?
-
I don't know how many times I write ProcessDatabaseBackup just to find out it needs to be plural.
- 8 replies
-
- 1
-
-
- module
- autocomplete
-
(and 3 more)
Tagged with:
-
TemplateFile::render does seem to be a good place to tweak the markup right before it goes into the MarkupRegions class. Is that one not working? Here is where the template is rendered: https://github.com/processwire/processwire/blob/master/wire/modules/PageRender.module#L514 Here is where the markup regions are populated: https://github.com/processwire/processwire/blob/master/wire/modules/PageRender.module#L524
-
The fields are created from the template tags! It's been a long time so I don't remember the complete process for a complex field (e.g. repeater type), but I do remember that setting up a text field is done this way. You write the tag in your code and it shows up in the backend. Not really my goal here! haha. But just today I was thinking how I could leverage on tools like Webflow (which I like a lot) but allow for better maintainability if you update your design. Anyway, just ideas ? Maybe this belongs to Dev Talk now that I think about it?
-
WOW did you seriously just build this?! Thanks a lot!! Very educational code. I'll just rip this from the Perch documentation: <perch:repeater id="images" label="Images" max="5"> <perch:before><ul></perch:before> <li> <img src="<perch:content type="image" id="image" label="Image">" alt="<perch:content type="text" id="alt" label="Description">"> </li> <perch:after></ul></perch:after> </perch:repeater> I THINK I could also see how something like this could be implemented too. Anyway, thanks a BUNCH, I might work on your proof of concept a bit further down the road.
-
According to here: https://www.php.net/manual/en/function.curl-setopt.php It does look like it's the same, those two dots at the end seem to indicate the password is coming, though stripe doesn't seem to need it.
-
Hi everyone! Does anyone know if there is a way to render field values in this way: <div data-field="home_text"></div> And then if field exists it just fills in? I'm thinking of the case of using a tool for designing markup like Webflow. A little bit like how Perch CMS handles their content tags: <perch:content id="heading" type="text" label="Heading" /> I feel a lot of this is also in the markup regions area ?
-
Hi! Doesn't seem to be ready, I see it commented here : https://github.com/processwire/processwire/blob/master/wire/core/WireHttp.php#L545
-
I don't know how to do this in PW, but I'm guessing something like GROUP BY in mysql should work. Check RockFinder I see some examples: https://github.com/BernhardBaumrock/RockFinder#custom-sql-aggregations-groupings-distincts
-
Hi everyone! Reviving this. I have a PageArray with pages with two different templates, both with different date properties/fields which need to be used for sorting. Anyone got a suggestion for this? EDIT: Found this solution from @LostKobrakai which might work. I'd wonder if I could simply do the sorting right in the db like @LostKobrakai suggests.
-
PW form integartion with Mautic or using Zapier ?
elabx replied to Rajesh Khanna's topic in API & Templates
No ready-to-go module that I can find. I don't know the details but they seem to support basic authentication to the service just fine. So probably just install their library through composer (or manually) and do the API call on the POST request of your frontend form. https://developer.mautic.org/?php#basic-authentication https://github.com/mautic/api-library- 4 replies
-
- 3
-
-
-
- zapier
- integration of applications
-
(and 1 more)
Tagged with:
-
@adrian thanks for your input! I guess I'll just give up (for now) ? Hadn't thought of a particular advantage rather than I just like to avoid string concatenation just for a personal preference. Pretty much like @adrian says, it looks cleaner imho.
-
PW form integartion with Mautic or using Zapier ?
elabx replied to Rajesh Khanna's topic in API & Templates
I guess if Zapier is an option send a copy of the POST request to a Zapier endpoint (with FormBuilder even easier) and then plug in a Mautic step that adds it as a contact.- 4 replies
-
- 1
-
-
- zapier
- integration of applications
-
(and 1 more)
Tagged with:
-
Thanks for your help @Zeka! Did find this topic while searching for a hint. I am familiar with OR groups, but what I am trying to do here is "migrate" from using string selectors to array selectors, but I can't just get them to behave like its string equivalent! I understand it will be hard to debug this without the whole scope of the ProcessWire project but maybe some has been through the some of the same issues.
-
I have this selector: $operacionesSelector = []; $operacionesSelector['template'] = ['transaccion', 'pago']; $operacionesSelector[] = [ 'pago_entity' => $user ]; $operacionesSelector[] = [ 'transaccion_representante_cliente' => $user ]; $operacionesSelector['sort'] = "-created"; $operacionesSelector['status<'] = Page::statusTrash; If I dump the PageArray object with tracy debugger I get this selector within it's properties: template=transaccion|pago, or1=(pago_entity=8828,title!=""), or2=(transaccion_representante_cliente=8828), sort=-created, status<8192 The problem is, I'm not getting the same results as this selector/find: $pages->find("template=transaccion|pago,(pago_entity=$user), (transaccion_representante_cliente=$user), sort=-created, status<" . Page::statusTrash); That translates within the tracy dump as: template=transaccion|pago, =(pago_entity=8828), =(transaccion_representante_cliente=8828), sort=-created, status<8192 And this "normal" selector does return the expected pages. I don't see why my first selector does not find the pages it should, if I understand correctly the OR selectors, both of this selectors work the same and should find the same pages. Maybe I'm missing something about access control?? Though the template meant to be found shouldn't suppose any issue with the user roles/permissions.
-
Importing JSON to pages - updating existing page/deleting
elabx replied to nsc's topic in API & Templates
You can assign the fields again and save again just like you are doing right now, there's also just field saving like this: $page->some_field = "new value"; $page->save('some_field'); In this scenario I think either is just fine, just useful to know when you get into hooks and stuff like that ? -
Using a PageField and supply specific data to the PageField's context
elabx replied to a-ok's topic in General Support
I don't understand if the total code is random as in, generated on runtime (like and shop's order id?) or if it can exist as another page and be referenced. -
Importing JSON to pages - updating existing page/deleting
elabx replied to nsc's topic in API & Templates
If i'm not missing any detail, you can just call this in you if clause: https://processwire.com/api/ref/page/delete/ if($exists->id) { echo $exists->delete(); } else { ... }