This discussion is related to the Custom Pages addon.
some features i would love to see in this app
ability to edit pages from admin dashboard wysiwyg editor private pages, password protected media upload ability comment system, could use the discussion application for this
And in the default.php for the CustomPages plugin I added this: $PluginInfo['CustomPages'] = array( 'Name' => 'Custom Pages', 'Description' => 'A plugin that lets you add custom pages...', 'Version' => '1', // I added the line below: 'RegisterPermissions' => array( 'Plugins.CustomPageFood.Manage', 'Plugins.CustomPageFood.View' ),
Comments
My addons: NillaBlog | Vanoogle
in my custom page:
$perm_manage = Gdn::Session()->CheckPermission('Plugins.CustomPageFood.Manage');$perm_view = Gdn::Session()->CheckPermission('Plugins.CustomPageFood.View');
if (!($perm_view || $perm_manage)) {
exit();
}
And in the default.php for the CustomPages plugin I added this:
$PluginInfo['CustomPages'] = array('Name' => 'Custom Pages',
'Description' => 'A plugin that lets you add custom pages...',
'Version' => '1',
// I added the line below:
'RegisterPermissions' => array(
'Plugins.CustomPageFood.Manage',
'Plugins.CustomPageFood.View'
),
My addons: NillaBlog | Vanoogle
A functionality for version rollback and such. A wiki more or less. :)