One problem that you'll probably run into is that we currently dont properly use Yii's view rendering in most admin views.
So for us the first step is to get proper view rendering and after that theming should be a piece of cake!

I think the global plugin settings are one of the few screens that actually use a proper layout and view file, you could look at that as a basis!

Cheers,


On Mon, Jan 13, 2014 at 7:07 PM, Rystraum Gamonez <rystraum@gmail.com> wrote:
Hi Sam,

I'm assuming you're talking about this: http://www.yiiframework.com/doc/guide/1.1/en/topics.theming ?
I'll rework what I have to try and start on using built-in Yii theming functions.

Thanks!

- Rystraum


On Tue, Jan 14, 2014 at 1:53 AM, Sam Mousa <sam@mousa.nl> wrote:
Hi Rystraum,

I haven't looked at your work specifically but I can tell you some general things though.
- Yii already has built in theming support that we will be switching to in the future.
- We do not want to replace the calls to render / renderPartial and other variants, instead we should switch to only using them.

Cheers,

Sam


On Mon, Jan 13, 2014 at 6:13 PM, Rystraum Gamonez <rystraum@gmail.com> wrote:
Hello,

I was able to manage to enable other admin theme developers to be able to 
override existing admin views.

It's available in my repo's fork, under the bootstrap branch. 

Basically, it's a function that checks if the view file is existing under views/{theme_name}/{view_file_path}, and if it exists, it calls that.
Otherwise, it defaults to views/admin/{view_file_path}. It's meant to replace
$this->renderPartial calls in admin controllers.

So, it's possible for gringegreen to override the views/admin/super/header 
by putting the overriding file in views/gringegreen/super/header.php.

In the repo is a sample, very rough, work-in-progress theme that puts 
the admin backend onto a regular bootstrap layout.

To switch views, you just have to configure the admin backend to use 
the bootstrap theme.

A few problems that I've come across:
1. It's very difficult controlling the js and css packages because of the registerPackage calls within the controller methods. For now, I'm calling Yii::app()->getClientScript()->reset() so the overridden views has to include the stylesheets and scripts on their own.
2. AJAX-based/JS-based default views may not work as expected on overridden views because of (1).

Comments are welcome.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
limesurvey-developers mailing list
limesurvey-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/limesurvey-developers