-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
/processwire/
-
For all you star wars fanatics: http://www.amazon.com/Darth-Vader-Star-Wars-Chronicle/dp/145210655X Arrived today and me and my 5 year old son both love it Please feel free to share other great stuff here.
-
I assume they show up only for superusers or do others see them as well?
-
Thanks Andrew - definitely looks neat. Although not sure how good fit that is for "inline editor", since that requires textareas - where Mercury and Aloha do work with any element. Not sure when and what I will develop for Adminbar next. So far it has served our client needs pretty well.
-
Not sure if I am dreaming here, but was'n page creating in API working with just title at some point (it created name automatically from title). I just updated one project to latest and my "used to work nicely" code now cries: Error Uncaught exception 'WireException' with message 'Can't save page 0: /asiasanat//: It has an empty 'name' field' in /data/www/testi.potilaanlaakarilehti.fi/doc/wire/core/Pages.php:463 Code that used to work and now doesn't is: $t = new Page(); $t->template = $templates->get("tag"); $t->parent = $pages->get(1011); // 1011 => /asiasanat/ $t->title = $tag; $t->save(); Fix is of course simple, but I used to like this shorter way to create pages... EDIT: Never mind, it does work. It doesn't work if your $tag is actually empty string...
-
- 2
-
-
That is true - but I think there are more and more talk about PHP actually being a "framework" itself. I was maybe referring more to myself: as I learn more and more - and understand better what I am doing - it often feels more safer to use less code (=> drop the framework which might have huge amount of code for the task).
-
Well.. I think one thing why people lean on frameworks (at least I do) is that when framework is strict and well documented - it is nice to code knowing "I am doing this in a way it is intended". Things like "Because I use this DB class from this framework, it does take care of this and that security issue". So when you are not that seasoned developer, it is nice to have something to guide you. I think pretty similar use case is when company uses one framework to get coding standards from framework. Since PW is pretty open and non-strict (and should be), I guess many people are looking for "best standards". Partly this is probably because we are used to "this is how you should do thing X when using framework Y" - and PW answer usually is: "Well, since we are using PHP here, you can do that in many ways." But to answer more directly to your question Ryan: what I have used and found beneficial over the time on frameworks I have used: forms, input validation, file uploads, pagination, cache, authentication... I think pw already has pretty good balance on this and I haven't had need to use any other frameworks or helpers when using pw, so probably best answers comes from people who have used flourish and pw for example. But maybe validation class is something I would like to see in PW.
-
If I had to put it shortly: PW gives you (that are missing from many more traditional frameworks): Admin, users and access management UI for building your data schema (clicking on admin instead of coding) Url mapping to pages (no need to define routes) Something pretty similar to most (with a twist of course): PW API == GOOD ORM Controllers == template files can be easily used as a controllers What is missing (what some frameworks have): Crazy amount of helpers (as others have noted, using zend classes or flourish can be good help in that kind of situation) Routing (I hate doing routes... mostly repetition) Custom template languages Strict rules how to construct your code What pw "requires" that you might not like in your app: Unique database schema: you don't have single "posts" table, instead you end up with field_title, field_body, field_author, field_date etc.. tables MySQL, MyISAM
-
Very nice, I love the mysterious color scheme.
-
I share here few other sites we have released lately, running on pw: http://www.wg-2015.com/ (using multilang) http://www.martanpuoti.fi/ (using shop module and multisite module) http://www.marttaperinne.fi/ (using multisite, runs same install than martanpuoti.fi) http://www.uimaliitto.fi/
-
We released our new site yesterday: www.avoine.fi Development started over a year ago with 2.0 and we nearly finished it then. After that we let it be for 12 months and now got back to it with good content and development sprint. We are quite a happy how it turned out. Now running latest 2.2. Initial design was made by Niko Kauranen (www.propello.fi) and development by me. There are few changes in design also in this almost 1½ year cycle, but not that much. Niko has done great job, since it still looks fresh in my eyes, I really like the design.
-
Forget about me. I took a quick look at the screenshot and thought it was for admin use
-
Looks excellent Soma! I don't think even that little change is required, since there is Ajax API in ProcessPageSearch: http://processwire.com/talk/topic/301-field-type-from-db-and-by-ajax/page__p__3373#entry3373
-
Remove all line breaks from file shown to visitor
apeisa replied to Lars282's topic in General Support
Hehe, I read this from mobile and right when I got here I had to post that link - didn't notice Diogo's post there. Kertaus on opintojen äiti, as we say here (Repetitio mater studiorum as they use to say). -
Remove all line breaks from file shown to visitor
apeisa replied to Lars282's topic in General Support
This might be interesting read for: http://css-tricks.com/fighting-the-space-between-inline-block-elements/ -
And Ryan also committed this now: https://github.com/ryancramerdesign/ProcessWire/commit/beb6d8e1c290a2c77665ebc9ec959feb293347b2
-
Oliver: dev branch was last updated 4 months ago. Ryan uses it whenever there are big features that needs some testing (like there was with languages or/and repeater). Currently master branch is the "most edge" version.
-
Nikola: you still have that crazy red search bar there Other than that - this is my favorite theme. Very beautiful, clean and polished.
-
If I remember correctly, process modules do that, but not others.
-
Some images not responding to size - please help!
apeisa replied to onjegolders's topic in General Support
Sorry my quick reply, read too fast. I don't see anything wrong in your code. What does $thumb->url looks like on the images that are not resized? Do they have 100x75 on their filename? Hmm.. if the thumbnails are not showing in the admin, then it seems to be server issue. Do you have GD2 installed? -
Some images not responding to size - please help!
apeisa replied to onjegolders's topic in General Support
Please, do upload the code, that will help. You don't tell which way you are doing your re-sizing. Is it on your template code or do you use "max image dimensions" field setting? -
bug Drag 'n drop uploading generates duplicate files
apeisa replied to apeisa's topic in General Support
That was it - works now. Thanks for the quick fix Ryan. -
bug Drag 'n drop uploading generates duplicate files
apeisa replied to apeisa's topic in General Support
Thanks diogo! I hope I can test more today too (super busy atm). -
Template based default sort order is definitely nice idea. Are you referring to admin sorting? If you have there "created" set, then you cannot resort them manually, since created is forced. I haven't noticed any strange behavior when adding new pages... always assumed they are created as last ones, if there isn't any sorting set. But after quick testing there actually was different behavior: usually new page went as last one, but sometimes as second last or third last. So it would definitely be better to have new pages as first or as last pages when using custom sorting.