-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
No it's powerful and fast and dangerous ... With one "L"? It's more efficient... No I don't know your obsession. Well I don't know what MenuBuilder contents are. Why? Does MenuBuilder not have any render functions? Aligator and MSN only work with Pages.
- 15 replies
-
- 3
-
- nested
- navigation
-
(and 2 more)
Tagged with:
-
Aligator (wip) Processwire Module to render a nested tree starting from a single root or an array of pages. Aligator is similar to MarkupSimpleNavigation but has a different approach of how to define the markup for your menu. It doesn't assume any markup or classes. It's up to you to define them where needed. It's less plug and play and requires some more advanced knowledge of ProcessWire, as some additional setup and coding is needed. But allows for powerful and easier customization without using hooks. Aligator uses callback functions to achieve this. Additionally a selector can be used to filter the children for your navigation. Note: This module is a fun project trying to find simple configurable method to render navigations. It's a work in progress and there might be major changes to how the module works. See further infos and examples on the repository: https://github.com/somatonic/Aligator
- 15 replies
-
- 21
-
- nested
- navigation
-
(and 2 more)
Tagged with:
-
Sort problem: Selector with date needs empty dates last
Soma replied to Xonox's topic in General Support
Or add a checkbox to the template and when saving a page check for date and if empty set the checkbox. Then use "sort=hasdate_checkbox, sort=training_start, sort=id" -
Repeaters are located in /admin so access protected too. So I guess for a not logged in user you wouldn't be able to $pages->find(selector) the repeater pages. I think then you'd need a "check_access=0" or a "include=all". Since they're in /admin you could also consider implicit "has_parent=RepeaterParentID" or "has_parent=2" ($config->adminRootPageID) instead of exluding trash somehow.
-
It has happened in the past 2 times already and will happen again sooner or later. Looking back I still liked the first forum the most in terms of overview and browsing. I got annoyed by the changes to something I used everyday and was used to it. Always takes some time to adapt and we all know it can be frustrating. Sometimes it's just the styling that's so different your brain has to adapt. But after a while you'll maybe even appreciate it or forget about it. But then it has to be done and I appreciate all the work put into it, as it's a tedious work done in Pete's spare time. I'm also surprised to how much has changed in the new version as it's completely a new thing, and I it took me a while to see where I find what. I think the "why" isn't the problem it's the how you wrote it with the uppercase and the 4 (edit: oh 5!) exclamation marks!!!!.
-
Pages query only showing all results with default language
Soma replied to didhavn's topic in General Support
Are they active for the alternate languages even? -
PW doesn't allow for multidimensional post arrays. https://processwire.com/talk/topic/691-wireinput-only-allows-one-dimensional-arrays-why/
-
Problem with Ajax images upload and SessionHandlerDB
Soma replied to Soma's topic in General Support
Well I think we'll have to stick with this bug still for a long time since Ryan can't reproduce it. I just installed again a vanilla PW locally and same scenario once SessionHandlerDB is installed. -
Problem with Ajax images upload and SessionHandlerDB
Soma replied to Soma's topic in General Support
Oh really? Lots of headaches for something that simple to find out? Here's your 3000th like! -
I just wanted to know if anyone can reproduce this behaviour: https://github.com/ryancramerdesign/ProcessWire/issues/1871 Install SessionHandlerDB and upload a bunch of jpg to an images field. They upload fine and show but after saving the page some images are not saved and wont show anymore. They're still in the assets folder but orphaned. Thanks
-
Admin Search - no unplubished Pages can be searched
Soma replied to Erik Richter's topic in General Support
This is like this since a long time already. I'm surprized this has never been addressed. -
Method(s) to cycle through foreach/compare values of Children
Soma replied to creativejay's topic in API & Templates
For the simple minded this would be the foreach version that does the same. $colors = array(); $childrenByColor = array(); foreach($children as $child) $colors[$child->color][] = $child; foreach($colors as $color => $items) { $childrenByColor[] = "$color (" . $items->implode(",", "title") . ")"; } $line = implode(", ", $childrenByColor); -
The reason you would have to look for is why the homepage has output formatting turned off, because it's not usual at all. Output formatting is always turned on in front-end templates.
-
If your image site_logo is set to multiple files, your code will output the url to the assets folder of the page "/site/assets/files/1/" If your image site_logo ist set to allow only 1 file, your code will output "/site/assets/files/1/logo.svg" If the outputformatting for the page is off, both cases will output "/site/assets/files/1/" So my guess is that on your homepage, somehow output formatting is turned off?
-
Thanks bernhard for the hint. But this is only in modules and when multi-instance is used. The example here is in a bootstrap where there's no $this. What do you mean by "they are working also in earlier versions" ? As those multi-instance examples like $page = $this->wire(new Page()); isn't possible in 2.7 for example. Or am I wrong?
-
I wonder why nobody/Ryan answers here.... No it's not possible. I also ran into it. InputfieldCKEditor.module does configure purifier hardcoded with the allowing the target _blank. Nothing else. But the thing is we can configure the Link Editor to use different targets. But when adding a new one like "_parent", it won't allow it as it's hardcoded. In my opinion the InputfieldCKEditor.module should recognize the target config of Link Editor and add those to the allowed targets.
-
Trouble Detecting if there are siblings to a page or not
Soma replied to EyeDentify's topic in Getting Started
Alternatevely if($page->parent->numChildren(true) > 1){ // true = only visible ones } This doesn't load the children/siblings pages just count. -
Accessing filesize property of $file in admin template
Soma replied to ZGD's topic in API & Templates
An File field configured as single (max 1), will by default be a single object on front-end (where outputformatting is on), BUT in the backend where no outputformatting is on the field will be an WireArray, regardless of if single or multiple. -
Thanks Adrian for this great module. I had some problem getting it to work. Installed on 3.0.18 and no Debug Panel on front end shown. There were some div but empty, and css js I've seen. The module is using Master(dev) (master is dev?) automaticly and I have PHP 5.6.10. Once I switched to Stable it started showing the Panel on front end. Also wanted to add that some of the panel are cut off on the left side by the screen. Also a funny effect is that the modal of the debug panel are moving a bit towards top/left everytime I click on one to show/hide it.
-
The modules limit is set to 350 currently. But there seems to be more than that already. If I set the config to 400 Tracy shows up. There's a hard limit on the webservice in modules.processwire.com for how many modules can be listed in one go, but can't remember how high Ryan set. ModulesManager would need some recoding regarding the limit, but haven't got time and a good idea how to handle it using pagination. However it's always possible to use the built in module installer.
-
There's a data integrity check available under "Action" tab when editing a field.
-
PW aborts the page in a case the page isn't viewable or not found and renders the 404 instead. A 404 is never a redirect to the 404 page. A 404 always stays at the requested URL and sends a 404 header instead. The rendering of the 404 page does a $page->render(), thus calling the init.php again. That's why you should include() a functions php with required_once() or alike to avoid redeclarations.
-
Your solution does output an UL for each subchildren page...