From dfc50b2f8c4d4ca58e4a720cda3ff543a819e96b Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Fri, 13 Nov 2015 15:31:39 -0500 Subject: [PATCH 1/9] Store channel ID instead of handle --- usermanual/UserManualPlugin.php | 2 +- usermanual/templates/index.html | 2 +- .../twigextensions/UserManualTwigExtension.php | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) mode change 100755 => 100644 usermanual/UserManualPlugin.php mode change 100755 => 100644 usermanual/templates/index.html diff --git a/usermanual/UserManualPlugin.php b/usermanual/UserManualPlugin.php old mode 100755 new mode 100644 index fa1bfcc..36a3b00 --- a/usermanual/UserManualPlugin.php +++ b/usermanual/UserManualPlugin.php @@ -59,7 +59,7 @@ public function getSettingsHtml(){ foreach(craft()->sections->getAllSections() as $section){ $options[] = [ 'label' => $section['name'], - 'value' => $section['handle'] + 'value' => $section['id'] ]; } diff --git a/usermanual/templates/index.html b/usermanual/templates/index.html old mode 100755 new mode 100644 index b7d47db..2e127a8 --- a/usermanual/templates/index.html +++ b/usermanual/templates/index.html @@ -6,7 +6,7 @@ {% set sidebar %}