-
Posts
4,314 -
Joined
-
Last visited
-
Days Won
80
Everything posted by diogo
-
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
-
I'll have a look at it. But I noticed that the core text formatters still use the deprecated format()... Yep, you're right. Not perfect, but you can reduce the output to a targeted node with as a parameter to saveHtml(), so I reduced it to <body> and trimmed the body tags. $str = $dom->saveHTML($dom->getElementsByTagName('body')->item(0)); $str = ltrim(rtrim($str, '</body>'), '<body>'); -- Edit: updated the module with this change
-
https://github.com/ocorreiododiogo/pw-image-fields-markup http://modules.processwire.com/modules/textformatter-image-field-markup/ This is an old idea that I felt inspired to finish after reading this discussion https://processwire.com/talk/topic/9164-release-inputfield-ace-extended/?p=88717 This textformatter does more or less the same that my Image tags texformatter, but instead of using it's own tags, it tries to be completely agnostic while doing this, so you can use whatever method the markup language applied to that field uses. So, for example, If you are using Markdown on your that field, you would insert all images of a field called "images" on that page with:  or inserting the second image from the field called "images" with and alt text of "overriding alt text":  While for textile you would do this: !images:0! !images:2(overriding alt text)! As I said, this is language agnostic, so it should work with any markup language. The trick is to collect the images when they are already html img tags, and intervene only on those that are not urls by changing their attributes accordingly. I used the php native DOMdocument class for this. There are still things to be done, like targeting fields on other pages, defaulting to the first image field from that template and cleaning up a bit. But I'm not planning to do those at this point. Consider this beta.
-
Sure, I'll do it
-
That's a nice one. Love the explanation on the side.
-
Hein?? Why the hell did they call their product Fedora? Edit: to be clear, I don't have a problem with the name itself, but that it's the same as the linux distro.
-
Eheh, I want to see how you are going to correct those two "know" that should be "now" in the text
-
Guys, this thread gave me the impulse I needed to finish an idea that I started long ago. So, here is a new module for using image fields inside textarea using the same markup language that you are using in that same text area https://github.com/ocorreiododiogo/pw-image-fields-markup edit: still testing and work in progress, so I'm not submitting to the directory yet