[TYPO3-german] gridelements wrapping problem

Roth xy at roth.biz
Tue Mar 14 14:37:14 CET 2017


Hallo zusammen,

auf der Suche nach einer Lösung zu o.g. Problem bin ich auf diesen
Thread hier gekommen.

Ich habe das gleiche Problem. Im Backend kann ich die einzelnen
Gridcontainer/Spalten auswählen. Im Frontend wird das Wrapping
ignoriert. Ich kann sogar den gesamten gridelements-Teil aus dem TS
löschen, die Inhalte werden trotzdem im Standard gerendert.

In einer vergleichbaren Installation funktioniert es jedoch.

Ich mache nun schon ein paar Tage daran rum und weiß mir leider nicht
mehr zu helfen.

Kann mich bitte jemand unterstützen?

Anbei der Code aus dem TS:

## Define the Grid Elements
tt_content.gridelements_pi1.20.10.setup {
	# ID of gridelement
	1 < lib.gridelements.defaultGridSetup
	1 {
		columns {
			# colPos ID
			10 < .default
			10.wrap = <div class="hgroup">|</div>
			# colPos ID
			20 < .default
			20.wrap = <div class="hgroup">|</div>
			# colPos ID
			30 < .default
			30.wrap = <div class="hgroup">|</div>
			# colPos ID
			40 < .default
			40.wrap = <div class="hgroup">|</div>
		}
		wrap = <div class="group excerpts">|</div>
	}
}

Typo3 7.2.16
Gridelements 7.1.0

Vielen Dank

MaxOn Wed, 2014-02-12 at 23:50 +0100, Karl wrote:
> Hallo zusammen,
> 
> ich habe das Problem das meine in einen Gridcontainer gepackten
> Elemente nicht wie gewünscht gewrappt werden sondern immer die
> Standard Wrappings haben.
> 
> Folgender Aufbau: Typo3 6.1.7 - Gridelements 2.0.2
> 
> Ich habe ein Backend Layout 1spaltig wo ich ein fluid Template
> reinlade:
> ################################
> # Default PAGE object:
> page = PAGE
> page.10 = FLUIDTEMPLATE
> page.10 {
>     file = fileadmin/templates/fluid/standard.html
>     layoutRootPath = fileadmin/templates/fluid/layouts/
>     partialRootPath = fileadmin/templates/fluid/partials/    
>     file.stdWrap.cObject = CASE
>     file.stdWrap.cObject {
>         key.data = levelfield:-1, backend_layout_next_level, slide
>         key.override.field = backend_layout 
>         # Default Template
>         default = TEXT
>         default.value = fileadmin/templates/fluid/standard.html 
>         # The number equals the UID of the backend Layout:
>         1 = TEXT
>         1.value = fileadmin/templates/fluid/standard.html 
>     }
>     
>     ## Fluid Variablen zuweisen
>     variables {
>         content < styles.content.get
>         content.select.where = colPos = 0
>     }    
> }
> ###########################################
> 
> Dann habe ich ein 2 Spaltiges CE Backend Layout mit der ID = 1 und
> colPos = 10 und colPos20.
> So weit so gut. Ich kann das 2 spaltige CE auf eine Seite in den
> Content einfügen und dort auch Inhaltselemente reinpacken. Diese
> werden mir im Standard Typo Rendering im Frontend angezeigt.
> 
> Nun möchte ich das 2 spaltige CE aber natürlich anders wrappen. Habe
> dafür eine .ts die ich im Root Template include mit folgendem Code:
> #########################################
> tt_content.gridelements_view.20.10.setup {
>     # ID of gridelement
>     1 < lib.gridelements.defaultGridSetup 
>     1 {
>         columns {
>             # colPos ID
>             10 < .default
>             10.wrap = <div class="col-1-2">|</div>
>             # colPos ID
>             20 < .default
>             20.wrap = <div class="col-1-2">|</div>
>         }
>         wrap = <div class="grid grid-pad">|</div>
>     }
> }
> #############################################
> 
> Leider interessiert Typo das nicht und er rendert weiter munter im
> Standard.
> 
> WAS mache ich falsch? :(
> 
> DANKE
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german


More information about the TYPO3-german mailing list