[TYPO3-english] Grid element with background-image
"HocomAdvies [ Wiechert Hooghwinkel
"HocomAdvies [ Wiechert Hooghwinkel
Mon Apr 11 11:46:06 CEST 2016
Hello,
Anyone who can point me in the right direction here? Would be nice to get the hang of this :) So whats wrong with this set-up? I’m using a fluid template, could that interfere somehow? On the other hand, it’s still csc styled so it should not be a problem right?. In the FE I do not get any of the <divs>.
Thanks a lot.
Regards,
Wiechert Hooghwinkel
> Op 8 apr. 2016, om 16:08 heeft HocomAdvies [ 🌷 Wiechert Hooghwinkel ] <info at hocom-advies.nl> het volgende geschreven:
>
>
> Hi,
>
> Try to build a Grid Elements CE with a Background-image. Now after days of trying, I stil do not get any image visible in the FE. I’am able to create the CE in the BE and upload an image and I can see it on the page in the BE. Version Typo3 7.6.4 Latest version Gridelements.
>
> This is what I have in my TS:
>
> tt_content.gridelements_pi1.20.10.setup {
> achterAfbeelding < lib.gridelements.defaultGridSetup
> achterAfbeelding {
> columns {
> 0 < .default
> 0.wrap = <div class="small-12 medium-12 large-12 columns">|</div>
> }
> wrap.override.stdWrap.cObject = COA
> wrap.override.stdWrap.cObject {
> 10 = TEXT
> 10.value = <div class="fullscreen has-image" style="background-image: url(/
> 20 = IMG_RESOURCE
> 20 {
> file.import.data = field:flexform_background_image
> }
> 30 = TEXT
> 30.value = );">|</div>
> }
> wrap.override.if.isTrue.field = flexform_background_image
> wrap = <div class="row">|</div>
> }
> }
>
> And the XML form used:
>
> <T3DataStructure>
> <meta type="array">
> <langdisable>1</langdisable>
> </meta>
> <sheets>
> <sDEF>
> <ROOT>
> <type>array</type>
> <el type="array">
> <TCEforms>
> <sheetTitle>Background-image...</sheetTitle>
> </TCEforms>
> <background_image type="array">
> <TCEforms type="array">
> <label>Image</label>
> <config type="array">
> <type>group</type>
> <internal_type>file</internal_type>
> <allowed>jpg,jpeg,png</allowed>
> <max_size>10240</max_size>
> <uploadfolder>uploads/tx_gridelements</uploadfolder>
> <show_thumbs>1</show_thumbs>
> <size>1</size>
> <maxitems>1</maxitems>
> <minitems>0</minitems>
> </config>
> </TCEforms>
> </background_image>
> </el>
> </ROOT>
> </sDEF>
> </sheets>
> </T3DataStructure>
>
> What’s wrong? I tried several different config settings / xml structures but non of them shwowed up in the FE?
>
> Best 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