Loading...
 
Skip to main content

History: Bootstrap Transition Preps

Preview of version: 42

As part of Theme Revamp, this page is to discuss, and plan an eventual transition to using Bootstrap in Tiki. As there is a general consensus we should move in the general Bootstrap direction (the minimum being the ability to use Bootstrap themes), the remaining questions are no longer "if" but more "how" and "when".


An experimental branch is here: http://sourceforge.net/p/tikiwiki/code/HEAD/tree//branches/experimental/redesign-proof-of-concept/

Questions

  • Where will we coordinate work?
    • I think on themes.tiki.org
      • I think dev.tiki.org would be more appropriate as it is about development (not a themes how to and tips and tricks stuff) But then we wouldn't be able to enjoy the retro environment of Planetfall or Faulkner, etc. 😉 .
  • Bootstrap 2 and later 3, or directly to Bootstrap 3?
    • Licensing issue prevents us use Bootstrap 2
    • There are several non backward-compatible changes
    • I suggest we shoot for compatibility with Bootstrap 3 to avoid doing a lot of work twice.
      • I agree
  • What about LTS handling?
    • Option 1: start revamp after Tiki12 LTS
      • Benefit: We can do pre-requisites such as Menu Revamp
      • Benefit: So we have less work later, we can start with migration of some aspects like
      • Benefit: We can start directly with v3
      • Benefit: Community has several months to get accustomed to Bootstrap
      • Benefit: No change on the schedule
      • Drawback: First LTS with Bootstrap will be Tiki15
      • Drawback: We could have started earlier
    • Option 2: start after 11.0 and try to finish for Tiki12
      • If Tiki12 isn't stable enough for a release on schedule, either
        • Option 2a) Retroactively identify Tiki11 as LTS
        • Option 2b) Identify Tiki13 as LTS
  • Do we try to support Foundation as well?
  • Will we still support the core/existing customisation approach that Tiki has - even with a Bootstrap theme (I'm probably showing my ignorance here! - Geoff) e.g
    • being able to take a standard theme but apply an 'option' (/styles/theme_name/options)that tweaks/adds different css etc., which includes:
      • option specific images
      • the Newsletter specific css
      • etc.
      • how will quirky browser tweaks be handled eg ie7, ie8 files etc
    • having a set of .tpl's that are theme specific (/templates) - with customised mail templates folder
    • be able to apply theme specific modules

    [My view is that we should use Bootstrap to provide:
    - Uniform styling (classes) for page components such as gadgets, buttons, tabs, and tables, etc. ("content"), and
    — (First we'll need to clean up Tiki's tpl files to uniformize the construction of these things.)
    - Page layout classes for grids, responsive web design, etc. ("framework")
    - Tiki's CSS classes should be a superset of the Bootstrap classes IMO.
    — A quick check of more-interesting "made with Bootstrap" sites shows this is common practice.
    — Sites using only default Bootstrap classes seem to be pretty limited style-wise.
    — We can offer more flexibility to designers and reduce their work by adding classes for styling.
    — We can offer more page layout options by having a few more divs available (to support FiveAlive-style header and footer graphic treatment, etc.). ]

Evolution or revolution?

Do we go for a clean break / "burn all bridges" approach and force major changes on all legacy themes? or do we make an effort to try to make old themes still work?

Arguments for clean break

  • End result will be simpler code
  • End result will be closer to what people already know (people that use Bootstrap that is)
  • Most theme intense sites have more than enough features in the LTS versions and can use that until they decide to refresh their site design.

Arguments for legacy support

  • Makes it easier for heavily customized themes to upgrade
    [I'm not sure how important legacy support per se is, but I think it'll be good to have a framework available that enables people to replicate their old designs if they want to go to the trouble. ]

Things to watch out for

Things that Bootstrap doesn't cover

  • Logo?
    • Presumably, Tiki's HTML classes will be a superset of the Bootstrap classes, so our current method for specifying the logo can still be used, in combination with the benefit of Bootstrap's layout.
  • RTL is not in v2
  • Let's use http://schema.org/ when possible
    • I do not understand how do Schema attributes validate in HTML - luci
    • luci, I think the suggestion was to use them for element/class names, etc.

Things that Bootstrap overlaps with existing components

Pre-requisites

This is a list of things that must or should be done before or as part of the Bootstrap integration.

  • Menu revamp
  • Migrate more things to Smarty plugins
  • New space /themes/ directory (but old way still works)
  • Move all temp content to one place
  • Layout switcher (from experimental branch)
  • Change to use Bootstrap font icons, which can be themed

In general

  • This is a lot of work
    • True, but Tiki's templates and CSS really need a major overhaul anyway. If that happens in a way that can take advantage of the Bootstrap bandwagon (as long as we still have design flexibility), so much the better.

CSS file reorganization

    • In parallel with the Smarty templates cleanup, CSS selector globalization, and use of Less-CSS, I suggest reorganizing Tiki's selectors into new "modular" files, which would be Less includes, perhaps similar to the breakdown in Bootstrap (not all will be needed: perhaps others will be.

Coming in Bootstrap version 3.0

Workflow

PHPStorm has a Less plugin (http://plugins.jetbrains.com/plugin?pr=&pluginId=7059), and apparently supports an "import" feature so there can be modular .less (pre-compilation) files like "typography.less" that can be imported into the main theme CSS file rather than being compiled separately (similar to how SASS supports "partials"). This should be confirmed.

Related links

Alias

Bootstrap Transition Preps

History

Advanced
Information Version
Mon 13 of Jun, 2016 05:17 GMT-0000 Gary Cunningham-Lee URLs corrected to fix 404 errors. 48
View
Tue 05 of Nov, 2013 02:11 GMT-0000 Torsten Fabricius typo? 47
View
Tue 05 of Nov, 2013 02:10 GMT-0000 Torsten Fabricius ML asked to rename for the purpose of SEO optimisation 46
View
Tue 29 of Oct, 2013 01:39 GMT-0000 Torsten Fabricius some more comments 45
View
Tue 29 of Oct, 2013 01:29 GMT-0000 Torsten Fabricius commented on where to coordinate 44
View
Tue 29 of Oct, 2013 01:25 GMT-0000 Torsten Fabricius comment to "Foundation" 43
View
Tue 29 of Oct, 2013 01:12 GMT-0000 Torsten Fabricius restructure BS pages 42
View
Wed 16 of Oct, 2013 10:36 GMT-0000 Gary Cunningham-Lee Added "Planning for Tiki 13" link. 41
View
Wed 11 of Sep, 2013 17:20 GMT-0000 Marc Laporte 40
View
Tue 27 of Aug, 2013 12:58 GMT-0000 Marc Laporte Too late now for Tiki12 39
View
Fri 19 of Jul, 2013 02:54 GMT-0000 Gary Cunningham-Lee Links completed. 38
View
Fri 19 of Jul, 2013 02:53 GMT-0000 Gary Cunningham-Lee Small joke added. 37
View
Thu 18 of Jul, 2013 21:24 GMT-0000 luciash d' being ?‍♂️ just the link to the license compatibility diagram 36
View
Sun 21 of Apr, 2013 16:13 GMT-0000 Gary Cunningham-Lee PHPStorm info added. 35
View
Sun 21 of Apr, 2013 00:23 GMT-0000 Gary Cunningham-Lee CSS reorganization added. 34
View
Sat 20 of Apr, 2013 21:27 GMT-0000 luciash d' being ?‍♂️ 33
View
Sat 20 of Apr, 2013 18:12 GMT-0000 luciash d' being ?‍♂️ 32
View
Fri 19 of Apr, 2013 15:27 GMT-0000 Gary Cunningham-Lee link added 31
View
Fri 19 of Apr, 2013 14:25 GMT-0000 Gary Cunningham-Lee Ideas about classes added. 30
View
Thu 18 of Apr, 2013 13:17 GMT-0000 Marc Laporte 29
View
Mon 15 of Apr, 2013 14:35 GMT-0000 Geoff Brickell 28
View
Mon 15 of Apr, 2013 01:22 GMT-0000 Marc Laporte 27
View
Sun 14 of Apr, 2013 18:49 GMT-0000 Gary Cunningham-Lee Added a workflow section. 26
View
Sun 14 of Apr, 2013 18:21 GMT-0000 Marc Laporte 25
View
Sun 14 of Apr, 2013 18:16 GMT-0000 Marc Laporte 24
View
Sun 14 of Apr, 2013 18:14 GMT-0000 Marc Laporte 23
View
Sun 14 of Apr, 2013 17:50 GMT-0000 Marc Laporte 22
View
Sun 14 of Apr, 2013 17:48 GMT-0000 Marc Laporte 21
View
Sun 14 of Apr, 2013 17:45 GMT-0000 Marc Laporte 20
View
Sun 14 of Apr, 2013 17:41 GMT-0000 Marc Laporte 19
View
Sun 14 of Apr, 2013 17:36 GMT-0000 Gary Cunningham-Lee Comments added. 18
View
Sun 14 of Apr, 2013 16:33 GMT-0000 luciash d' being ?‍♂️ 17
View
Sun 14 of Apr, 2013 16:28 GMT-0000 Marc Laporte 16
View
Sun 14 of Apr, 2013 16:27 GMT-0000 Marc Laporte 15
View
Sun 14 of Apr, 2013 16:18 GMT-0000 Marc Laporte 14
View
Sun 14 of Apr, 2013 15:57 GMT-0000 Marc Laporte 13
View
Sun 14 of Apr, 2013 15:49 GMT-0000 Marc Laporte 12
View
Sun 14 of Apr, 2013 15:47 GMT-0000 Marc Laporte 11
View
Sun 14 of Apr, 2013 15:45 GMT-0000 Marc Laporte 10
View
Sun 14 of Apr, 2013 15:40 GMT-0000 Marc Laporte 9
View
Sun 14 of Apr, 2013 15:38 GMT-0000 Marc Laporte 8
View
Sun 14 of Apr, 2013 15:34 GMT-0000 Marc Laporte 7
View
Sun 14 of Apr, 2013 15:18 GMT-0000 Marc Laporte 6
View
Sun 14 of Apr, 2013 15:17 GMT-0000 Marc Laporte 5
View
Sun 14 of Apr, 2013 14:32 GMT-0000 Marc Laporte 4
View
Sun 14 of Apr, 2013 14:07 GMT-0000 Marc Laporte 3
View
Sun 14 of Apr, 2013 13:55 GMT-0000 Marc Laporte 2
View
Sun 14 of Apr, 2013 13:53 GMT-0000 Marc Laporte 1
View