-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
I am actually building simple "navigator" module which should cover most of basic navigation needs. I hope to get it released sometime
-
Defintely something we need to solve. Soma: the issue we had was because $this->page->filesManager->path was incorrect and returned nothing - and because of that in your setup it tried save files to your root folder and that is why there were permission problems. The php bug #49286 wasn't the problem then (http://php.net/ChangeLog-5.php) and it definitely isn't now since Nico is running very recent version of php 5.3. But that was before Ryan build the actual file saving procedure, so there was very crude code at the moment. Also, the error message was different (it was permission problem then and because my code was wrong and it tried to save files on your webhost root).
-
Soma: I don't think there are any false facts, mostly opinions. I found article very interesting and honest - it made clear statements about background. It was very clear from the beginning that author isn't pro on all those systems, but was writing about something based on his impressions after little use. Very valuable feedback for us. Flexibility: I think what selfthinker meant with template flexibility is things like possibility for clients to change layout for page. While there isn't any built-in tools for that (for very same reasons that there aren't any themes) it is very easy to build few settings where editor can modify the layout.
-
While I like the simplicity of this, I think we need to be extremely careful with not to complicate overall user access management. This would be simple to build with one textfield and some template coding. I would probably go that way.
-
+1 and upcoming image grid would be nice there too.
-
Yep, that was it (I was running the one where you added ::ready for modules). Thanks Ryan!
-
I get these error messages when I use that hook: Notice: Trying to get property of non-object in C:\apache\htdocs\discussions\site\modules\FieldtypeCropImage.module on line 20 Notice: Trying to get property of non-object in C:\apache\htdocs\discussions\site\modules\FieldtypeCropImage.module on line 21 Does it require uninstall/install to make it work? I have changed few aspects of my code, but not the template side of it. Also - using core hack it does work.
-
Module: Languages (multi language content management)
apeisa replied to Oliver's topic in Modules/Plugins
Just gave this quick testing and I am super impressed with this! I didn't found any problems (also running AdminBar on my test site). I was also amazed about how much there is already implemented, I see how useful this will be for sites that have multiple languages and need to have links between pages. Excellent work Oliver! Testing this got me thinking, this cloning/syncing stuff might be beneficial in other ways also than only language versions. Not sure though, but one example I remember building was site where was "levels", and each level had same articles. (Those levels were like grades for professional sports coaches and articles where different areas about coaching). -
I'm not sure and haven't tested, but should be something like this: $p[$key] = $page; Where $p is the PageArray and $key is the position. If you meant to set it as second page from root, then you would go with this: $p = $pages->get(1)->children(); $p[1] = $page; EDIT: It might also require to save parent page, moved page or both.
-
Thanks guys for the great feedback. When I posted this I was little bit hesitant since I think it is little bit too rough from the edges to be posted, but I have got very valuable feedback. Since this is something where I don't have urgent need myself - I also don't have very strong opinions how it should function. I will make this more polished and version 1.0 soon, which will include these features: When you click thumbnail -link, it will open modal which shows that thumbnail. There is link to re-crop or possibility to close modal. It will autogenerate thumbnails, using default PW-method: center and no zooming Cleaner UI for cropping and after cropping it goes back to first view (shows cropped image and possibility to re-crop) I clean code and add some error handling. Also might hook to ImageSizer class to add Crop-method there Soma: yes, this is only for template usage. You cannot even use this on wysiwyg-editors. I couldn't reproduce the drag & drop problem, so it must be something else on your install that is causing that. Those notices indicate that you have something strange on your crop setups - but I will add better error handling there.
-
Does your embed code work on front end? It seems that tinyMCE adds something, but was there something required missing?
-
Nice looking site Nico! Very clean and polished. I had problems when I visited it with my mobile phone (HTC Desire HD). I couldn't view whole site and unfortunately it "clipped" content from left side - so side menu wasn't accessible.
-
Great stuff Nico. As a side note: our old cms had very similar file management to pw: you add files to any page and the do cross references to those. It works fine on most cases, but sometimes it is just easy to "lost" files for clients ("well.. I don't remember where I put it"). It will be great to have central repo for files (but still keep page relationship). What I would love to have regarding file management is more meta tags for files (tags). This is easy if you go one file per page route - but to be honest - it is clumsy way here. Imagine uploading 50 files that way comparing current ajax way or even old dynamic form method...
-
Yep - that is wip-stuff. I am thinking of showing cropped result + two actions: re-crop or close modal. Currently no. But if you crop again, it will rewrite your existing crop image. I don't save any details about cropping on db, it's only a file. Though I could save those values to image name also and read from there - but I think there is not much value to get back to old crop instead of re-cropping? Or how do you guys think? Yep, that was very quickly done UI there. I have probably hard coded the width of the left panel. It is kind a problematic in all situations, if you have very large images. I'll probably show the preview under the image. Thanks for this, again great example how easily extendable PW is! I will update my module soon to have this and other tiny fixes. Thanks for testing Ryan. Others, here is quick screencast about this module: http://screencast.com/t/me9CSapXF
-
I got hour or so with this and got it working. I don't want anyone using this on production site yet, since this was late night coding and I haven't given any testing or cleaning. But if you guys wanna take a look, then go for it. The feedback I am interested to is that if I have nailed the most of the "thumbnail scenarios" that people have had - especially stillmovingdesign's since he was kind enough to sponsor this development. I think there is one required feature missing and that is autogenerating thumbnails if you haven't set those yet. Also it would be nice to track the thumbnail size also - so if you change thumb setup it would generate new images. How to install: -Add FieldtypeCropImage.module, InputfieldCropImage and ProcessImageEditor folders to your site modules folder. Install those modules from PW admin. -Add this method to /core/Pageimage.php file (I know this is core hack, but only now for testing - need to discuss with Ryan how to implement this). public function getThumb($thumb) { $prefix = $this->sanitizer->name($thumb); $imgPath = $this->pagefiles->path . $prefix . "_" . $this->basename; $imgUrl = $this->pagefiles->url . $prefix . "_" . $this->basename; if (is_file($imgPath)) { return $imgUrl; } else { return false; } } -Create new field or edit current image field and choose it fieldtype as "CropImage" -Edit field and input tab, there last setting: "crop setups". Add as many crop setups you like, here is example: thumb,100,100 portrait,100,180 -Add field to your template and edit template file and add this: foreach ($page->cropImages as $image) { //cropImage is your field name if ($image->getThumb('portrait')) { // "portrait" needs to be something from your crop setups echo "<img src={$image->getThumb('thumbnail')} />"; } } EDIT: Tried to upload small screencast, but my Jing didn't want to co-operate with me. I'll try later again. pwCrop.zip
-
Progress on ProcessWire 2.2 and overview of multi-language support
apeisa replied to ryan's topic in Multi-Language Support
Amazing work Ryan! Thanks for sharing the progress. Can't wait to start testing this. -
It seems that if you give your field name "map" then it goes into infinite loop somewhere. Renaming field to something else than "map" fixes this.
-
I will take a look at this somewhere in not too distant future (before Christmas). Probably small tweaks what is required.
-
solved Problem displaying a datetime field in spanish
apeisa replied to landitus's topic in General Support
Just 5 min ago used setlocale for finnish content. Had to install it first (on ubuntu): sudo apt-get install language-pack-fi-base and after that this spell did the magic: setlocale(LC_ALL, array('fi_FI.UTF-8','fi_FI@euro','fi_FI','finnish')); I found help from here: http://www.php.net/manual/en/function.setlocale.php#90919 Actually on ubuntu it seems that only different en_ locales are installed by default. Probably most web hosts have most popular languages covered. -
Sorry for short posts (mobile). Shuffle ia documented here: http://processwire.com/api/arrays/
-
You could use shuffle method instead.
-
Actually, I am not sure if this is a good idea anymore Probably something where repeatable elements would fill the gap most of the times. I am currently building simple event management, and I need to support multiple instances for same event. Decided to add other instances (place and time) as children pages. It all feels nice, but not sure how easy it is for end user.
-
Yep. Optional setting would be great.
-
If there is only one template allowed for children, then it would be nice to show that template name instead of more generic "children" as a tab label. Of course this would require nice (& multilingual) titles for templates. And actually would probably need plural version of that title also. So when I am viewing my "news" template, it would show "News items" instead of "Children".
-
Probably just like this. My setup is like this: /www/processwire/modules/AdminBar /www/processwire/modules/Discussions /www/processwire/modules/ProcessRedirects etc... these are all git clones so I can update them with just git pull. And when I need module in one of our sites, I just say in my /site/modules folder this: ln -s /www/processwire/modules/AdminBar and voila. I also keep two different versions of wire folders which are symlinked. I have named those P21stable and P21head. All of our sites use stable version, but I regularly test with dev versions that they also run head. And if I need something from head, then I will update stable to latest head. Of course it might be that I need more versions (and of course P22, P23 etc..), but so far this has worked fine!