DCE, FAL - кто сталкивался?
День добрый, столкнулся с проблемой. Пытался поставить расширение DCE, всё работает, но в FE не выводится картинка (в BE всё ОК!). Пробовал на версиях 7.4 и 6.2, на разных серверах - без толку. При выводе переменных в дебаге вроде как - вместо массива картинок приходит текст.
Вопроса два: 1. Кто-нибудь сталкивался с подобным? Это мулечка FAL? Может, надо что-то доинсталлировать, модуля какого-ньдь не хватает? 2. Есть ли альтернатива DCE? Проекты зависли, начальство уже уволить грозится, счёт на дни пошёл. Нужно именно во флюиде свои заготовки контентэлементов по-быстрому клепать, чтобы они во FE в нужных контейтерах отображались и с нужными стилеклассами. |
"Во флюиде" не специалист, но, может, дело в замене css_styled_content на fluidcontent_core?
Текст с картинками fluidcontent_core не рендерит по определению: https://docs.typo3.org/typo3cms/exte...dcontent_core/ "Special note about the Textpic (Text with Images) content type As you may have already noticed, there is no template shipped for the TYPO3 core content type Textpic (Text with Images). The reason for this is as simple as it is opinionated: this particular content element type requires an inordinate amount of settings and rendering instructions to serve just the most common use cases. This is also evident in the TypoScript setup that is shipped with CSS Styled Content - the setup required to manage positioning and flow of images and text is so massive that in most sites you use only a fraction of the settings. A decision was therefore made to simply not ship any template for this content type at all, as to not invite the inevitable explosion in complexity that happened in CSS Styled Content. Our alternative recommendation is to create container elements which control the structure into which you then insert regular Text and Image elements. The result being more elements, but a much clearer separation of the types (which is useful for example in the context of site search with content type facets). You can of course also go one step further and create your own custom elements which use your own custom fields to define the text and image(s) which you render in a completely custom way". |
Нет, от css_styled_content отказаться не получилось. Всё по старинке. Без TV, на fluidtemplate.
|
Где-то читал, альтернатива DCE - flux.
Google в помощь. |
Есть аналог: Content Designer
А так Extbase (builder) + Fluid - думаю для 6.2. лучше не будет. |
Если через FAL, в DCE нужно сделать вывод так
Код:
<f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference" iteration="iterator"> Если будет одна картинка можно и не юзать FAL, тогда Код:
<f:image src="uploads/pics/{field.image}" width="100c" height="100c" alt="" /> |
Цитата:
|
Всё работает. В конфиге самого фала поменяйте имя переменной
Код:
<config> |
Цитата:
Код:
<foreign_match_fields> |
Да, меняйте fal на свое имя переменной. Я вас кусок своего кода кинул, где у меня имя = image
|
Часовой пояс GMT +4, время: 04:22. |
Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot