-
Posts
4,320 -
Joined
-
Last visited
-
Days Won
80
Everything posted by diogo
-
In pw, if something is being too complicated you're probably doing it wrong
-
Macrura, I was listening to Holy Ghost for the last hour. Very nice, thanks
-
Soma is da man!
- 24 replies
-
- 1
-
-
Ok, late to the party after my soon answer... What I was talking about way up there is not more than a PageListSelectMultiple that shows allows you to edit the page in that same place. The relation that I did to repeaters, is because this is exactly what they do. They allow you to edit a page (that is hidden in the tree) from inside another page. So, technicaly, it shouldn't be very different to do.
- 24 replies
-
Looks interesting Ryan, you got me curious. Outside I love a strong and foamy espresso, but at home use one of these: Back to the music. This is what I'm listening to http://grooveshark.com/album/Little+Dragon/1417265
-
flushed away through the siphon! had to say it
-
Soma, I understand that $pages->get(id) is an explicit call, but get() is also useful to get what would be the first result of a find() without pulling everything from the database, just like doing $pages->find("limit=1"). Or, at least this is what I thought...
-
It is 2.3, but it's not that strange if this is the intention EDIT: i don't know
-
actually, include=hidden does sort of work with get: // 7|2|27|1000 are hidden echo $page->find('parent=/'); // 1001|1003|1005 echo $page->get('parent=/'); // 1001 echo $page->find('parent=/, include=hidden'); // 2|7|27|1000|1001|1003|1005 echo $page->get('parent=/, include=hidden'); // 1001 //but echo $page->find('parent=/, sort=-sort, include=hidden'); // 7|2|27|1000|1005|1003|1001 echo $page->get('parent=/, sort=-sort, include=hidden'); // 7 confused? Ya, me too... edit: I guess get() gives priority to non hidden pages unless you explicitly sort them.
-
I understand what you are talking about because I've used symphony myself, and I know how great subsection manager is. Actually, a talk where I mentioned it was the inspiration for Ryan to build the repeater fieldhttp://processwire.com/talk/topic/47-module-want-repeatable-elements/?p=4906 What you are asking here could be solved in the same way as repeaters. A page field that shows you that page fields directly on the hosting page (just like repeaters do). It relates somehow with this discussion also http://processwire.com/talk/topic/3092-field-naming-namespacing-and-how-we-can-prevent-excess-of-fields/.
- 24 replies
-
include hidden works as any other selector. In the examples above: $page->find("parent=$page->children, include=hidden"); $page->find("parent!=$page, include=hidden"); $page->find('include=hidden'); $gc = $pages->find("parent=$gp->children, include=hidden"); I thought so, but just tried it, and surprisingly it returns the first page that is not hidden. So. I guess not. But you can have the same result by doing: $page->find('include=hidden')->first(); although it's more expensive
-
You could hook on save page instead. Just check if images already exist for the existing files, and if not, trigger the process for those that are missing.
-
Ollie, use the code formatting tool to show code on the forum as it's much more readable. This time I did it for you.
-
I didn't know the bitwise version. Thanks!
-
this is my favourite at home http://www.continente.pt/ProductDetailMain.aspx?productId=2004030&CategoryName=12&CategoryPath=12%7C121202&SubCategoryName=12120203&Back=ProductsIndexMain.aspx?
-
$count = 0; // sets the start of the count and $count++ adds 1 to it at each loop passage. onjegolders set the count to 0 and added 1 in the beggining of the loop, but it could also be set to 1, and raised immediately before the closing of the loop. $class = ""; // creates an empty string, this is usually needed so when the variable is set and you don't get an error when it's called later. In this case you don't really need this part because the variable is set later in both the "if" and the "else", so it will be set for sure when it's called later. You can delete that line if you want. $count++; // as I told before, adds 1 to the current count. if ($count % 2 == 0) // the % sign is the modulo operator http://php.net/manual/en/language.operators.arithmetic.php, the result is the remainder of a division operation. You know that a number is even if the result of % 2 is 0.
-
I know you are from south and middle England, but every time you both talk I imagine this accent https://www.youtube.com/watch?v=RL4FCRbm5jo
-
http://apigen.juzna.cz/doc/ryancramerdesign/ProcessWire/
-
I create an empty template anyway. 4 more clicks, and less code forever...
-
pwpwpw.pw PowerWithPrizeWinnerProcessWire !! edit: or pwpwpwpw.pw PowerWithPrettyWonderfulPrizeWinnerProcessWire !! edit2: or pwpwpwpwpwpw.pw PromptlyWinPhenomenalWorkingPowerWithPrettyWonderfulPrizeWinnerProcessWire !! ok, i'll stop...
-
Joss, you should come to Portugal if you like good coffee! But the sound of a café here wouldn't be good for this purpose, here they hit the portafilter really hard
-
Ninjas don't need this
-
The cafe sound is exactly what I like I work a lot on cafes, and when I'm at home or at the office the silence kills me... this actually works for me
-
Hello petsagouris. Welcome! I knew Ryan referred to this briefly somewhere... here it is http://processwire.com/talk/topic/1931-recommended-php-style-guide/?p=18141
-
A guy at Kodingen is working on this. It's not music, but it's sound and good for programming http://rainycafe.com/ love it!