[TYPO3-english] Grid element with background-image

"HocomAdvies [  Wiechert Hooghwinkel "HocomAdvies [  Wiechert Hooghwinkel
Wed Apr 13 14:05:12 CEST 2016


Ok, 

Still did not succeed getting this working. So anyone who has a working CE with background image from the xml? Or just for testing a sample with normal image and a link or other fields form flexform.xml.

It seems that hese parts are not working for me:

      20 = IMG_RESOURCE
      30 {
      30.file.import.data = field:flexform_background
      30.stdWrap.wrap = <div style="background-image:url(|)"></div>
      }

Is not supported anymore by the extension?

Also this is not working for me:

10.stdWrap.typolink.parameter.field = flexform_first_button_link
10.stdWrap.wrap = <div class="button">|</div>

Looks like these fields flexform_background and  flexform_first_button_link are not read from the xml file? I have been digging the web to find out why this is not working but could not find anything helpful. Using GridElemenst 7.0.5 and typo3 7.6.4

Regards,

Wiechert Hooghwinkel


> Op 11 apr. 2016, om 11:46 heeft HocomAdvies [ 🌷 Wiechert Hooghwinkel ] <info at hocom-advies.nl> het volgende geschreven:
> 
> 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
> 
> _______________________________________________
> 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