-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
That is the exactly same bug that I haven't been able to solve yet. I am pretty sure it has something to do with server settings. It modifies the url fine, but still loads the homepage only. Strange. Does anyone have any clue about this? Also notice this: http://corporate.ccw-global.com/it/doesnt/throw/404/
-
I have pretty mixed feelings about this module myself. It does work (well, there is one user where it doesn't and I don't have a clue why), but all should be aware that there are many things to consider: Complexity grows exponentially with each subsite you add. More templates, more fields, more pages Your coding needs to be different if the site is subsite: $page->rootParent isn't actually rootParent, but the home. www.campaign-site.com/processwire/ admin isn't there, it is only at www.main-site.com/processwire/ Maybe not compatible with all the modules. Ie. form builder works, but you need to create new /form-builder/ page under each of your subsites. Cross linking doesn't work yet. Ie. if you use get or find to find pages from other subsites, then echo $p->url() won't give the right url (this is should be actually easy fix, but not yet fixed) If your subsite is big, I don't think using this module is good idea. For simple marketing campaign sites I think this is fine way to go, but for larger sites I would consider other approaches.
-
This is somehow related: https://www.acquia.com/blog/open-source-community-and-freedom
-
I think that create.js is interesting (and made in Finland, JEJ!). I am not much fan of RDF, but in that scenario it actually seems to make a lot of sense. See this (modified their example markup to fit pw): <div about="/path/to/mypage/" typeof="sioc:basic-page"> <h1 property="title">Some title</h1> <div property="body"> Some content </div> </div> The interesting part is that how to automate (or whether automate it at all?) the RDF in markup?
-
Am I little slow or something?
-
But does copypasted tab work? Anyways, I think Pete is hero!
-
Is this code block really editable without breaking indendation: <?php echo "testing testing"; if($thisWorks) { echo "Antti is smiling"; } else { echo "Antti is crying"; }; It works!!!
-
Nik: this seems to be great! although I am having little problem on my localhost when testing. I get this error msg after page save: Unknown page And url on address bar is this: /processwire/page/edit/ I have just installed the module, not touched anything. This happen always when saving. Tried uninstall / install, saving multiple times etc, but same thing. PS: I read the name After Shave Actions (whatever that means ) "After" actually feels little strange as module "headline" - how about AdminSaveActions? Admin would be general enough to keep more modules of this kind.
-
how to use InputfieldSelectMultiple (or InputfieldSelect) ?
apeisa replied to mindplay.dk's topic in General Support
You create those options as pages and use page field. Inputfields can be used outside of PW admin also, that is why there is methods to add options. Form Builder is a great example, but of course most of the modules do use them to build their UI. -
Trouble using hooks with a PayPal module I'm writing
apeisa replied to ffub's topic in Module/Plugin Development
Ah, sorry just now noticed your gist. I'm on mobile so cannot take good look now. Can you provide more code about this module that is using the hook? It should be autoload, but paymentGateway module problem shouldn't. -
Trouble using hooks with a PayPal module I'm writing
apeisa replied to ffub's topic in Module/Plugin Development
Have you prefixed procedsIpn method with three underscores? -
Nate, thanks for the good and honest post. You mention few great points that I do agree. I wasn't too keen on the general tone of this topic and it is great to hear your thoughts. But there are few things I would like to mention: I disagree. For most of us there is a lot more and on higher level than EE or any other CMS out there - that is the reason why we use PW. I had the freedom to choose the next CMS platform for our company. I did evaluate most of the products out there (open source or not, in our projects EE license fees are next to nothing) and PW came out as clear winner (there were 0 third party modules / themes then by the way, January 2011 - PW 2.0 was just released). Now two years later I couldn't be happier - PW has been great for us. Well... I think it is natural that people want to share the good stuff they know. I think for all the people here in this topic the basic intention has been purely honest and nice: "hey, there might be EE users that aren't happy - I hope they find PW since that might solve their problem". But that kind of discussion easily goes to little attacking tone that can annoy people. About to step up our game: I think if Ryan can keep even 25% of the phase that he is developing the core and the growing flow with 3rd party developers and designers keeps up, we are doing just fine No need to try actively catch people from other products - but no need to be shy or shamed about using this great product. EDIT: Pete, alert alert - IP.board is messing my quotes!
-
Tina: there were some JS problems that caused that. Please do hard refresh (F5 or CMD/CTRL + r) and it should work again.
-
I had to click "Change theme" and choose "ProcessWire v2 (import)" to see the new styling (which is awesome!),
-
Templates structure / functions - Best practices
apeisa replied to Sanyaissues's topic in General Support
This topic might give some inspiration too: Since PW doesn't force you to "one way to do it", there are many "best practices". Question is to find the one that makes sense for you. -
InputfieldFile/Image – file upload enhancements
apeisa replied to Adam Kiss's topic in Wishlist & Roadmap
Thinking about the code snippet I provided... Maybe it should be more like this: for(var i=0, l=files.length; i<l; i++) { var urlToFile = HTML5Uploader.uploadFile(files[i], "images"); } // Where "images" is the name of the field that get's the files. -
InputfieldFile/Image – file upload enhancements
apeisa replied to Adam Kiss's topic in Wishlist & Roadmap
Ok. (didn't understand much, I just spilled my coffee.. heh heh). Can you provide example usage which would be most helpful for you. Pseudo-code or js. Something like along these lines I assume: for(var i=0, l=files.length; i<l; i++) { var urlToFile = HTML5Uploader.uploadFile(files[i]); } Where HTML5Uploader would be provided by ProcessWire? I assume you would need a way to poll the upload progress also? -
haha, thanks Willy! I have new favorite artist and definitely inspiration for my personal endeavor in music.
-
InputfieldFile/Image – file upload enhancements
apeisa replied to Adam Kiss's topic in Wishlist & Roadmap
Code. -
We currently published a site (www.martat.fi) that has about 100 000 pages. This is mostly because we use my Discussions module, which has each discussion reply as own page. We did hit on one performance problem, which was quickly fixed by Ryan (https://github.com/r...71f76dba734c955). Usual $pages->find() selectors were fast as always, but when there were $page->rootParent->find() with multiple fields using *= selectoror it slowed down very badly. I don't understand the actual reason, since the slow query should actually be really fast (explain says just simple and simple - so maybe it is bug or something very strange behavior on mysql - no clue). After the fix Ryan provided things are rolling very smoothly. I am pretty confident that PW will scale quite easily for 1 000 000 pages - but that scale might limit the way you can use the API. Because of that I wouldn't probably store that kind of data you have (hits counter) in pages, but in separate database table. Millions of rows are nothing for MySQL, especially if you query data from single table and with simple index (like page_id). But in your scenario I don't see that much benefit of having them as pages and therefore would probably keep them out of there. You don't probably need more than few simple sql queries anyway. Just my 2 cents and I am most definitely not a DB schema designer... There are people who do know this kind of stuff much better (Ryan and Nik for example).
-
InputfieldFile/Image – file upload enhancements
apeisa replied to Adam Kiss's topic in Wishlist & Roadmap
Just to make sure I understand: you want to use JS to upload files, without actually dragging and dropping them into image/file field? Can you show me how you currently do it? -
Permission based, so only the roles that have trashman permission are allowed.
-
I just released a new module: Trashman. It adds new admin page which allows users without superuser role to view and restore pages. Grab it while it's hot: https://github.com/apeisa/Trashman Few screenshots:
- 16 replies
-
- 11
-