Jump to content

diogo

Moderators
  • Posts

    4,315
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. Is this a multiple page field? In that case you would have to iterate it with a foreach or get the first one with first() <?php foreach($page->food_types as $ft) { echo $ft->title; } ?> or <?=$page->food_types->first()->title ?>
  2. You found he best alternative to kirby for larger projects (actually, also for smaller projects), you'll just have to live with the database
  3. If this is a requirement for you, give http://getkirby.com/ a try. It's file based, has custom fields and it's API has some things in common with PW.
  4. There isn't a bookmarklet, and creating one would totally depend on the site where it would be used in. Would be nice, however, to create a general customisable code to be used with the "Pages web service" module http://modules.processwire.com/modules/service-pages/. Not a priority for now, but I might think of it later.
  5. I like the short tags and use them in my sites, but agree with previous answers that they shouldn't be used in modules.
  6. diogo

    Muesli Café

    Thanks guys. @Martijn, I 'solved' the menu problem by disabling the collapsing on touch devices. Not ideal, but it will have to do for one week, since I will be away from the computer. If anyone need to do something similar, it's really simple but probably it also disables the collapsing in devices that are both touch and mouse: var is_touch_device = 'ontouchstart' in document.documentElement; if(is_touch_device) { // do things for touch devices } else { // do thing for other devices }
  7. diogo

    Muesli Café

    Thanks Nico!! Sure, here you go
  8. diogo

    Muesli Café

    Ya, those were on purpose. Quite difficult to achieve actually The menu item not getting bold in Firefox it's a problem though. I'm using text stroke because the bold was too strong, and apparently FF is not liking it. I'll look into it, thanks for reporting. That's actually a great way of seeing it, but I confess it wasn't our intention The whole concept of the corporate image revolves around handmade and individually done, thus the random and clumsy nature of all elements. The intention is that the menu also has this analog feeling. Yep, that one escaped my falcon eyes. Fixed now, thanks! I was aware of some problems with the touch, and tried already to fix them. I stopped when I was completely lost in the JS events and had to do other stuff, but will come back to it as soon as I can. Thanks for all your comments guys!
  9. Happy birthday Ryan!! I make mine Matthew's words
  10. diogo

    Muesli Café

    Thanks guys! Joss, I will send you more info for sure as soon as I can. Would be great to be featured in your blog Adrian, they should of course. I put them there before we published on the PPL site and we didn't know the URL back then, I guess I forgot to change it. Fixed now. Thanks for your kind words, you're welcome to Portugal at any time
  11. diogo

    Muesli Café

    Hi all, This one is special because it's for a project of ours, Erika and mine. http://muesli-cafe.com/ We are starting a crowdfunding campaign to open a breakfast place in Porto where we will serve muesli. This is quite a bold attempt because muesli is not common at all in Portugal and it will take a good communication effort from our part. We will need all the help we can get, if you guys want to contribute here's the project's crowdfunding page http://ppl.com.pt/en/prj/muesli-cafe-porto and you will be all welcome to Porto to taste our delicacies It will be great if we make it
  12. sorry that you didn't get any answer by now. Glad you managed to solve some things though.
  13. And if you can't remember the shortcuts, just google "ndash" or "mdash" and copy the dash from the results. Always worked for me
  14. try rsync http://rsync.samba.org/ EDIT: their website could use a freshen up...
  15. Sorry, wrote that on the browser. Already corrected.
  16. Hm, I think you are making some confusion with the notion of template. The template hold the fields in abstract, you can't get a field from it, instead, you get the fields from pages that have a specific template. What's the name of the page field that holds the image? If I understood well, you have to grab that field, and then the image. Assuming that the page field allows for multiple pages, you can grab the image like this (meanwhile I saw your last answer, so the names should be correct) <?php foreach ($page->BatteryPictures as $pic) { if($pic->battImage->url) echo "<img src='{$pic->battImage->url}'>"; }
  17. @kongondo, he is saying that the image name is missing in the URL, not that he wants specifically the file name. So, apparently you are calling the template instead of the image field, try this instead: <?php if($page->battImage->url) echo "<img src='{$page->battImage->url}'>" ?> But make sure that you have this image field set to single image or set to image limit = 0 in the field settings, as that's the only way you can call the url directly on it. Otherwise you will have to iterate it (foreach) of call $page->battImage->first()->url instead.
  18. Have a look here https://processwire.com/api/fieldtypes/images/ What you are doing is completely different
  19. I don't see why bxslider wouldn't work. The markup it requires is very simple, just a ul > li > img with free urls (it doesn't enforce that you specify only the folder like some old scripts did). In your case I would probably just put the images in the css folder and call them manually. I mean, if you know the name of the files is because you don't need the images to be dynamic, so why have them in a PW field? $images = ["image1.jpg","image2.jpg","image3.jpg"]; echo "<ul>"; foreach ($images as $img) { echo "<li><img src='{$config->urls->templates}styles/slider_images/{$img}'/></li>"; } echo "</ul>";
  20. Here is your one liner, but I wouldn't advise you to use it: if($imageUrl = $pages->get("/bxslider-pictures/")->images->get("name=hill.jpg")->width(200)->url) echo "<img src='$imageUrl'/>";
  21. Does your hosting service charge per line?
  22. You can also try $pages->find("parent=/about-us/") and $pages->find("parent=/about-us/, include=all") just to see what you get
  23. Isn't that page set to "hidden"?
  24. diogo

    durch

    If someone asks someone in a language that is other than English, we usually ask to stick to English, but I don't think we are inflexible with it. I would say, if you have a concrete question, try to ask in English, also because it will raise the chance that someone will answer, but if it becomes too difficult for you to understand or express the doubt it's ok to mix a bit of dutch in between. We have enough Dutch people here to understand it, and probably the German(ic)s will also
  25. Commented already on the video, but I'll say the same here. To prevent having the site down while moving the new files to the server, it's better to rename the new wire folder to "newwire" and do the switch only after all the files are moved.
×
×
  • Create New...