Loading...
 
Skip to main content

History: Bootstrap Row and Col Plugin Aliases

Source of version: 18

Copy to clipboard
            {DIV(class="jumbotron lead")}This profile applies two Plugin Aliases to help with creating Bootstrap rows and cols layout in wiki syntax content.
{DIV}
So __instead of writing something complex and hard to read__ like this:
{CODE(colors="tiki")}
{DIV(class="row")}
 {DIV(class="col-sm-12")}Hello World!{DIV}
 {DIV(class="col")}Column 1{DIV}
 {DIV(class="col")}Column 2{DIV}
{DIV}
{DIV(class="row")}{DIV(class="col")}Last row{DIV}{DIV}
{CODE}

You will be able to use these Plugin Aliases instead to distinguish the rows and cols:
{CODE(colors="tiki")}
{ROW()}
 {COL(class="col-sm-12")}Hello World!{COL}
 {COL()}Column 1{COL}
 {COL()}Column 2{COL}
{ROW}
{ROW()}{COL()}Last row{COL}{ROW}
{CODE}

The following will be applied:
! YAML Code
!! Row Plugin Alias
{CODE(caption="YAML" colors="yaml" ln="1")}
objects:
 -
  type: plugin_alias
  ref: row
  data:
   name: row
   implementation: div
   description:
    name: "Row"
    description: "Creates Row plugin alias"
    params:
     class:
      name: "Class"
      default: "row"
      description: "Class to be used (default is row)"
      required: true
    body: "Body"
    prefs: [ wikiplugin_row, wikiplugin_div ]
   params:
    class: "row"
   body:
    input: use
{CODE}

!! Col Plugin Alias
TODO

!! Preferences
Preferences which need to be enabled:
{CODE(caption="YAML" colors="yaml" ln="1")}
preferences:
 wikiplugin_div: "y"
 wikiplugin_row: "y"
{CODE}



        

History

Information Version
Mon 07 of Apr, 2025 15:07 GMT-0000 luciash d' being ๐Ÿง™ Added more Tiki version categories up to 28.x 21
Thu 06 of Feb, 2020 10:25 GMT-0000 Roberto Kirschbaum Add 21.x 20
Tue 03 of Dec, 2019 13:15 GMT-0000 luciash d' being ๐Ÿง™ Col plugin alias added 19
Tue 03 of Dec, 2019 13:09 GMT-0000 luciash d' being ๐Ÿง™ Code Plugin modified by editor. 18
Tue 03 of Dec, 2019 13:09 GMT-0000 luciash d' being ๐Ÿง™ Code Plugin modified by editor. 17
Fri 22 of Nov, 2019 20:10 GMT-0000 luciash d' being ๐Ÿง™ colors and lines 16
Fri 22 of Nov, 2019 20:04 GMT-0000 luciash d' being ๐Ÿง™ move prefs to separate YAML code block 15
Fri 22 of Nov, 2019 19:55 GMT-0000 luciash d' being ๐Ÿง™ examples 14
Fri 22 of Nov, 2019 17:27 GMT-0000 luciash d' being ๐Ÿง™ make sure the plugins are enabled (as preferences) 13
Fri 22 of Nov, 2019 17:16 GMT-0000 luciash d' being ๐Ÿง™ prefs and dependencies on prefs 12
Fri 22 of Nov, 2019 16:50 GMT-0000 luciash d' being ๐Ÿง™ recategorized 11
Fri 22 of Nov, 2019 16:42 GMT-0000 luciash d' being ๐Ÿง™ add body label and string values to quotes for better understanding of the code 10
Fri 22 of Nov, 2019 12:03 GMT-0000 luciash d' being ๐Ÿง™ minor 9
Fri 22 of Nov, 2019 11:59 GMT-0000 luciash d' being ๐Ÿง™ add body and some info (TODO: plugin alias Col) 8
Fri 22 of Nov, 2019 11:42 GMT-0000 luciash d' being ๐Ÿง™ Fix for the missing class (simple) param (thanks for the hint, Jonny) 7
Thu 21 of Nov, 2019 15:36 GMT-0000 luciash d' being ๐Ÿง™ shameless copy paste 6
Thu 21 of Nov, 2019 15:33 GMT-0000 luciash d' being ๐Ÿง™ test 5
Thu 21 of Nov, 2019 15:30 GMT-0000 luciash d' being ๐Ÿง™ bad copy paste :-/ 4
Thu 21 of Nov, 2019 15:27 GMT-0000 luciash d' being ๐Ÿง™ correct indent 3
Thu 21 of Nov, 2019 15:17 GMT-0000 luciash d' being ๐Ÿง™ body added 2
Thu 21 of Nov, 2019 15:14 GMT-0000 luciash d' being ๐Ÿง™ new Profile 1