Jump to content

diogo

Moderators
  • Posts

    4,314
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. I identified what bothers me. The globe and the photographic camera are in the same layer, to me it makes the movement less natural. Edit: somehow I instinctively expect the object to come to the mouse and not go away from it when i approach them.
  2. Nice! I like the drawings and the idea, but the animation could be smoother.
  3. diogo

    Max, Cafe, Bar,

    Georgson, I'm sorry I never answered to this, somehow I din't see your tip. And now I came back to this to help here and saw it. I will check it out, thanks!
  4. I also have a site hosted on Strato and in the beginning was veeery slow. I talked about this on this forum thread http://processwire.com/talk/topic/847-max-cafe-bar/, Check Georgson's answer at the end, might be useful.
  5. Sivutyypii sounds good to me. But not necessarily better than sivupohja. I like both
  6. Slightly out of topic, just to say that this evening there is no programming. Just this https://www.youtube.com/watch?v=RVJUJF6Rg1Q
  7. I must say it's a very good looking app. I installed it on fortrabbit to test. (Craft this is the former Blocks CMS, for those who are wondering)
  8. true, I will change that
  9. Here is a draft of the module that I talked about above <?php //ModifiedMinusCreated.module class ModifiedMinusCreated extends WireData implements Module { public static function getModuleInfo() { return array( 'title' => 'Modified minus created', 'version' => 100, 'summary' => 'only a rough draft', 'singular' => true, 'autoload' => true, ); } public function init() { $this->pages->addHookBefore('save', $this, 'subtract'); } public function subtract($event) { $page = $event->arguments[0]; if(!$page->fieldgroup->modifiedminuscreated) return; $page->modifiedminuscreated = $page->modified - $page->created; } Now you just have to create the integer field "modifiedminuscreated" and add it to the templates you want. edited: changed the code under Soma's suggestion
  10. Your code is a mess Soma I did some corrections: public function addTitle($event) { $page = $event->arguments[0]; if($page->done) return; if($page->template->name !== "product") return; $page->title = $page->somefield . " " . $page->field2; //$page->trackChange("data"); <- is this needed? I got an error, and it worked without //} //$page->done = true; <- same goes for this //$page->save(); <- the hook is before save, so we don't need this }
  11. With javascript of course. You just have to be careful that the video is not switched in the middle when someone adjusts the browser window.
  12. Interesting discussion starting here http://forums.modx.com/thread/83112/processwire---the-new-evo
  13. Welcome to the forum ezeei. The default page is home, and it can have as many children as you wish. What are you trying to accomplish exactly?
  14. I'm in a hurry now, but try var_dumping the image and look for that info there: var_dump($page->images->first());
  15. You can do this instead, and then cache it. http://processwire.com/talk/topic/2210-help-getting-a-custom-styles-php-file-working/?p=20641
  16. You could also create a module that would hook to save and update a field holding the value of modified minus created. Then you could use $pages->find("modified-created>0");
  17. Here http://processwire.com/tutorials/quick-start/images/
  18. Try this: $allPages = $pages->find("anySelector"); foreach($allPages as $p) if($p->modified == $p->created) $allPages->remove($p); //I'm using == instead of <= because modified would never be smaller than created $allPages should hold your desired results now
  19. If you will use superscripts, be aware that they can affect the height of that line. Read the solution to prevent this here http://css-tricks.com/snippets/css/prevent-superscripts-and-subscripts-from-affecting-line-height/ Another thing you can do is activate the "Insert Special Character" button in TinyMCE on the field settings. Then you just have to insert the ™ character where wanted. You'll find instructions to customize tinyMCE here http://wiki.processwire.com/index.php/TinyMCE
  20. I love it how the inline mode looks like in the admin!
  21. Welcome to the forum Peter I never worked with EE so I can't help you there, but there are some people here that did the jump already and I hope they will join. About the search. I can think of two ways you can change the options in the dropdown with the subcategories 1. with ajax 2. assigning everything to a variable in the head of the page in a js object and load the corresponding list whenever the the parent page is chosen on the other dropdown.
  22. I looked again at the images examples on the docs and, as you told, Ryan also uses if($page->images) on a multiple images field. I tested it and, as expected, it does return true even if there is no image uploaded, making the test not very useful... Ryan?
  23. not sleeping does that to people
×
×
  • Create New...