-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
Adrian, you get a like for each answer
-
In defense of totoff, he did say this: Edit: Still, there is Open Source and Open Source, the fact that a project is Open Source doesn't mean that it should be immune to criticism. There's no doubt that the fact that some big Open Source projects are so widely used hurts the growth of smaller and much more competent projects, and comparisons should be made to combat this, and also to make those projects be aware that they can't stop getting better. Those are my two cents...
-
I think it would be useful to get Matthew on this discussion. I will PM him, just so he knows
-
Hi Melissa, welcome to the forum! In my opinion the blog profile is not the ideal for this situation. This profile was created for setting quickly a full featured blog and style it while maintaining the initial structure more or less untouched. Your situation is very different, so I think it would be better to use the default install of PW a go from there. For what I see in the site you linked to, there is no need for all the fancy things that the blog profile has (categories, tagging or all the sidebar goodies), and even if you decide to have some, they are not very difficult to code. Besides, the website seems very simple, but at the same time needs some flexibility because the structure changes a lot and the header is always different, things that the blog profile is not ready to address.
-
Hi ioio, welcome to the forum! You can replace them without any problem. Actually, you can replace everything in the templates folder by your own files without any problem with the exception of admin.php. Just be aware that ProcessWire will look on that folder for the php files that correspond to the names of your page templates. You can also replace the scripts and style pages and organize your includes inside your own folder structure, as long as you call them with the correct path on the include() function. Edit: Adrian was faster because Canada is closer to the PW server than Portugal Edit: On the other hand, Portugal is closer than France and Switzerland
-
If you know how many elements will have border and exactly what thickness will be the border of each... and you will be replacing a "clean" solution by a complex one. As I said, it's a matter of balancing everything and be aware of what you win or loose with each method. Any informed choice is a good choice
-
Martijn, sometimes it'd not about being easy or difficult. You can't mix percentages with pixels, and if borders measured in pixels count for the calculation of a total that is measured in percentage, things will break and there's no other solution either than removing the borders from the equation. That's what was happening with the admin theme in all browsers before that rule was added. Again, it's a matter of balancing the choices and make informed decisions.
-
Not serious, and I still think it's worth it: So, it's a matter of giving box-sizing: content-box; to the divs where there will be likely third party content.
-
Its possible to use the mac a hotspot to share internet with other devices, so I'm assuming it might be possible to use it for this purpose. Here are the instructions http://www.tuaw.com/2009/09/25/mac-101-create-a-wireless-network-between-mac-and-iphone/ Edit: I tested this with ubuntu/android and it works. The ip address you will have to use from the phone browser will probably be something similar to 10.42.0.1
-
For android there is this simple app https://play.google.com/store/apps/details?id=ru.gelin.android.browser.open&hl=en This works with simple html files. You just put the static html/css/js files on the sd card and open them in the browser On another note, you can also access your localhost server inside a wi-fi network by finding your computer's ip and accessing it from the browser. In linux and mac you can find it with "ifconfig" in the terminal, and in windows with "ipconfig".
-
No more coding for today, only this
-
module for filtering results from large list?
diogo replied to bongomania's topic in Modules/Plugins
Same thing: $resistencia = $sanitizer->selectorValue($input->get->resistencia); $resistencia = $resistencia ? "resistencia>{$resistencia}" : ""; // notice that here the sector has ">" -
Access "Selectable Pages" settings for Inputfield module
diogo replied to bcartier's topic in Modules/Plugins
I was also in the middle of writing when your answer appeared -
module for filtering results from large list?
diogo replied to bongomania's topic in Modules/Plugins
Filtering is very easy because each choice excludes all the others. In the example you gave it could work like this: $resultados = $pages->find("template=potenciometro, fabricante=$fabricante, produto=$produto, resistencia=$resistencia, classEnerg=$classEnerg, acabamento=$acabamento, tolerancia=$tolerancia, conica=$conica"); This would work because you would be looking for products that have all these characteristics. But the example that I gave doesn't take in account tat some filters might be not used. For that you could do this: $fabricante = $sanitizer->selectorValue($fabricante); $fabricante = $fabricante ? "fabricante={$fabricante}" : ""; // do the same for all fields $resultados = $pages->find("template=potenciometro, $fabricante, $produto, $resistencia, $classEnerg, $acabamento, $tolerancia, $conica"); These assume that your fields are text fields, but most probably they would be page fields, in that case your search would be more of this kind: fabricante.name=$fabricante read more about how to organize content here http://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/ If you need a more intelligent search, one that instead of excluding just prioritizes some fields over others, I can help you with some code for that also. -
What a sad writing... http://cms.about.com/b/2013/10/20/too-many-cmss.htm He has a good point here though
-
Hi Davo. Make sure you have pagination activated on the settings of this template.
-
festival site with processwire and ajax - Boom Festival
diogo replied to retinafunk's topic in Showcase
I only noticed now where the festival will take place -
I just googled "git mysql database" and this thread was the forth result Checked in incognito mode and it's still the forth, so it's not because of google private results.
-
festival site with processwire and ajax - Boom Festival
diogo replied to retinafunk's topic in Showcase
Good work! I'm definitely interested in knowing about the URL updating!! I know how to do it with hashes but not like this -
Soma, I was also going to post about this It looks interesting although creating content still doesn't feel very smooth. There is one thing though that I've been thinking for some time, why do people think that Json and Markdown are more semantic than HTML? To me it doesn't make any sense... Is ** more semantic than <strong>? Is Json more semantic than XML? Isn't HTML an XML way of organizing written content? HTML has come such a long way that I tend to think that it is the most efficient and semantic way of storing written content, I even wish that books would be written with it, and word processors and DTP tools would use it by default, an I would love to see better and more efficient HTML parsers coming up. Well, just a thought...
-
In theory KendoUI could be used in PW because they have a special license for open source projects The problem is that people wouldn't be able to use it in the frontend, so, things like Form Builder wouldn't be possible. edit: this could be a nice solution for some themes: http://addyosmani.github.io/jquery-ui-bootstrap/theme/base/index.html
-
If I'm not mistaken the design of the WP admin is from Jason Santa Maria. Couldn't be ugly for sure...
-
Agrio new website and corporate identity / branding
diogo replied to Raymond Geerts's topic in Showcase
Way simpler than that, the background is changed in a CSS media query, if I'm not mistaken -
This is one thing I love about PW. Many heads thinking and suggesting, one head deciding and acting quickly