View more context

 

CptPillow

Thats always good.... now i can pull out my hair with a different project 👍

Jim Speir

Well... not specifically explosions... 🙄

greg_808

is it true that i don’t need to escape get vars if i get them like $request->getVar(‘foo’)???

Firesphere

An http iframe inside an https website should never work afaik

sorokin

Is it possible to have nesting levels in the site tree that don't introduce new pages (or at the least, new url segments to subpages)? One of our clients has a page with a lot of children and they've asked to group them into folders but i've never seen anything like that, and i'm probably just going to suggest either "no" or use lumberjack and a gridfield they can sort / filter

wmk

well, sitetree wasn't designed for that usecase. Every branch of the tree is a part of an url. You might create a special page type that doesn't append the URLSegment, but you also need to modify ModelAsController to ingore that part if it's that page type.

wmk

I did it once vice versa. I have a "AccommodationHolder" with a lot of "AccommodationPages" and wanted to inject the town of each accommodation. It took some time until it worked - and it's not very elegant code.

wmk

but with xdebug and a bit of digging around you can surely inject some kind of "FolderPages". I'd suggest the customer to use SiteTree's table view and search functionality, in combinatino with Lumberjack for Holder/Page patterns

sorokin

@wmk so its not entirely impossible but it sounds at least as frustrating as i had suspected, thanks for sharing your experience. @Firesphere not sure who you're asking that question.