Skip to content

Instantly share code, notes, and snippets.

@bjornbjorn
Created January 6, 2014 12:26
Show Gist options
  • Save bjornbjorn/8282158 to your computer and use it in GitHub Desktop.
Save bjornbjorn/8282158 to your computer and use it in GitHub Desktop.
Hack for enabling Structure (3.3.13) to allow url_title "/" on root node
---
third_party/structure/views/index.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/third_party/structure/views/index.php b/third_party/structure/views/index.php
index 2bf7e9d..2db600f 100755
--- a/third_party/structure/views/index.php
+++ b/third_party/structure/views/index.php
@@ -47,7 +47,7 @@ $level_lock_delete = is_numeric(substr($permissions['delete'], -1)) ? (int)subst
if ($page['entry_id'] == $homepage) {
$classes[] = 'home';
- $classes[] = 'ui-nestedSortable-no-nesting';
+ //$classes[] = 'ui-nestedSortable-no-nesting';
}
$li_open = '<li id="page-'. $page['entry_id'] . '" class="'.implode(' ', $classes).'">';
--
@bjornbjorn
Copy link
Author

Also works on EE 2.9 w/Structure 3.3.14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment