-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
@pwired, Teppo was not talking about the CMS, he was talking about trust. Edit: oh, it's already answered
-
Hanna code is the way to go, and should work with 2.5
-
A more technical note: I was using webkit's text-sroke to simulate the bold, since the Hannah typeface doesn't have bold, and the browsers simulated bold is too strong, but unfortunately it only works in webkit browsers (of course). I fixed this now by using multiple text shadows instead. It's a nice little hack actually
-
Sorry netcarver, this will be a late answer. The reason we offer mueslis, and not other things is because our product is really the best we can offer without spending too much of the money that will come if the campaign goes well. We thought of alternatives, but they would either be too expensive, or take too much of our work and energy in a time when we will be completely focused in opening the café. Offering our own product is always the best balance between more value and less spendings in any business, right? Of course we thought about people that won't be in Porto. We thought of sending our very nice postcards for instance, but only sending them to everyone (if we get all the money we need, we are necessarily talking about lots of people) would make it too expensive for the real value of it. That's why we have the symbolic offer of writing all the names somewhere in the café, and saying that there is no limit to using the muesli vouchers, like this people can use it at any time that they come to Porto. Of course we can make an exception for PW users, and I love André's idea. There will be for sure a hand drawn surprise for all of you that contribute, even if with 1 euro edit: And we sure need everyone's help at this point!! Thanks for the heads up André! By the way, great news, we were featured on the website of one of the main Portuguese newspapers http://p3.publico.pt/vicios/gula/14236/casal-de-designers-quer-abrir-um-muesli-cafe-no-porto
-
All good here. Didn't have any trouble with MAMP, apparently all you have to do is upgrade it also.
-
Thanks a lot Joss! Love the article
-
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 ?>
-
possible: file based instead of sql-database?
diogo replied to vanderbreye's topic in General Support
You found he best alternative to kirby for larger projects (actually, also for smaller projects), you'll just have to live with the database -
possible: file based instead of sql-database?
diogo replied to vanderbreye's topic in General Support
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. -
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.
-
policy on php short tags in PW modules / docs?
diogo replied to jordanlev's topic in Getting Started
I like the short tags and use them in my sites, but agree with previous answers that they shouldn't be used in modules. -
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 }
-
- 27 replies
-
- 13
-
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!
-
Happy birthday Ryan!! I make mine Matthew's words
-
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
-
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
- 27 replies
-
- 19
-
FrontendContentManager: add and edit pages as frontend user
diogo replied to pwFoo's topic in Module/Plugin Development
sorry that you didn't get any answer by now. Glad you managed to solve some things though. -
And if you can't remember the shortcuts, just google "ndash" or "mdash" and copy the dash from the results. Always worked for me
-
try rsync http://rsync.samba.org/ EDIT: their website could use a freshen up...
-
Sorry, wrote that on the browser. Already corrected.
-
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}'>"; }
-
@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.
-
Have a look here https://processwire.com/api/fieldtypes/images/ What you are doing is completely different
-
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>";