Results 1 to 5 of 5

Thread: Limit view in backend for users

  1. #1
    User
    Join Date
    11-24-13.
    Posts
    44

    Idee Limit view in backend for users

    Hi,
    I have some users not administrator who need to insert news and events in the simpliest way. Every user has its news archive and its calendar.
    I create a group limited as much as I can, but it keeps to show some things that i don't want:
    - 'New archive' in news and 'New calendar': how to remove?
    - how to remove 'duplicate archive'?
    - is it possible to enter directly in its news archive, without passing to the archive list?
    - how to remove filters on top?
    - in the news list and events list, how to show only some actions like 'edit', 'duplicate', 'delete'?

    Thinking globally: is it possible to create and extension that modify news and events in function of the user group?

    Thank you if you can help me...

    Davide

  2. #2
    User
    Join Date
    11-24-13.
    Posts
    44

    Default

    Quote Originally Posted by DavideR View Post
    - 'New archive' in news and 'New calendar': how to remove?
    Ok, solved: i unchecked edit and remove in user group settings but was set yet in user setting.

  3. #3
    User
    Join Date
    11-24-13.
    Posts
    44

    Default

    Another interesting solution that i found in the forum is that: editing system/config/dcaconfig.php:

    PHP Code:
    <?php

    // Put your custom configuration here

    $this->import('BackendUser''User');

    if (
    $this->User->isMemberOf(2))
    {
        
    $GLOBALS['TL_DCA']['tl_news']['fields']['teaser']['eval']['rte'] = 'tinyCustomForGroup2';
        unset(
    $GLOBALS['TL_DCA']['tl_news']['list']['operations']['edit']);
        unset(
    $GLOBALS['TL_DCA']['tl_news']['list']['operations']['cut']);
    }

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    You can use this new version without importing:
    PHP Code:
    if(BackendUser::getInstance()->isMemberOf(2))
    {
      
    // do something

    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    User
    Join Date
    11-24-13.
    Posts
    44

    Default

    Another great suggest from you Andreas Thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •