Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/30/2012 in all areas

  1. I'm leaving tomorrow for vacation and going to be offline all next week. I've got friends staying at my place to keep the business running and cats happy, but during that time you may not see any posts, tweets or commits from me. Just wanted to explain ahead of time so nobody thinks I've disappeared. Though if internet access presents itself, then this will be the first place I'll check in, but just wanted to provide adequate notice if that didn't happen. I'm taking the laptop with me and hope to get some PW updates done on the road as well. If you don't mind, please keep an eye on this place while I'm gone. If any new users drop by here, make them feel at home. Hope you all have a great week next week. Thanks, Ryan
    2 points
  2. I'm opening this topic so people can discuss translations. I was thinking of opening one only for Portuguese, but some doubts apply in general. Maybe I will still open a new thread specifically for Portuguese down the road when it makes sense. ...... Now, the questions that brought me here: What are you guys doing with computer terms like "cache", "template", "email", "URL" and "link" to name only few, or more PW specific terms like "page tree" or "fieldgroup"? Are you translating them or leaving them in English between quotation marks? Also, should we discuss general Best Practices for all languages or just let the people responsible for each language to decide?
    1 point
  3. Thanks for confirming. I will try this on the road next week. I just submitted a GitHub issue report so I don't forget.
    1 point
  4. Solved the the problem with chmod *site* -r
    1 point
  5. Many thanks Ryan for your answer ! I know exactly how many datas are stored, their lenght and from where it can be posted. But you're right, it's not the more secure way if we don't take care about security holes. Thank you Ryan, PW is a great tool !
    1 point
  6. Thank you, Soma for your help. It's working now. The code you gave me, helped me. I just added the the following: <?php if($p->numChildren){ foreach($page->get($p->name) as $fo){ if(count($fo->get($fo->name))){ foreach($fo->get($fo->name) as $f1){ $fielddata->import($f1); } } } } else { foreach($page->get($p->name) as $fo){ $fielddata->import($fo); } FROM YOUR CODE MY FINAL VERSION <?php function Pagefields(Page $page){ $fielddata = new PageArray(); // Nice ! foreach ($page->uses as $p){ if($p->numChildren){ // line added foreach($page->get($p->name) as $fo){ if(count($fo->get($fo->name))){ foreach($fo->get($fo->name) as $f1){ $fielddata->import($f1); } } } } else { // lined added foreach($page->get($p->name) as $fo){ $fielddata->import($fo); } } } #endof: foreach($page->uses as $p){} return $fielddata; // Return me some data! } foreach(Pagefields($page) as $p){ echo "<p>$p->title</p>"; // Yes, I got data! } Thank you again for your big help. Awesome Community!
    1 point
  7. You could try something like this: function Pagefields(Page $page){ $fielddata = new PageArray(); foreach($page->uses as $p){ foreach($page->get($p->name) as $fo){ if($fo->get($fo->name) && count($fo->get($fo->name))){ foreach($fo->get($fo->name) as $f1){ $fielddata->import($f1); } } else { $fielddata->import($fo); } } } return $fielddata; } foreach(Pagefields($page) as $p){ echo "<p>$p->title</p>"; }
    1 point
  8. Oh, man. I'm having to go back to WordPress for this project that's on a tight timeframe, and every single thing I do, whether it's trying to find an appropriate plugin, or hacking the ThemeForest theme to get something to work, I keep thinking of how I'd just do it the right way in ProcessWire. Sooo painful. I can't wait until I get to use PW again!
    1 point
  9. Hi Everfreecreative, I remember having a similar reaction to you when I discovered PW. I have been thoroughly battle testing it on two projects recently and that eureka feeling still hasn't worn off yet. PW is just a dream to work with - especially for designers who like to write their own semantic HTML and not have a CMS generate for you (badly). The new repeating fields and field contexts being worked on are going to be a huge help in delivering a usable admin environment to clients.
    1 point
×
×
  • Create New...