[TYPO3-english] Gridelements 4

"HocomAdvies [  Wiechert Hooghwinkel "HocomAdvies [  Wiechert Hooghwinkel
Wed Dec 9 13:25:29 CET 2015


Any advise on this?  



W.

> Op 9 dec. 2015, om 09:01 heeft HocomAdvies [ 🌷 Wiechert Hooghwinkel ] <info at hocom-advies.nl> het volgende geschreven:
> 
> Hi, I’m using the new Gridelements 4 with Typo3 7 LTS. There might be some changes compared to the previous version 3 because I can’t get it to work properly? 
> 
> What I try to achieve are two things:
> 
> 1. Using some CE. They are showing up in the Backend and can be applied but are not visible in the front-end?
> 2. Have a (the) backend layout included from a file instead of creating one with the wizard. 
> 
> 
> 1.:  I have two files. One with the TS-config and one for PageTS. Both are included the forst one in the Template the second one in the first page of the site’s Page tree.
> 
> The page config file:
> 
> #tx_gridelements{
> overruleRecords = 1
> setup {
>    #alias of id van het grid-element hier
> 	2_columns_60_40_columns{
> 	title = 2 columns 60_40
> 	description = foundation 2 columns 60_40 indeling	
> 	config{
> 	colCount = 2
> 	rowCount = 1
> 	rows {
> 		1 {
> 			columns {
> 				1 {
> 					name = left content
> 					colPos = 0
> 			        }
> 				2 {
> 					name = right content
> 					colPos = 1
> 				}
> 			}
> 		}
> 	}
> }
> }
> }
> }
> 
> The template Config file:
> 
> tt_content.gridelements_pi1.20.10.setup {
>  # ID or the alias from the CE
>  2_columns_60_40_columns < lib.gridelements.defaultGridSetup
>  2_columns_60_40_columns {
>    columns {
>      # colPos ID
>      0 < .default
>      0.wrap = <div class="small-12 medium-8 large-8 columns">|</div>
>      # colPos ID
>      1 < .default
>      1.wrap = <div class="small-12 medium-4 large-4 columns">|</div>
>    }
>    wrap = <div class="row">|</div>
>  }
> }
> 
> tt_content.gridelements_pi1.10=<lib.stdheader
> 
> This worked in previous version. So did something change here?
> 
> 
> 2. For having Backend layouts from a file I include Some PageTS also in the first page of the tree. Strange thing here is, that this seems to overwrite the PageTS which is included for the CE as mentioned above and then the BE-layouts are showing up in the backend as Grid-elements CE instead of just being a page BE!  
> 
> 
> 
> This is what’s used to include the file(s) in the pageTS:
> <INCLUDE_TYPOSCRIPT: source=“FILE:fileadmin/Template/ts/pageTSConfig_global.ts”>
> 
> This is in the file for the PageTS for the BE-layout (which is included by the pageTSConfig_global.ts:
> 
> #BE_page_layout
> tx_gridelements{
> overruleRecords = 1
> setup {
> main{
> title = default
> description = default template
> colCount = 3
> 	rowCount = 1
> 	rows {
> 		1 {
> 			columns {
> 				1 {
> 					name = left
> 					colPos = 1
> 				}
> 				2 {
> 					name = normal
> 					colPos = 0
> 				}
> 				3 {
> 					name = right
> 					colPos = 2
> 				}
> 			}
> 		}
> 	}
> }
> }
> }
> 
> And a second one:
> 
> #Second BE_page_layout
> tx_gridelements{
> overruleRecords = 1
> setup {
> main_alternative{
> title = page_without_header_img
> description = page_without_header_img
> config{
> 	colCount = 1
> 	rowCount = 1
> 	rows {
> 		1 {
> 			columns {
> 				1 {
> 					name = content
> 					colPos = 0
> 				}
> 			}
> 		}
> 	}
> }
> }
> }
> 
> 
> 
> #######
> In the Main Template Config_TS, I have this:
> 
> <INCLUDE_TYPOSCRIPT: source=“FILE:fileadmin/Template/gridelements/2_columns/setup.ts”>
> 
> page.10.file.stdWrap.cObject = CASE
> page.10.file.stdWrap.cObject {
>    key.data = levelfield:-1, backend_layout_next_level, slide
>    key.override.field = backend_layout 
>   default = TEXT
>    default.value = fileadmin/Template/index.html
>    0 = TEXT
>    0.value = fileadmin/Template/index.html
>    1 = TEXT
>    1.value = fileadmin/Template/layouts/alternative.html
>    2 = TEXT
>    2.value = fileadmin/Template/other.html
> }
> 
> 
> ##And for the frontend Templates
> page.typeNum = 0
> page = PAGE
> page.10 = CASE
> page.10 {
>  key.data = levelfield:-1,backend_layout_next_level,slide
>  key.override.field = backend_layout
> 
>  default = FLUIDTEMPLATE
>  default {
>    format = html
>    file = fileadmin/Template/index.html
>    layoutRootPath = fileadmin/Template/layouts/
>    partialRootPath = fileadmin/Template/partials/
> 
>    variables {
>       siteName = TEXT
>      siteName.value = bla_bla
>      pageTitle = TEXT
>      pageTitle.data = page:title
>      content < styles.content.get
>      content_main < styles.content.get
>        content_main.select.where = colPos = 0
>        content_column_1 < styles.content.get
>        content_column_1.select.where = colPos = 1
>        content_column_2 < styles.content.get
>        content_column_2.select.where = colPos = 2
>    }
>   }
> 
> #extra template which can even have its own settings  
> 1 = FLUIDTEMPLATE
>  1 {
>    format = html
>    file = fileadmin/Template/alternative.html
>    layoutRootPath = fileadmin/Template/layouts/
>    partialRootPath = fileadmin/Template/partials/
> 
> 
>    variables {
>      siteName = TEXT
>      siteName.value = bla_bla
>      pageTitle = TEXT
>      pageTitle.data = page:title
>      content < styles.content.get
>      content_main < styles.content.get
>        content_main.select.where = colPos = 0
>        content_column_1 < styles.content.get
>        content_column_1.select.where = colPos = 1
>        content_column_2 < styles.content.get
>        content_column_2.select.where = colPos = 2
>    }
>   } 
> 
> #other template to use 
> 2 = FLUIDTEMPLATE
>  2 {
>    format = html
>    file = fileadmin/Template/other.html
>    layoutRootPath = fileadmin/Template/layouts/
>    partialRootPath = fileadmin/Template/partials/
> 
> 
>    variables {
>      siteName = TEXT
>      siteName.value = bla_bla
>      content < styles.content.get
>      content_main < styles.content.get
>        content_main.select.where = colPos = 0
>        content_column_1 < styles.content.get
>        content_column_1.select.where = colPos = 1
>        content_column_2 < styles.content.get
>        content_column_2.select.where = colPos = 2
>    }
>  }
> }
> 
> 
> Any thoughts on this? Has been working in Typo3 6.2 with the latest Gridelements for 6..2.  So what’s new in 4.0 that’s messing things up :)
> 
> 
> 
> Regards,
> HocomAdvies
> 
> Wiechert Hooghwinkel
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list