-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
I have implemented TinyMCE, AlohaJS (when it still had ExtJS dependencies) and now CKEditor 4.0 in various projects and I have to say that I really loved how the CKEditor 4.0 works. It was very fast to implement, easy to customize, works fast and it supports both inline/textarea... It has brilliant documentation (http://docs.ckeditor.com/#!/guide) and as a cherry it looks very pretty. After I have implemented it in this project (I use it for frontend editing in this case) I will definitely look for implementing CKEditor Inputfield. I think the table editor alone is so much better than what TinyMCE that it is worth it. But also looking for some nice scenarios to implement CKEditor on frontend - maybe with AdminBar 2.0... (there isn't yet a thing called AdminBar 2.0, but who knows...)
-
Joss, there are many many ways to find Page / PageArrays. $pagesAboutAntti = $pages->find("title*=Antti"); // It does "break" only if title is changed $anttisChildren = $pages->get("name=antti-peisa")->children(); // It search for page which name is antti-peisa and returns all it's children $personCalledAntti = $pages->get("template=person, name=antti"); // This one I use a lot - combined with family settings it is pretty much bulletproof Btw: I myself almost never use the $somePage->render() - I have found very little use for it (for widgets/blocks maybe). So much more common case is to grab a page and output only what is needed, like this: $latestProduct = $pages->get("template=product, sort=-created"); echo "<a href='$latestProduct->url'>$latestProduct->title $latestProduct->price €</a>":
-
Deane mentions ProcessWire on his recent blog post: http://gadgetopia.com/post/8219
-
Nice writing Soma. I agree and I think this is what is happening here:
-
ProcessWire Conference 2013 / London / Cambridge
apeisa replied to ryan's topic in News & Announcements
Great news, congratulations Ryan and Family! -
(Did some topic merging, hopefully I didn't mess anything...) Few missing links: http://www.mademyday.de/why-i-chose-processwire-over-modx.html http://www.cmscritic.com/critics-choice-for-best-free-cms-goes-to/ http://www.cmscritic.com/processwire-review/
-
That article looks great, very nice screenshots. It would be great to get it translated!
-
For the quick look the textile headings don't make much sense to me. They don't look like headings at all, and if you don't know html tags, then they are just confusing. Although I am pretty sure that in this case I don't need headings at all. Other than that, I do like the syntax a bit more. *bold* > **bold** etc, although they are pretty similar.
-
Hacking the core to have no trail slash as default
apeisa replied to Adam Kiss's topic in General Support
Neil - it's up to your server and backend what http status you serve - nothing to do with trailing slash. -
Thinking about to use one of those in Discussions module (or maybe both). Interested to hear about main differencies: Which one has friendlier syntax and why? What kind of editors are available for both? Why markdown seems to be more popular? Having @netcarver on Textile camp is huge plus for that side, but since I am pretty much newbie on this I figured I ask before I go any further.
-
I think you need to provide more detail. For the sites I have build I have always used the one /tools/ page which has many subcategories, like: /tools/recipes/recipe-categories/ /tools/recipes/recipe-types/ /tools/tags/common-tags/ /tools/tags/events-tags/ /tools/cities/ etc... Some of those are editable by client, others just for superusers.
-
Very cool site Diogo, definitely one of my favorites here!
-
Ah, actually the per field settings were another community contribution. I think it wouldn't be too hard to get rid of the FieldtypeCropImage alltogether, need to take a good look at it some point.
-
Possibility to login user through API without knowing password
apeisa replied to apeisa's topic in Wishlist & Roadmap
Damn, my code was so close already Thanks Nik, that example of yours will get into good use tomorrow! -
Thanks Ryan for superfast reply & fix, I'll test this tomorrow.
-
Nope, it compares timestamps.
-
Possibility to login user through API without knowing password
apeisa replied to apeisa's topic in Wishlist & Roadmap
Nik, Ryan, anyone: getting back to this. I am not yet building the module (admin login), but have another use case (3rd party integration). I would like to hook into Session::authenticate from template code. Is that possible or do I need an autoload module to use hooks? -
Thanks Soma - that actually allows to remove it with delete/backspace also!
-
I can't seem to get repeater selectors work correctly with date fields. I have a repeater with four fields: photo (single image) bannerlink (page field) startdate (date) enddate (date) What I want to achieve is getting one random repeater which has startdate < time() < enddate. So it should have startdate which is before this very moment and enddate that is after this moment. Results I am getting are strange: // Get the current timestamp $time = time(); // I put my repeater pages into variable $banners = $page->shop_banners; // This is where things start to go strange $less_banners = $banners->find("enddate>0, enddate>$time"); foreach($less_banners as $p) { echo "START: " . $p->startdate . " < NOW: " . date("j.m.Y H:s", $time) . " < END: " . $p->enddate . "<br>"; } /* I have total 6 items, where 4 doesn't have anything on enddate, One has enddate before this moment and another has enddate after this moment. With that loop I get rows like: START: 7.8.2012 02:51 < NOW: 3.12.2012 14:42 < END: 4.12.2012 17:48 START: 2.12.2012 00:00 < NOW: 3.12.2012 14:42 < END: 2.12.2012 23:00 // THIS LINE SHOULD NOT BE HERE? */ // Then if I put it other way around: $less_banners = $banners->find("enddate>0, enddate<$time"); foreach($less_banners as $p) { echo "START: " . $p->startdate . " < NOW: " . date("j.m.Y H:s", $time) . " < END: " . $p->enddate . "<br>"; } /* I get zero results */ Show me where I am doing it wrong (I still have a bad gut feeling about doing something very silly here). I have tested this on pretty recent stable version and also latest dev version. I do similar stuff in many places (with events-item template etc), so I do know it should work - but for some reason I don't can get it working with repeaters.
-
Soma - you don't have any tip on how to make templates removable? If I use template-plugin and insert my .noticebox div, I don't find any way to remove it. Backspace and delete just moves content in or out of the box, but the div is never removed.
-
Just merged pull request from Ryan, which includes few nice improvements to this module: 1. Support for securefiles (coming in 2.3) 2. Works on regular image files 3. Some minor code tweaks (sanitizing & indentation) Ryan: about "works on regular image field also": how does it work? Thumbnail settings are set per field basis, and the setting field is visible only when fieldtype is cropImages - so where does it get thumbnail sizes for regular images? I tested the commit before merging and it didn't break anything on my test installation - so it should be safe to just pull in the latest changes. Thanks for the update Ryan!
-
That cache module is for selector caches. Try enabling cache per template basis (setup => templates) and rerun your tests. Always interested to hear about results you find so please post the results here if possible.
-
IE10 supports.
-
Pete, come and save us!