-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
Hi there, very nice project Before doing anything, read this tutorial about categorising content in PW by Kongondo https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/ You will understand how much flexibility you gain by storing all data as pages and referencing them with page fields, instead of using simple text fields.
-
Ya, sorry, I should have read the question better Based on Jan's idea, I think a good approach would be to, for each request callback, add 1 to that global variable on success, and check if the variable is already the total of the requests. If so, fire the function right there.
-
Taking what you have: function getGeoCodes(jsonFromCsv, callback){ // <- I added the callback parameter WITHOUT parentheses for (var i = json.length - 1; i >= 0; i--) { //AJAX requests and adding the lat / lon to the json object } // After everything is done callback(json); // <- and call it inside the function, just as you had it } // when calling getGeoCodes, you will have to pass the function as a parameter getGeoCodes(yourJson, reformatToCsv) // <- here is where we pass the function, also WITHOUT parentheses PS: I'm not sure what is jsonFromCsv in your case, but here I'm assuming it's some other parameter that you will need and it's not related to the callback function. PS2: I renamed the function inside the other function to "callback" to make it clear that you don't need to use the name of the function there, only while calling it outside. PS3: The reason that I insist so much on having the function without parentheses on the parameters is because the parentheses will cause the function to be called immediately. We want to pass it only as a reference, so we can call it only later inside the function. PS4: by the way @Jan, I didn't comment on your avatar before, but next time make sure you add a custom avatar before it's too late
-
Actually, I think SVG rocks much more than icon-fonts I can almost bet that they will fade away as soon as there is full SVG inplementation
-
I bet it's the $pa parameter. You have to replace by the the top level page object. Also, read the comments on the top to know about the other possible parameters.
-
It's a nice project. The website is only for the photography work and the photos are not related with architecture at all. Only nice b/w—hight contrast—almost abstract images. But i won't spoil the fun, you can see it very soon
-
A website for a Swiss architect/photographer, one for a German dementia help association and one for a Portuguese small publisher (the one that published my small book ) All very simple, mainly using the core capabilities of PW.
-
When I open a OGG file in chrome or firefox it plays it in the browser, same happens with MP3 or most video files. If I open a PDF, it is also shown in the browser, same with JPG, PNG, GIF and most surprising of all, it even happens with HTML files!
-
Did you try to open the file url directly? does it work?
-
Pi 2 looks great! This will finally convince me to buy a raspberry
- 38 replies
-
- webserver
- raspberrypi
-
(and 1 more)
Tagged with:
-
The simplicity and scalability of PW for front end dev?
diogo replied to kathep's topic in General Support
Manlio, you know that if you don't change your avatar until the 60th post, the forum software will change it irreversibly to a random spice girl. You're dangerously close to it... -
The simplicity and scalability of PW for front end dev?
diogo replied to kathep's topic in General Support
Maybeyoustaygoodforsomeyears-withtimeyouwillgetlousyeven -
Looking much better already Edit: but the open menu occupies way too much space. In my screen I didn't see the social icons for instance, and I didn't tend to scroll down because I thought it was an overlay.
- 17 replies
-
- webdesign
- workinprogress
-
(and 3 more)
Tagged with:
-
Just had a quick look at changing the height of the top bar. You're right, it is hell.
- 17 replies
-
- webdesign
- workinprogress
-
(and 3 more)
Tagged with:
-
That syndrome belongs to clients, not designers don't let it influence you and make the logo as big as the design asks for. Look at the size of the logo here, for example http://www.chicagolshirts.com/. The client didn't ask for it for sure
- 17 replies
-
- webdesign
- workinprogress
-
(and 3 more)
Tagged with:
-
Looks pretty alive to me, but not because of the design. Minimal doesn't mean undesigned. You have to be much more careful with the details when there aren't many of them. Don't add more details but pay special attention to the ones you have already. Work harder on each one of them, see very well designed websites and try to figure how they solved the small things, try different solutions for each detail. From a first glance, I would say, choose a nice font from here —for example— http://www.haritomedia.com/best-script-handwritten-google-web-fonts/ the logo, and make it BIG, also get a nice badge for "new" http://freepsdfiles.net/web-elements/best-free-psd-badges-and-ribbons and get rid of those blocky spans under the images
- 17 replies
-
- 2
-
- webdesign
- workinprogress
-
(and 3 more)
Tagged with:
-
We all learn with each other. Even the forum itself learns with each one of us ps: Sorry Martijn, I couldn't resist
-
Hm, I don't think that's the situation right now, with the amount of psychologists that didn't find a job after studies and want to open their own business as an alternative to shift career... I would say it's pretty much like with any other profession actually.
-
Nice! We've done once a site for psychologists and we're currently building another. I have to say that the research was painful. The sites are generally very bad, and the images are either very negative or feel completely fake (like, simulated happiness), and usually with terrible metaphors. I don't know if you had something to do with the choice of images, but I like these I was going to write the same as Adrian. And I will add that the animations from the info boxes in the slideshow behave a bit funny.
-
To make it clear, there are two suggestions here: The first is to keep the folder scheme that you have now and symlink the wire directory. You don't have to configure anything on apache because it seems that this is how it's working for you already. This would look like: home web1 public_html wire (the real one) site etc... web2 public_html wire (link to the first wire) site etc... web3 public_html wire (also link to the first wire) site etc... The second one is to use the multisite technique that I referred before. For that you will have to configure the host (on your computer and server) to point all domains to the same folder. I'm not going to explain how to do this because it depends on your system, but already gave you the words that I would use to search for it on search engines. This solution will take some effort from your part to learn something about setting virtual hosts, and I wouldn't recommend it if you're not willing to look for that information for yourself. Anyway, once you set up your server to point all domains to the same folder, adding a new site is as easy as creating a new DB, copying a new site folder from the PW zip and naming it to "site-something", and adding it to the index.config.php file as described before.