Results 1 to 13 of 13

Thread: Backend template isAdmin and remove icons

  1. #1

    Default Backend template isAdmin and remove icons

    Hi,

    I would like to remove the icons in my template see nr1 in attached snapshot.

    I would also like to only display the part at the top of my template when a user is administrator (see nr 2). How can I do this the easiest way?

    Thx,
    Frederick

  2. #2
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Backend template isAdmin and remove icons

    Where did you get this cool template?

  3. #3

    Default Re: Backend template isAdmin and remove icons

    It is based on SImpla admin. I hope to finish it by EOY

    Rgds

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Backend template isAdmin and remove icons

    Wow - this is exciting work you're doing, freeyland! Are you planning to release this as an extension or is this theme for your personal use?

    For anyone interested in more screenshots, Simpla Admin is from themeforest.net: http://themeforest.net/item/simpla-admi ... skin/46073

  5. #5

    Default Re: Backend template isAdmin and remove icons

    I will release it as an extension as soon as it is ready.
    In the meantime I hope someone can help me removing the + and - icons in front of the groupings.
    I would like to do it without changing the core code.


    Frederick

  6. #6
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Backend template isAdmin and remove icons

    Frederick,

    It looks like that template already uses jQuery, so you may want to look into removing or modifying the code as it is rendered using jQuery. This could also be done with Mootools, I believe. I'm not much of a coder, so I can't tell you exactly how to do this. Mark provided me with some help on using jQuery to re-write code here: viewtopic.php?f=7&t=813&p=2962

    You may also find this tutorial helpful: http://stackoverflow.com/questions/5413 ... elses-html

  7. #7

    Default Re: Backend template isAdmin and remove icons

    Hi,

    Jquery is already removed. The problem is that Typolight is adding the icons.

    Rgds,
    F

  8. #8
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Backend template isAdmin and remove icons

    What about just hiding the +/- icons with css?

    Code:
    li.tl_level_1_group a {
    display: none;
    }

  9. #9

    Default Re: Backend template isAdmin and remove icons

    Thx for reply but doesn't work as it is added with javascript when DOM has finished loading

  10. #10
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Backend template isAdmin and remove icons

    The css is listed previously worked perfectly for me. I simply added it to /system/themes/default/basic.css. You could also call the selector: #tl_navigation .tl_level_1_group img.

    As I mentioned previously, you could also remove the icons using Mootools since you say you've taken jQuery out.

  11. #11

    Default Re: Backend template isAdmin and remove icons

    Thx. Now it is okay. I removed it with CSS. (Didn't work because of stupid mistake)

  12. #12
    Experienced user
    Join Date
    06-10-09.
    Location
    Atlanta, Georgia
    Posts
    611

    Default Re: Backend template isAdmin and remove icons

    Frederick,

    Did you get your backend theme created? It looks great from the screenshot!

  13. #13

    Default Re: Backend template isAdmin and remove icons

    Hi,

    No. It was not possible to create the menu.
    I've created a ticket to adapt core code, so that custum templates can be easier changed.

    I will let you know when the template is OK.

    Rgds,
    Frederick

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
  •