fluid

Adding the page content to a fluid template

浪子不回头ぞ 提交于 2020-01-01 07:30:15
问题 I'm new to TYPO3 and Fluid and trying to display the page content using a Fluid template similar to the following one: <div id="content"> <f:format.html>{content}</f:format.html> </div> The page data is entered via the backend using a two-column layout ( colPos=0, colPos=1 ). I am now trying to display the content of the first column ( colPos=0 ) inside the div. At the moment, my TYPO-Script looks like the following: page = PAGE page { # ... 5 = FLUIDTEMPLATE 5 { file = fileadmin/templates

What is the best usage of TypoScript in Fluid templates?

泪湿孤枕 提交于 2019-12-29 07:55:13
问题 If I want to use TypoScript like menu generation in a Fluid template I have two possible ways: use the TypoScript to fill a variable for the template. doing it like this: page.10 = FLUIDTEMPLATE page.10 { templateName = index.html // ... define pathes ... variables { contentMain < styles.content.get mainMenu < temp.mainMenu : } } and in the template just use the variable: <div class="header"> <div class="logo">{logo->f:format.raw()}</div> <div class="main-menu">{mainMenu->f:format.raw()}</div

Display list of elements grouped by year and by month in TYPO3 Fluid

老子叫甜甜 提交于 2019-12-29 02:11:07
问题 I have a model where one field is a date. I want to display elements from that model, grouped by year and by month, like this: == 2013 == === April === * Element 1 * Element 2 === March === * Element 3 ... == 2012 == ... What if the best way to achieve that? Should I build a nested array directly in the Controler? Or is there a way to display the year and month headers only using Fluid template? Or should I write a custom ViewHelper to extract and display the year and month headers? 回答1:

Fluid image resizing in CSS (or JS?)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 14:22:25
问题 I'm trying to show a fairly large image on a page on my site. I want it to be re-sized dynamically depending on the user's resolution, so that it takes up the same percentage of screen on every monitor. How would I do that? 回答1: Use the percentage values rather than pixels: <img src="path here" width="100%" /> 回答2: Set image width to a percentage. 来源: https://stackoverflow.com/questions/3285302/fluid-image-resizing-in-css-or-js

Fluid image resizing in CSS (or JS?)

你离开我真会死。 提交于 2019-12-25 14:22:19
问题 I'm trying to show a fairly large image on a page on my site. I want it to be re-sized dynamically depending on the user's resolution, so that it takes up the same percentage of screen on every monitor. How would I do that? 回答1: Use the percentage values rather than pixels: <img src="path here" width="100%" /> 回答2: Set image width to a percentage. 来源: https://stackoverflow.com/questions/3285302/fluid-image-resizing-in-css-or-js

Typoscript USER / USER_INT objects in powermail input fields

久未见 提交于 2019-12-25 10:16:07
问题 I've a custom extension to render a value from database. I want to prefill the returned value of the extension using powermail prefill typoscript. But when I add the plugin as userfunction, then it will display strange output in frontend. See my typoscript code below; lib.companyname = USER_INT lib.companyname { userFunc = tx_extbase_core_bootstrap->run extensionName = ExtPowermail pluginName = Extpowermail vendorName = TYPO3 controller = Extpowermail action = list } plugin.tx_powermail

How can I extract metadata properties from images with FAL and fluid?

喜欢而已 提交于 2019-12-25 07:12:48
问题 Situation sysext:filemetadata is activated; images (fal references) are deposited within page resources (pages.media). 2 options are currently known to me in conjunction to TYPO3 pages: Using a custom FAL viewhelper Using TypoScript (which is often illegible and not easy to maintain) Question What's actually (TYPO3 7.x and 8.x) a common/core-only solution to render such images within fluid with additional properties (metadata) like creator, copyright and so on? 回答1: I would go for next

TYPO3 FluidTYPO3: Missed Flux Icons for Content Elements at TYPO3 Backend

大憨熊 提交于 2019-12-25 03:41:42
问题 Hi I'm using TYPO3 CMS 6.2.14 with FluidTYPO3 ( flux 7.2.2 , fluidcontent 4.3.2 and vhs 2.3.3 ). Since the last few TYPO3 installations my Icons for Fluidcontent-Elements are missing in Backend?! I've didn't change the path or sth. else. Here are my tries, nothing works: <flux:form id="fce6" icon="../typo3conf/ext/mytemplates/Resources/Public/Icons/Content/Icon.gif" wizardTab="FCE" options="{Fluidcontent: {sorting: 106}}"> ... <flux:form id="fce6" options="{Fluidcontent: {sorting: 105}, group

TYPO3 Database migration from fluidcontent to flux goes wrong

这一生的挚爱 提交于 2019-12-25 02:52:13
问题 i already tried to migrate everything with the help of this post: TYPO3 Database migration from fluidcontent to flux My problem now is, that i have container-templates wich all end up empty after changing the CType. Can anybody help? Regards, justcasper 回答1: I solved it. I had to update the colPos. Like: UPDATE `tt_content` SET colPos = ((tx_flux_parent * 100) + 0) WHERE tx_flux_column = "column"; 来源: https://stackoverflow.com/questions/55183681/typo3-database-migration-from-fluidcontent-to

TYPO3 - Fluid returns the string “array”

ぐ巨炮叔叔 提交于 2019-12-25 01:56:09
问题 I have this in my template: <v:iterator.explode content="<f:format.nl2br>{artnumbers.qualitynumber.certificates}</f:format.nl2br>" glue="<br />" as="expCertificates"> if artnumbers.qualitynumber.certificates is empty, it returns teh string "array". Is that a bug? 回答1: You are using the ViewHelper. This ViewHelper replaces newlines in a string (!) with tags. You cannot use it for an array and that's why it returns "array". I don't know why you need the explode viewHelper. Why don't you just