Fork me on GitHub

How do you set an admin theme?  Bottom

  • How do I set one theme for the frontend and another for the backend?
  • Create a plugin to redirect to newtheme=foo if function type eq admin. ..and vice versa

    or you could create a dual function theme (conditional styles and templates).






    edited by: AmmoDump, Aug 09, 2008 - 08:25 AM

    --
    David Pahl
    Zikula Support Team
  • Go to Theme administration.
    Select theme, you want to use for admin and mark "Admin theme" option.
    Then go to Admin module administration, Settings section, find there list of themes and select your theme.

    Thanks to this - changing global theme should not change admin theme.



    edited by: Jusuff, Aug 09, 2008 - 02:31 PM

    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • You are 100 percent correct.


    Never mind my gibberish below.


    Quote

    This is true? I understand these as permission schemes. If I have admin privileges, I may use this theme if it is 'admin' else not. Likewise, if it is set to user, then these themes become available for users (admins are normally user class, as well).

    ...but it does suggest 'Admin Panel'.

    If this is true, how does the admin panel get selected? (set to active).




    edited by: AmmoDump, Aug 09, 2008 - 08:57 AM

    --
    David Pahl
    Zikula Support Team
  • Very good. Very well hidden. icon_biggrin

    But Dave: Your hint is nice for functions that are not type=admin (type=edit in Pagesetter e.g.) which should also use the admin theme. What exactly do I write into that plugin?

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • I guess a 'complex' filter would be required, that would check against first against 'admin', then against $module and $type.

    With BlankTheme we do a bit of this already right in the module templates. For example: http://code.zikula.org/blanktheme/browser/trunk/themes/blanktheme/templates/modules/pages.htm

    It shouldn't be hard to extend this to filter for $type



    --
    David Pahl
    Zikula Support Team
  • No - it should simply handle everything that's not "user" icon_wink

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • excuse me but why don't use the bases ?
    http://community.zikula.org/Wiki-ThemeIntro.htm

    there is already some ini file where you can specify which template you want for each page/func/param
  • Hehe.. I didn't know it extended to the func/parm icon_rolleyes

    Genius!

    --
    David Pahl
    Zikula Support Team
  • copy admin.htm and the associated CSS file from the theme you want to use as your admin/background theme and replace them in your activated theme.

This list is based on users active over the last 60 minutes.