-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
($item->product_shot} return array, maybe stringyfied.. {$item->product_shot->url} because it's an array and the image not accessed using first() or any index but the field itself, it returns the path to the page asset folder.
-
As I said it won't work cause it's barely done using animte at all. Regarding CSS3 Animations there's also some things to consider which would make things impossible here when wanting to extend functionality: You can't stop an animation that's already running. You get no feedback as to how the animation is running - only an event callback once it has completed. There's no way to synchronize multiple animations. There's no way to specify custom easing functions. (although there is now easing for webkit)
-
Thanks MMD. I know, but I'm using a jquery plugin to do the parallax animations + sprite frame animations events etc. And this was done almost a year ago where css animation weren't yet hardware accelerated and not many libs around that matter. Sure there is alternatives but don't want to go as far redoing everything now as it runs pretty well and smoth already. Maybe something to look again at alternatives when I have time. Edit: Also transform js or the other jquery plugs don't work here, as it's not all done simply using animate.
-
Thanks for posting it. Though that's something that usually is set in the http.conf defining the web.
-
Thanks guys! Funny stuff I just realized that after the last change I did, that I forgot to add something when there's no cookie set (so first time visit), must been distracted. Well I know I should have tested but didn't. So thanks for mention it guys. It's now fixed. Not sure about loading time, but the images (pngs) are already as optimized, and as small as it can get. I'm not sure it really was what you Pete experienced, though as you mention I wanted to implement a preloaded but was holding me back. Think it's time to implement it. You're right the ctrl+1 might causing issues to show the slider (which also depends ont he browser but you'll have an regular textfield and it works. Nothing too serious just having fun as I always do. I might set the combo to alt+ctrl+1 or something? And there's nothing wrong it shows underneath the header, haven't really put much thoughts into it, it was still there from the beginning. The animation was fun to do. I used Cinema4D to build a puppet using body parts (like a billboard) and animated through inverse kinematic, so just rotating the foots around the pedals and the rest will follow. So rendering every frame out as pictures, dada I got the sprite animation, which was really rewarding seeing it work. The parallax background was done by creating layers in photoshop and made them tileable, which took a little time to find the right fotos and bits to make it work and not look too strange. I love this forum! Hehe, have also tried -20000?
-
Hehe, not strange that's what we all do sometimes. Glad you like it, I also watched it for hours I think. PS: Don't tell anybody, I activated my, during developement, present and made an eastern egg. Press ctrl+1 Not sure it works in every browser/system though.
-
If you install it and change the class name you'll have a problem. And I noticed if you change autoload option wehn already installed I sometimes had to reinstall so it really gets saved in DB. Other than that you can just make changes without doing something, add new methods etc. If you would provide the error it throws and some more details what your code looks like it would be easier to help.
-
I don't see any error on your screenshot, only notices and warnings. May because debug enabled? Wanze you don't have debug on?
-
You should get into modules pretty soon! They're easy as pie and powerful! PS: Glad to hear it worked out, thanks for mention it.
-
Not sure what exactly you're doing but you could create a modules that is autoloaded and provides functions to use everywhere in PW. Something like this: class HelpersModule extends WireData implements Module { /** * getModuleInfo is a module required by all modules to tell ProcessWire about them * * @return array * */ public static function getModuleInfo() { return array( 'title' => 'Helper Functions', 'version' => 100, 'summary' => '', 'href' => '', 'singular' => true, 'autoload' => true ); } public function init() { $this->setFuel("helpers", $this); } public function getPosts() { return wire("pages")->get("/posts/")->children(); } } Then you can do in your templates: $posts = $helpers->getPosts(); There's variations of this but it should be simple to do. Also you could also make it not autoload and load it on demand. $helpers = $modules->get("HelpersModule"); // load module $posts = $helpers->getPosts(); Edit: wow everytime I edit the post the indentation get lost, that's new to me and pretty annoying...
-
You can't with the default image field add categories to it. I thought somebody was doing something to add creating a custom image fieldtype but can't find it currently. If you use repeaters, I'm not really thinking it all through and not sure this is the best way to go, it is possible. You then can create branch using a "category" template. Categories - Summary - Carousel Then you create custom page fieldtype "categories_selected" that has set /Categories as the parent and allow multiple pages. Then make the inputfield of the page fieldtype either checkbox or the asm select. Then after saving you see additional options depending on the inpufield. Now add that page field to the repeater or template you want to define categories. Then you should be able to select images using one or multiple categories. I'm not sure but it should be possible to select images (repeater elements) using ->find("selector") I haven't really extensively used repeaters yet other than little testing. You would have to test yourself. Maybe there's alternatives. $cat = $pages->get("/categories/summary/"); $images = $page->repeaters->find("categories_selected=$cat"); Thinking about alternatives: You could also create a image field called "image_summary" and use that, or create a image field "carousel" specially for carousel. Another option would be to create dedicated pages holding the image for a carousel and then make them selectable through a page field (same as with categories). Like a centralized repository of image galleries. Almost endless possibilities once you get the hang of it combine fields and pages.
-
Gazley, if you provide us with more details of what you want to archive we could help more finding good solutions. The concept of this is to create a set of pages under a tree branch using certain template or different templates. Then use rules/filters/queries (parent, template, etc) in a page reference field, to select from the set of pages through that page reference field.
-
Caching objects? For what reason?
-
YOu can use markupcache module. http://modules.processwire.com/modules/markup-cache/
-
Yes logo and tel# was jumping occasionally here also (no matter what browser). I took a look quickly and injected some css via php, now it should be good.
-
Thanks for the feedback. Thanks for mention, I actually tried to make it not jump (or at least minimize it), maybe on first loads it can happen, though otherwise I don't recognize any jumping. It's using js and cookies, and haven't looked at it since months but I think it's not easy as the logic is client side, will maybe have a look at it again soon. Yes, it is not really optimized for smaller and mobile screens.
-
You're welcome landitus. Unfortunately this seems not possible as I know, it is using the jquery UI slider and there's only numbers not floats supported. You could then maybe use 1-10 and divide them by 2? Or you could use page field and create 10 pages with the increments and then use them to select. If the range is never gonna change this might be a option too.
-
I thought I'd share a little project I'm working on. Launched the new website for a colleague that has a local cycling delivery service. It's very simple website and is an ongoing project, changing and adding stuff over time. As always it was very easy to setup in PW and he loves the admin to edit his stuff. Previously it was using Limbo and I refused to further use that horrible system. Now using PW it opens up a whole world of possibilities. http://velokurier.com
-
Not sure if there is a limit other than your hardware. Depends what those 5000 pages are doing but I see no problem at all even without cache. It's much faster than MODX. If you take care of what you do with queries in templates and maybe use partial markup cache for heavy queries I think you can do a very performant website within the hundred thousands easily only really limited on performance of the server PW is quite optimized. Anyway it has never really been tested how far you could go but I heard about sites in the twenty+ thousands and they still seem to be fine. Just recently there happened to be some issue with large scale when saving pages and already got more optimized.
- 12 replies
-
- 1
-
-
- performance
- page limit
-
(and 1 more)
Tagged with:
-
I'm not responding!
-
To be honest I have no clue. I never used it for that @wanze I store them in a separate folder where I have all PW modules. The local install is for development only, once it's good I copy files or code over.
-
A type page for a image? My bet would be that you see the repeater "page" as they're done as stored hidden pages in the admin branch.
-
Sorry I actually meant "I guess you see..."
-
I guess in the xcode debugger...? (will stop it now)
-
No, I'm reading too quick and post something, then read again, edit it again lol I'm not copying the next. I should know, sorry it happened few times already and I need to hold me back a little.. oink