Back to swiftlet.org | To report bugs, please use the issue tracker at GitHub.

splitting design from core.
  • svenn January 22
  • svenn January 22

    Is it possible in next releases to split the essential css from the basic layout design ? Like layout for making the bug reports, is needed, but design for page layout and other layout is not, and is mostly changed by the users anyway...
    thx for reading :D

  • ElbertF January 22

    I made the CSS as modular as possible, you can just remove the #header, #content and #footer sections or rename the ids in the HTML. I don't want to split up the CSS because this way it's easier to find things and saves HTTP requests. I don't consider the layout for notices, form, tables etc. to be essential, many users will want to change that as well.

  • svenn February 14

    A little later, and perhaps a little smarter, I found out, that the Issue i had here, had nothing to do with the design itself, but with the fact that once you put you're own css file over it, all swiftlets design is kinda broken. Now an way 2 easy fix is the following : in _view/header.html.php
    <?php if ( $contr->inAdmin ): ?>


    <?php else: ?>


    <?php endif ?>

    good example of being noob. :D

  • svenn February 14

    and html is getting deleted. fail ^_^

  • ElbertF February 14

    I'm not sure what you're trying to do, use different CSS for the admin? Note that if you want to, you can change the value of `$contr->viewPath` and `$view->viewPath` with a plug-in and use a completely different View folder.

  • svenn February 15

    Ye, I made CSS for my front website, while using swiftlet for the back-end, swiflets css is really cool, but 2 css files together is almost instant fail. (for me) so I searched for a way to remain swiftlet and my design. Now I found a "slow" way by making a inAdmin switch in de header and footer file. However, I don't like the solution as it slows my site (i know just a little), w/o an advantage for visitors.

    I know there must be a way to switch the admin header, but then again, I'm not so very pro on the plugins topic.

  • ElbertF February 16

    I don't think a switch slows things down notably but I'll try to come up with something better to use different layouts for the front- and back-end. Why do you use two style sheets? You should probably just copy the default one and change what you like.

Howdy, Stranger!

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

Sign In Apply for Membership