![]()  | 
	Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community | 
| 
			
			 | 
		#2 | ||
| 
			
			 Senior Member 
			
			
			
				
			
			
	 | 
	
	
	
		
		
			
			 Цитата: 
	
 Код: 
	<div class="typo3-neos-nodetypes-text">Some text...</div> Цитата: 
	
 Код: 
	tt_content.image.20.1.params.cObject = CASE
tt_content.image.20.1.params.cObject {
  key.field = layout
  default = TEXT
  default.value = class="img"
  1 = TEXT
  1.value = class="img-rounded"
  2 = TEXT
  2.value = class="img-circle"
  3 = TEXT
  3.value = class="img-thumbnail"
}
Код: 
	# *****************
# CType: uploads
# *****************
tt_content.uploads = COA
tt_content.uploads {
  10 = < lib.stdheader
  20 = FILES
  20 {
    # get from file references:
    references {
      table = tt_content
      fieldName = media
    }
    collections.field = file_collections
    # get from path (backwards compatibility, contains strings like "fileadmin/user_uploads/")
    folders.field = select_key
    # render the files
    renderObj = COA
    renderObj {
      10 = IMAGE
      10 {
        file.import.data = file:current:originalUid // file:current:uid
        file.width = 24
        file.height =30
        file.transparentBackground = 1
        stdWrap {
          if.value = 1
          if.isGreaterThan.field = layout
          typolink {
            parameter.data = file:current:originalUid // file:current:uid
            parameter.wrap = file:|
            target < lib.parseTarget
            target =
            target.override = {$styles.content.uploads.target}
            removePrependedNumbers = 1
          }
        }
      }
      # icon
      15 = IMAGE
      15 {
        file.import = {$template_path}/Resources/Private/Templates/fileicons/
        file.import.data = file:current:extension
        file.import.case = lower
        file.import.wrap = |.gif
        file.transparentBackground = 1
        file.width = 24
        file.height = 30
        stdWrap {
          if {
            value = 0
            isGreaterThan.field = layout
            # only show the icon if we don't have a thumbnail:
            isFalse.cObject = IMG_RESOURCE
            isFalse.cObject.file < tt_content.uploads.20.renderObj.10.file
            isFalse.cObject.stdWrap.if < tt_content.uploads.20.renderObj.10.stdWrap.if
          }
          typolink < tt_content.uploads.20.renderObj.10.stdWrap.typolink
        }
      }
      # filename
      20 = TEXT
      20 {
        #data = file:current:name
        data = file:current:description
        htmlSpecialChars = 1
        required = 1
        replacement {
          # equivalent to former useSpacesInLinkText = 0; remove using > to disable it
          10 {
            search = _
            replace.char = 32
          }
          # equivalent to former stripFileExtensionFromLinkText = 0; move "_20" to "20" to enable it. Disabled by default.
          _20 {
            search = /(.*)(\..*)/
            replace = \1
            useRegExp = 1
          }
        }
        typolink < tt_content.uploads.20.renderObj.10.stdWrap.typolink
        wrap = <span class="csc-uploads-fileName">|</span><br />
      }
      # description
      /*
      30 = TEXT
      30 {
        data = file:current:description
        htmlSpecialChars = 1
        wrap = <span class="csc-uploads-description">|</span>
        required = 1
      }
      */
      30 >
      # file size
      40 = TEXT
      40 {
        if.isTrue.field = filelink_size
        data = file:current:size
        wrap = <span class="csc-uploads-fileSize">(|)</span>
        bytes = 1
        bytes.labels = {$styles.content.uploads.filesizeBytesLabels}
      }
      # wrap of each listed file with odd/even class
      wrap.cObject = COA
      wrap.cObject {
        10 = LOAD_REGISTER
        10 {
          oddEvenClass = li-odd li-first |*| li-even || li-odd
          elementClass = csc-uploads-element csc-uploads-element-{register:fileExtension}
          elementClass.insertData = 1
        }
        20 = TEXT
        20 {
          value = <p class="file {register:oddEvenClass} {register:elementClass}">|</p>
          insertData = 1
        }
        30 = RESTORE_REGISTER
      }
    }
    # wrap around whole content element with <ul> and editIcons
    stdWrap {
      editIcons = tt_content: media, layout [table_bgColor|table_border|table_cellspacing|table_cellpadding], filelink_size
      editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.filelist
      prefixComment = 2 | File list:
      dataWrap = |
    }
  }
}
				__________________ 
		
		
		
		
	Дмитрий Васильев, "T3 студия" По всем вопросам связанным с TYPO3, пишите пожалуйста сюда https://vk.com/t3studio www.typo3.ru.net  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
		
  | 
	
		
  | 
			 
			Похожие темы
		 | 
	||||
| Тема | Автор | Раздел | Ответов | Последнее сообщение | 
| Помогите разобраться с Realurl и 404 | Bibberfell | Общие вопросы | 7 | 24.03.2011 12:08 | 
| Помогите разобраться ! | typik | Общие вопросы | 7 | 09.02.2010 10:23 | 
| помогите разобраться с HMENU | ctor | TypoScript практикум | 1 | 30.03.2009 18:51 | 
| помогите разобраться с доменами | Veitmen | Общие вопросы | 0 | 18.07.2006 16:34 | 
| tcdirectmail: помогите разобраться | Melnichuk | Общие вопросы | 1 | 12.07.2006 16:19 |