Jump to content

apeisa

Moderators
  • Posts

    4,632
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by apeisa

  1. Easiest "fix" might be to leave darker pink on top of the active main nav item out. I might do little poll on the office to see what people think. Although Finnish word "sivusto" doesn't overlap.
  2. Hmm.. Might be .htaccess issue of some kind, since html in your image tags is this: <img class="photo" src="4571168461_44f687f4e4_b.200x200.jpg" alt="Image one description" width="200" height="200"> src should be something like this: /site/assets/files/1001/4571168461_44f687f4e4_b.200x200.jpg
  3. Yep. That is exactly what I tried to ask in first reply. Automatic relation, but based on what? Comparing words on body content? Similar titles? Same tags used?
  4. Related in which way?
  5. I am creating page-field through API, and I want to set it to allow only certain template and parent. How to achieve this?
  6. Thanks Ryan. I am doing this from autoload module, so it seems to require this too: Wire::setFuel('orders', $orders); It works nicely!
  7. I think I found it: core/ProcessWire.php: <?php if(!$t = $templates->get('user')) throw new WireException("Missing system template: 'user'"); $users = new Users($t, $config->usersPageID); Wire::setFuel('users', $users);
  8. I don't see that as a problem. It aligns nicely with top row and doesn't overlap with the link text. Also - works similar way with normal and short "site" title, but scales to longer titles too. I would probably add that link to a wrapper div or ul though, that way modules could easily extend on that and add more links (not sure if it is a good idea, but maybe links for campaign sites etc..?).
  9. Users are just pages, but we can access them through $users. How is that done? I know that Users class extends PagesType, but I don't find anywhere how $users is created and how it filters that to include only pages with user template (or /access/users/ children). What I want to achieve is to have new $orders variable which is shortcut to $pages->find("template=order").
  10. This seems to do both: http://twitterfeed.com/ But not sure if 3rd party is an option here?
  11. You can pull rss feeds to notes, but not sure if autoshare to wall is possible (without app or api). http://www.ehow.com/how_2031209_import-rss-feed.html There seems to be bunch of apps that pull rss and post to wall, but not sure which one of those are reliable and don't pollute your wall. I have been thinking of building simple module doing just that - this way you could choose if you want to post to facebook or not. There is nice and recent tutorial on nettuts about this too: http://net.tutsplus.com/tutorials/php/wrangling-with-the-facebook-graph-api/
  12. Nice discussion, thanks for posting guys. Our setup is pretty much similar to Ryan's (got good tips there when build it), although I have little bit of Soma's method baked in too If I take Ryan's example, then our main.php would be something like this: <html> <head> <title><?php echo $page->title; ?></title> </head> <body> <h1><?php echo $page->title; ?></h1> <?php if ($page->tpl) include("./tpl/{$page->tpl}.inc"); else include("./tpl/default.inc"); ?> </body> </html> Then I would set that $page->tpl in actual template file (like product.php, event.php etc), if I need to. Of course it would also be possible to allow client to choose tpl on certain page templates (using basic page field selection), but I haven't had the need yet. This way I can use same basic wrapper even though markup inside body tags would be totally different. This also allows to have $page->tpl as selection for page editors if that is needed (not yet the case). Most of the time it seems that default.inc works 90% of the time.
  13. While I would surely like free and open source modules that wp and Drupal offers, I would rather pay and get support directly from the company or individual who created the module. I think it depends on the project scope pretty much on which way you prefer.
  14. Just a possibility: I sometimes speak about fieldsets when I really mean fieldgroups. Latter are not visible through admin, although you can create those from API.
  15. Not sure I understand. Does it work with smaller files?
  16. One thing you could do is to try uploading using older browser (IE 6-9, Safari 5 or below, Opera 11.0 or below: Support table). If it works there, then we know the problem is in ajax upload. Otherwise it must be server issue.
  17. That kind of hook might be easiest to do with javascript, something like soma's page save reminder module.
  18. Here is typical scenario. You have images field called "images". You loop them to show thumbnail of each, with link to original image (which we will open in lightbox): <?php echo "<div class='gallery'>"; foreach($page->images as $image) {; $thumb = $image->size(200, 200); echo "<a rel='gal' title='{$image->description}' href='{$image->url}'><img src='{$thumb->url}' alt='{$image->description}' /></a>"; } echo "</div>"; Then you load your js and css required by your lightbox script (probably in head): <link rel='stylesheet' type='text/css' href='/site/templates/styles/colorbox/example4/colorbox.css' /> <script src='/site/templates/scripts/colorbox/colorbox/jquery.colorbox-min.js'></script> Also, depending on the script you use, then you initialize the script: $('.gallery').colorbox({rel:'gal'}); That is how you would do it in Colorbox: http://jacklmoore.com/colorbox/
  19. Probably not. There are pretty interesting new php cloud hosting solutions popping, like www.phpfog.com and http://pagodabox.com/. Not sure how well those could perform when you get smashed? EDIT: Just got email from phpfog: "We will definitely add ProcessWire to our todo list for jumpstarts, thank you for pointing us to it!"
  20. I am actually using $page->modified to show when page was last updated on few templates. Flagging page as updated when someone adds a comment kind of ruins it. Not actual problem in my case (no comments on those templates) and I am not sure if it is good idea to have exceptions like "$page->modified changes always when one or more fields updates - expect on comments fields".
  21. Hi and welcome to the forums. What comes to modules, it is pretty different story from ie. Wordpress plugins. As far as I know there isn't lightbox module. Or you are looking for help on how to use lightboxes in general? Most of the "how can I do this" -problems are easily solved on template level. You write some simple php code using PW api (www.processwire.com/api/) and you get the output you wanted. Just gives us more information what you need to achieve and I am sure we can help you.
  22. OT: This was floating around Twitter and is pretty fun read: http://latimesblogs.latimes.com/jacketcopy/2008/11/why-finnish-is.html (Why Finnish is cooler than English).
  23. Spot on! I'm sorry I read all the answers in little bit hurry and from my mobile - It would have been enough to quote you and put +1 there Yeah, it is nice city. But I do like St. Peterborough better That is probably my favorite city.
  24. I think the cleanest solution will be to allow everything to be translated, at least on the long run. But I also think that we should have some documentation of which files are needed for 100% client translation. It might be "newbie" friendly to have everything translated, but if you want to develop using Pw, you do need some basic English (API and Docs are in English) . I myself have zero interest to translate developer stuff to Finnish. It actually makes developing much harder, since all the examples, docs etc assume English and it is sometimes very hard to know Finnish words for computer/coding jargon (usually there is some clunky official translation used). In Finland most companies code and document in English anyways (no matter if all coders are Finnish).
×
×
  • Create New...