Jump to content

lehtu

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by lehtu

  1. Hi, I have this situation I'm working on my template file and $page is what I want.. But I just want to add one field to it. And there is more.. I don't want to save it. So I just want to add new $field to my $page object virtually. After this I'm going to change it to JSON and print it out. Is this possible? If yes, please share the answer Thanks!
  2. Peugeot 407 - 138tkm - 2.0 - 2006 - 6700€ - http://t.co/01YtXVw6IT

  3. #gotham why u mobile phones?! o_O

  4. #MongoDB <3 #nosql <3 #nodejs <3 - miten kaikki voi olla muka alle kolmen? Koska kaikki on ihan ykkösiä!

  5. RT @AdtileHQ: *Serious* device testing going on in the lab. http://t.co/0vVuE7UN93

  6. RT @katleena: Hyvä @aucor! Tällaisen firman hallituksessa kehtaa istua ja juoda rooibosta. http://t.co/ujgzp5GptB

  7. RT @JaaJanne: Google: Aucor näyttää tietä WordPress-toteutuksissa. #GoogleAppEngine #GoogleCloudPlatform #WordPress http://t.co/5OkNRqNpcz

  8. Kiva tietää näin kolmelta aamuyöstä, että kello melkein yheksän..

  9. RT @JaaJanne: @lehtuska Pöytä on vähiten tärkeä noista - tuoli mielestäni tärkein.

  10. "There are two things in this world that take no skill: 1. Spending other people’s money and 2. Dismissing an idea." https://t.co/6Nr8kPYada

  11. Look at my selector, my selector is amazing ( ): $favorites = $user->favorites->find("sort=title, private=0, start=".$start.", limit=".$limit); Favorites is Page field with settings: Multiple pages (PageArray). Private is an checkbox on every page which are listed on favorites. My test user has two(2) favorite pages. One public and one private. And it works great! Thanks bye! Wait.. I had a problem with this code: $favorites->getTotal(); I'm in the belief that this should return the amount of pages based on the selector excluding limit-selector. So the result should be one(1). But I'm getting two(2). Am I missing something or is this a bug? Even this one gives me two: $favorites = $user->favorites->find("sort=title, private=0"); echo $favorites->getTotal(); # 2 What I want is the total number of favorite pages. This of course works: $user->favorites->find('sort=title, private=0')->count(); But I would like to avoid making several finds if I could use ->getTotal. And why I can't do this? Because I'm using start/limit for pagination..
  12. RT @tbhjuststop: A FREAKING TURTLE EATING A STRAWBERRY https://t.co/b8cgGzv8MX

  13. Mahtokohan johtua #ISP:stä vai reitittimestä? Soneran kuituliittymä ja liittymä on 50/50 oikeasti. http://t.co/20owr6jByK

  14. Chrome or my Mac? Which one is breaking now.. This website http://t.co/FCNnqyx2o3 and Chrome on OSX http://t.co/Te9I4Kue78

  15. RT @JaaJanne: "Ei" on tärkein sana yrittäjän sanavarastossa. http://t.co/oB0J4JwGT6 http://t.co/N7kmizy124

  16. internetz toimii uudessa päämajassa ja olokin on mitä mainioin!

  17. Päivän piristys tuli otsikolla "Teetkö tarpeeksi rahaa?" http://t.co/TV4H7FE5HX

  18. Ehkä syytä sulkea #Tinder tältä päivältä.. Kari Ketosen näköinen nainen aiheuttanee muutenkin jo painajaisia #einäin #rankkapaeva

  19. Ostakaa hyvä pösö!

  20. Miksi applen dev lisenssissä on alv23%? #apple #iosdev

  21. RT @JaaJanne: Mulla on just tällainen olo joulukaupoilla. https://t.co/IgKxJsJrD6

×
×
  • Create New...