-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
Ha! You didn't listen to me
-
I have to say that I like the theory of this Php dom parsers would have to improve a lot, though... Would be great if you could use a browser dom parsing engine in the server, and work with server side languages on top of that... And I don't mean this only for node.
-
Check if you have the "convert to HTML entities" textformatter set.
-
Hi guys! So, we launched two more websites and more will follow soon. http://mlausen.com/ Multi language and responsive site for a German architect/photographer based in Switzerland. This site is for showcasing her (exclusively b/w) photography and writings. Maike is very happy with PW, and said that she had fun while updating the content. -- http://demenzinitiative-karlsruhe.de/ Very simple and simple to use (by concept) website for a dementia support initiative in Germany. This website has three different layouts depending on the screen size, so make sure you resize the window, and zoom out if you don't have a large screen. The illustrations are by us -- Both corporate identities were also created by us.
- 2 replies
-
- 11
-
Sarah, in your case, the selector ~= should work title~=$term
-
You won't be redirected just like that. You know that Ryan wouldn't do something like that to us, remember, you're still in full control Now you have to use the available methods to take people to the correct url. My favourite is implementing a simple language switch, since I personally hate to be redirected to my browser's language without being asked. You would use $page->localUrl($language) for this. Check how to do it here https://processwire.com/api/multi-language-support/multi-language-urls/ I usually do something as simple as this: foreach($languages as $lang) { $active = $user->language===$lang ? 'class="active"':''; echo "<li {$active}><a href='{$page->localUrl($lang)}'>{$lang->title}</a></li>"; } -- For serving the language based on the browser language, you don't even need the language urls —and since I've never done it, I may be giving you a wrong info— Just detect the browser language http://www.paulund.co.uk/auto-detect-browser-language-in-php and switch the user language accordingly with: $user->language = $language; Of course, if you prefer, set up the URLs and make the redirect instead.
-
If you have everything correctly set up and go edit the home page, in the settings tabs there should be something like this:
-
Maybe it even uses them, I didn't check. But I don't necessarily prefer CSS transitions to animations in JS. In the case of velocity.js for instance, the animations can be smoother than CSS transitions,
-
First in google http://nnattawat.github.io/flip/ Edit: and a bit lower http://pingmin-tech.com/flipcardjs Edit2: and with Masonry http://codepen.io/rmarmer1/pen/bkaAK
-
Unless you give the password to google
-
Just a thought — you could also keep those numbers in dedicated fields in a page and update them every time a video is created or deleted. edit: the famous Eiffel Tower looks unrecognisable in that clip
-
I'm on mobile and can't test what you did, but i think the '' are not needed. you could also use the hasparent selector http://cheatsheet.processwire.com/selectors/built-in-page-selector-properties/has_parent-page/
- 10 replies
-
- Inputfield Dependencies
- path
-
(and 1 more)
Tagged with:
-
Look for template label on the template settings. The field is closed when empty, look well.
-
-
I also think that _blank should be default. I think this point is well made here https://css-tricks.com/use-target_blank/
-
Guys, that was not meant to be an analogy between php/(other languages) vs sql/(other DBs). What I meant is that PW is built to work with PHP and MySQL, and it does it very well. I don't think Ryan felt at any time that these two are limiting the functionality of PW, and as a big bonus, these are the easiest conditions to find in any hosting. IF there was an analogy, than that's the one I used. Exactly! I think we all agree with this. At this point, Ryan filters and rewrites any piece of code that enters the core. Until now he's proved that this is the best way of keeping the reliability of the code https://processwire.com/talk/topic/9254-dev-and-master-versions/
- 16 replies
-
- 2
-
- graph databases
- database
-
(and 2 more)
Tagged with:
-
Again, we need to know the context of the code. Is that second code inside a function and the variables set outside of it? In alternative, you can study a bit http://php.net/manual/en/language.variables.scope.php
-
At this point it's a bit like asking to drop php in favor of go. PW is a php/(my)sql framework by nature, and that's what it will continue to be. I would love to see other projects assumidely inspired by pw but built in other systems popping up.
- 16 replies
-
- 4
-
- graph databases
- database
-
(and 2 more)
Tagged with:
-
Sure, I prepared an example http://codepen.io/diogo-ed/pen/rarZVN
-
I remember that I had some trouble with the latest version of adminer. But because I was in a hurry, I just used an older version and didn't think about it anymore. Maybe I'll try again later just to check.
-
I use this kind of thing all the time for responsive menus
-
Back to this one Not a pw recipe, sorry for that. This is only css and I thought it might be useful for this discussion. .drink { display: inline; } .drink:nth-last-child(n+3):after { content: ", "; } .drink:nth-last-child(2):after { content: " & "; } http://codepen.io/diogo-ed/pen/OPwOJb
-
If you see al the images, the problem is with the lightbox implementation. Which one are you using? And why do you need repeated images for the lightbox?
-
It's a good idea, but has other implications because I test for the fieldtype to check if the field is multiple. Not a showstopper, but I can't work on it at the moment.
-
Agree with only "images", but not the 0 index form. That may be more intuitive to some developers, but surely not for clients Exactly