first commit
This commit is contained in:
commit
e81864e683
2984 files changed
+267797
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
.. ==================================================
|
||||
.. FOR YOUR INFORMATION
|
||||
.. --------------------------------------------------
|
||||
.. -*- coding: utf-8 -*- with BOM.
|
||||
|
||||
.. include:: ../../Includes.txt
|
||||
|
||||
|
||||
=======================
|
||||
Extension Configuration
|
||||
=======================
|
||||
|
||||
Use the extension manager to adjust the Bootstrap Package to your needs.
|
||||
|
||||
|
||||
PageTsConfig
|
||||
============
|
||||
|
||||
The Bootstrap Package has a lot of PageTsConfig defaults.
|
||||
In some cases it can be useful to deactivate some of them if you do not need them.
|
||||
+291
@@ -0,0 +1,291 @@
|
||||
.. ==================================================
|
||||
.. FOR YOUR INFORMATION
|
||||
.. --------------------------------------------------
|
||||
.. -*- coding: utf-8 -*- with BOM.
|
||||
|
||||
.. include:: ../../Includes.txt
|
||||
|
||||
|
||||
===============
|
||||
Image Rendering
|
||||
===============
|
||||
|
||||
Bootstrap Package comes with a very flexible responsive image rendering and
|
||||
supports multiple variants for various device sizes. Each variant defines the
|
||||
**break point**, **width** and the optional **sizes** for high resolution image
|
||||
support.
|
||||
|
||||
|
||||
|
||||
Image Variants
|
||||
==============
|
||||
|
||||
Image variants are used to represent the breakpoints of the design. These
|
||||
variants have to be defined according the definitions in the style sheet.
|
||||
Bootstrap Package defines these variants by default:
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
lib.contentElement.settings.responsiveimages.variants {
|
||||
default {
|
||||
breakpoint = 1200
|
||||
width = 1100
|
||||
}
|
||||
large {
|
||||
breakpoint = 992
|
||||
width = 920
|
||||
}
|
||||
medium {
|
||||
breakpoint = 768
|
||||
width = 680
|
||||
}
|
||||
small {
|
||||
breakpoint = 576
|
||||
width = 500
|
||||
}
|
||||
extrasmall {
|
||||
breakpoint = unset
|
||||
width = 374
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
The **breakpoint** defines the minimal device width where the **width** gets
|
||||
applied. Having a device with a width of 1200 pixels or more uses an image width
|
||||
of 1100 pixels, devices of 992 up to 1199 pixels width use an image width of
|
||||
920 pixels and so on.
|
||||
|
||||
|
||||
For each of these variants the multiplier of size **1x** is set to 1, see next
|
||||
section for more about the high-resolution image support:
|
||||
|
||||
* default
|
||||
|
||||
* breakpoint
|
||||
* width
|
||||
* sizes
|
||||
|
||||
* 1x
|
||||
|
||||
* multiplier: 1
|
||||
|
||||
|
||||
Example of changing the default configuration for the default variant.
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
lib.contentElement.settings.responsiveimages.variants {
|
||||
default {
|
||||
breakpoint = 1200
|
||||
width = 1100
|
||||
}
|
||||
|
||||
|
||||
High Resolution Images
|
||||
----------------------
|
||||
|
||||
There is a key called sizes in every variant that should be rendered. This
|
||||
dataset consists of several entries, each with a default key for a normal
|
||||
rendering (1x). This key will be added automatically, and it is always available.
|
||||
It is not possible to store sizes smaller than 1. Each size contains a
|
||||
multiplier, which is multiplied by the base size.
|
||||
|
||||
Example calculations:
|
||||
|
||||
Base width: 1000px
|
||||
|
||||
* Minimum Device Pixel Ratio = 1
|
||||
|
||||
* Multiplier = 1
|
||||
* Result: 1000px
|
||||
|
||||
* Minimum Device Pixel Ratio = 1.5
|
||||
|
||||
* Multiplier = 1.25
|
||||
* Result: 1250px
|
||||
|
||||
* Minimum Device Pixel Ratio = 2
|
||||
|
||||
* Multiplier = 1.5
|
||||
* Result: 1500px
|
||||
|
||||
|
||||
Example configuration to enable high-resolution support for the default variant
|
||||
for devices with a minimum device pixel ratio from 1.5 and 2.
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
lib.contentElement.settings.responsiveimages.variants {
|
||||
default {
|
||||
sizes {
|
||||
1\.5x {
|
||||
multiplier = 1.5
|
||||
}
|
||||
2x {
|
||||
multiplier = 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
The data for image rendering is now extended with a sub-set for high-resolution
|
||||
variants. If you did not overwrite the default templates, it will just work as
|
||||
soon as you add the configuration. If you have overwritten the default
|
||||
templates, it will still work as before, but you need to add the new support for
|
||||
high-resolution images yourself.
|
||||
|
||||
Please check the new updated templates and adjust your code if you want this
|
||||
support.
|
||||
|
||||
|
||||
Configuration by Variant
|
||||
------------------------
|
||||
|
||||
For each **variant** the following configuration options are possible:
|
||||
|
||||
* breakpoint
|
||||
* width
|
||||
* aspectRatio
|
||||
* sizes
|
||||
|
||||
|
||||
Configuration by Backend Layout
|
||||
-------------------------------
|
||||
|
||||
For each **backend layout** the following configuration options are possible
|
||||
for each defined **column** and **variant**:
|
||||
|
||||
* multiplier
|
||||
* gutters
|
||||
* corrections
|
||||
|
||||
|
||||
Example configuration for backend layouts.
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
lib.contentElement.settings.responsiveimages.backendlayout {
|
||||
my_layout { # this is the BE layout
|
||||
0 { # this is the column to be modified
|
||||
multiplier {
|
||||
default = 0.75
|
||||
large = 0.75
|
||||
}
|
||||
gutters {
|
||||
default = 40
|
||||
large = 40
|
||||
}
|
||||
corrections {
|
||||
default = 25
|
||||
large = 25
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Configuration by Content Element
|
||||
--------------------------------
|
||||
|
||||
For each **content element** the following configuration options are possible
|
||||
for each defined **variant** or **specific property**:
|
||||
|
||||
* multiplier
|
||||
* gutters
|
||||
* corrections
|
||||
|
||||
|
||||
Example configuration for content elements.
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
lib.contentElement.settings.responsiveimages.contentelements {
|
||||
my_content_element { # this is the content element
|
||||
my_custom_property { # this is a content element specific property, depends on the implementation and is optional
|
||||
multiplier {
|
||||
default = 0.5
|
||||
large = 0.5
|
||||
medium = 0.5
|
||||
}
|
||||
gutters {
|
||||
default = 24
|
||||
large = 24
|
||||
medium = 24
|
||||
}
|
||||
corrections {
|
||||
default = 25
|
||||
large = 25
|
||||
medium = 25
|
||||
small = 50
|
||||
extrasmall = 50
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Configuration options explained
|
||||
-------------------------------
|
||||
|
||||
Options for variants:
|
||||
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| Property | Data Type | Description |
|
||||
+===============+===========+=================================================+
|
||||
| breakpoint | integer | Defines the minimal width in pixels of the |
|
||||
| | | device |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| width | integer | Defines the effective width in pixels for |
|
||||
| | | images for this variant |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| aspectRatio | float | Optional, defines the default aspect ratio |
|
||||
| | | which will override all previously defined |
|
||||
| | | ratios on image level |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| sizes | array | Optional, defines the available high resolution |
|
||||
| | | image multiplier for a minimal device pixel |
|
||||
| | | ratio per variant |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
|
||||
|
||||
Options for backend layouts and content elements:
|
||||
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| Property | Data Type | Description |
|
||||
+===============+===========+=================================================+
|
||||
| multiplier | integer | The width is multiplied with this value |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| gutters | integer | This value is added to the width before |
|
||||
| | | applying the multiplier and substracted |
|
||||
| | | afterwards |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
| corrections | integer | This value is added as last step to the width |
|
||||
| | | after all other calculations |
|
||||
+---------------+-----------+-------------------------------------------------+
|
||||
|
||||
|
||||
The options **gutters** and **corrections** are needed if you want to be pixel
|
||||
perfect. Means if you have a 1 pixel outline for example and want this to be
|
||||
subtracted from the width you can do this kind of corrections late in the
|
||||
calculation process.
|
||||
|
||||
* Example `Accordion <https://github.com/benjaminkott/bootstrap_package/blob/master/Configuration/TypoScript/ContentElement/Element/Accordion.typoscript#L44>`__:
|
||||
Here a correction is added to remove the inner padding of the container.
|
||||
|
||||
* Example `Card Group <https://github.com/benjaminkott/bootstrap_package/blob/master/Configuration/TypoScript/ContentElement/Element/CardGroup.typoscript#L50>`__:
|
||||
The border is substracted here.
|
||||
|
||||
|
||||
|
||||
Crop Variants
|
||||
=============
|
||||
|
||||
The Bootstrap Package predefines some cropping variants which can easily be changed
|
||||
or extended by your sitepackage.
|
||||
|
||||
The following crop variants are defined by default:
|
||||
|
||||
* 16:9, for a fixed ratio
|
||||
* 4:3, for a fixed ratio
|
||||
* 1:1, for a fixed ratio
|
||||
* NaN, for a free ration
|
||||
@@ -0,0 +1,20 @@
|
||||
.. ==================================================
|
||||
.. FOR YOUR INFORMATION
|
||||
.. --------------------------------------------------
|
||||
.. -*- coding: utf-8 -*- with BOM.
|
||||
|
||||
.. include:: ../Includes.txt
|
||||
|
||||
|
||||
==============================
|
||||
Configuration
|
||||
==============================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 5
|
||||
:titlesonly:
|
||||
:glob:
|
||||
|
||||
Extension/Index
|
||||
ImageRendering/Index
|
||||
TypoScript/Index
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
.. ==================================================
|
||||
.. FOR YOUR INFORMATION
|
||||
.. --------------------------------------------------
|
||||
.. -*- coding: utf-8 -*- with BOM.
|
||||
|
||||
.. include:: ../../Includes.txt
|
||||
|
||||
|
||||
==========
|
||||
TypoScript
|
||||
==========
|
||||
Bootstrap Package was built to be as adjustable as possible, so nothing is fixed and everything can be overridden with TypoScript constants.
|
||||
The constants are grouped in basic and advanced settings. Use the **TYPO3 Constant Editor** in the backend to modify the values.
|
||||
|
||||
|
||||
Bootstrap Package: Basic Constants
|
||||
==================================
|
||||
The basic settings will provide easy to use and understandable options for that are used mainly for styling and appearance.
|
||||
|
||||
|
||||
page.logo
|
||||
---------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| file | string | EXT:bootstrap_package/Resources/Public/Images/BootstrapPackage.png |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| height | integer | 60 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| width | integer | 210 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| alt | string | |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
**Example:**
|
||||
|
||||
.. code-block:: typoscript
|
||||
|
||||
page {
|
||||
logo {
|
||||
file = fileadmin/Theme/Logo.png
|
||||
height = 50
|
||||
width = 150
|
||||
alt =
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
page.meta
|
||||
---------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| description | string | |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| author | string | |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| keywords | string | |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.theme
|
||||
----------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| navigation.style | options | **default** | inverse |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| navigation.type | options | **0** | top | bottom |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| breadcrumb | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| breadcrumbEnableLevel | integer+ | **2** |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.theme.copyright
|
||||
--------------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| enable | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| text | string | Built on a Windows 8.1 Surface Pro. Running with TYPO3. |
|
||||
| | | Made with <3 by Benjamin Kott |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.theme.news
|
||||
---------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| list.header_position | options | **left** | center | right |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| list.header_layout | options | 1 | **2** | 3 | 4 | 5 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| list.imageorient | options | 0 | 1 | 2 | 8 | 9 | 10 | 17 | 18 | **25** | 26 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| list.imagecols | options | **1** | 2 | 3 | 4 | 5 | 6 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| list.maxW | integer | 1140 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| list.maxWInText | integer+ | |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| pagination.itemsperpage | integer | 5 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.theme.language
|
||||
-------------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| enable | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| languageValue | string | **auto** | 0,1,2 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
Bootstrap Package: Advanced Constants
|
||||
=====================================
|
||||
The advanced settings should be used only if you really know what you are doing.
|
||||
|
||||
|
||||
page.fluidtemplate
|
||||
------------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| layoutRootPath | string | EXT:bootstrap_package/Resources/Private/Layouts/Page/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| partialRootPath | string | EXT:bootstrap_package/Resources/Private/Partials/Page/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| templateRootPath | string | EXT:bootstrap_package/Resources/Private/Templates/Page/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.includePath
|
||||
----------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| css | string | EXT:bootstrap_package/Resources/Public/Css/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| icons | string | EXT:bootstrap_package/Resources/Public/Icons/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| javascript | string | EXT:bootstrap_package/Resources/Public/JavaScript/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.meta
|
||||
---------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| viewport | string | width=device-width, initial-scale=1 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| robots | string | index,follow |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| apple-mobile-web-app-capable | string | no |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| compatible | string | IE=edge,chrome=1 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| google | string | notranslate |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
page.tracking.google
|
||||
--------------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| trackingID | string | |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| anonymizeIp | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
config
|
||||
------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| no_cache | boolean | 1 | **0** |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| removeDefaultJS | options | **0** | 1 | external |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| compressJs | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| compressCss | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| concatenateJs | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| concatenateCss | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| admPanel | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| prefixLocalAnchors | options | EMPTY | **all** | cached | output |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| headerComment | string | Based on the TYPO3 Bootstrap Package |
|
||||
| | | by Benjamin Kott - http://www.bk2k.info |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
plugin.bootstrap_package.settings
|
||||
---------------------------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| overrideParserVariables | boolean | **1** | 0 |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| cssSourceMapping | boolean | 1 | **0** |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
|
||||
|
||||
plugin.bootstrap_package_contentelements.view
|
||||
---------------------------------------------
|
||||
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| Property | Data Type | |
|
||||
+===================================+===============+=======================================================================+
|
||||
| layoutRootPath | string | EXT:bootstrap_package/Resources/Private/Layouts/ContentElements/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| partialRootPath | string | EXT:bootstrap_package/Resources/Private/Partials/ContentElements/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
| templateRootPath | string | EXT:bootstrap_package/Resources/Private/Templates/ContentElements/ |
|
||||
+-----------------------------------+---------------+-----------------------------------------------------------------------+
|
||||
Reference in new issue
Block a user