Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 6

Gpunzet +5 guests

Feature requests

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

Comments

  • Posts: 417
    I'd love to be able to protect certain pages by member role... Is there something that I can add to my page to get vanilla to do this?

    My addons: NillaBlog | Vanoogle

  • Posts: 417
    ddumont said:

    I'd love to be able to protect certain pages by member role... Is there something that I can add to my page to get vanilla to do this?

    I'd love for a way to do this more automatically, but here's how I ended up doing it.
    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

  • Posts: 23
    A revision feature would be swaggedy!
  • Posts: 77
    Revision feature for what exactly, @yusf?
  • Posts: 23
    @hyphy
    A functionality for version rollback and such. A wiki more or less. :)
Sign In or Register to comment.