fluid

Parse an existing JSON string in fluid template?

丶灬走出姿态 提交于 2019-11-29 18:09:46
I have a JSON string with some data I want to render in a template. As Fluid arrays are notated in JSON too, I thought I might just take that JSON string and hand it over to fluid, telling it to treat it just like some other array and use it in the template. Thus gaining a lot of speed and losing overhead (don't have to split the JSON data up to save it in the DB, can template it easily in fluid). It wouldn't work, at least not how I tried it. <f:alias map="{item.jsonData}"> {fieldname} </f:alias> It - of course - complained it had received a string, not an array. Do I have to build a

What is the best usage of TypoScript in Fluid templates?

偶尔善良 提交于 2019-11-29 11:23:45
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> </div> the other way is the usage of the f:cObject ViewHelper to call a part of TypoScript. the

如何写好CSS系列之表单(form)

巧了我就是萌 提交于 2019-11-29 03:52:00
本文转载于: 猿2048 网站 如何写好CSS系列之表单(form) 表单模块可以分为两部分:一是表单的布局,也就是规范表单元素单元的排列位置;二是表单元素,如:输入框、单选、复选、列表组件、搜索组件等,由于列表组件、搜索组件不是单纯的css组件,所以暂且没有实现。 一、表单布局的实现 表单布局分为:表单容器、行、表单元素组(包含元素标题、元素)。并且实现根据屏幕进行自适应。示例效果如下: 从示例效果可以看出,布局会根据浏览器大小实现自适应。自适应代码如下: @import '../mixins/breakpoints'; .f-form-container { @extend .border-sizing; margin-top : $form-row-space ; > .f-form-row{ display : block ; white-space : nowrap ; margin : 0px ; padding : 0px ; font-size : 0px ; } > .f-form-row + .f-form-row { margin-top : $form-row-space ; } &.fluid { //自适应 xs = md -1 @include media-breakpoint-max('xs'){ .f-form-group{ display :

TYPO3 Fluid complex if conditions

我的梦境 提交于 2019-11-28 23:33:29
I am trying to write the following if condition in fluid but it is not working as I would hope. Condition As part of a for loop I want to check if the item is the first one or 4th, 8th etc I would have thought the following would work but it display the code for every iteration. <f:if condition="{logoIterator.isFirst} || {logoIterator.cycle % 4} == 0"> I have managed to get it working with a nested if but it just feels wrong having the same section of code twice and also having the cycle check use a <f:else> instead of == 0 <f:if condition="{logoIterator.isFirst}"> <f:then> Do Something </f

EM's for line-height

我与影子孤独终老i 提交于 2019-11-28 20:18:29
I would like to convert my new website from pixels to ems. My question is, should I also apply ems to my text line-height property? Jukka K. Korpela Assuming that “converting to ems” means using the em unit for font-size , then you should set line-height in a manner that also adapts to the font size. The two properties are closely related, and if you set one of them in em and the other (e.g.) in px or pt , then the page will break if the font size is changed. So it would work against the very idea of “using ems” to use essentially different units for essentially connected properties. For

iPhone fluid simulation

六月ゝ 毕业季﹏ 提交于 2019-11-28 19:00:52
Somebody know fluid engine for iphone?I need water and gases simulation. Brad Larson Simulating fluids is a tremendous challenge for modern desktop computers, so I would not expect the greatest performance when trying to get this working on a mobile device. Running full Navier-Stokes calculations on the iPhone is probably going to chug pretty badly. However, in the past I was able to perform 2-D fluid modeling simulations on limited hardware using lattice gas automata . With lattice gas automata, you approximate a fluid as a fine hexagonal grid, where particles can travel in one of six

Are fluid websites worth making anymore? [closed]

六眼飞鱼酱① 提交于 2019-11-28 15:11:03
I'm making a website now and I am trying to decide if I should make it fluid or not. Fixed width websites are much easier to make and also much easier to make them appear consistent. To be honest though, I personally prefer looking at fluid websites that stretch to the full width of my monitor. My question comes from the fact that in most modern browsers you can hold control and scroll your mouse wheel to basically resize any website. So is creating a fluid website worth the trouble? Bobby Ortiz It depends on your audience and your content. The following are sites I respect and I think are

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

女生的网名这么多〃 提交于 2019-11-28 14:46:24
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? Finally, I solved this problem by using a custom ViewHelper, derived from GroupedBy ViewHelper, inspired from

Bootstrap - Fill fluid container between header and footer

狂风中的少年 提交于 2019-11-28 12:16:30
This may be a very simple question, but I've been out of the CSS scene for awhile and I can't seem to figure it out. I am using the Bootstrap framework and I have a fixed header and footer. The container in between includes a navbar and content area. I would like that container to fill the entire space (100% height) in between the header and footer. Here is jsFiddle of the project: http://jsfiddle.net/NyXkt/2/ This is the current html structure: <div id="wrapper"> <!-- Header --> <div class="container-fluid no-padding header"> <div class="row-fluid fill-height"> <!-- Header Left --> <div class

Parse an existing JSON string in fluid template?

Deadly 提交于 2019-11-28 11:48:35
问题 I have a JSON string with some data I want to render in a template. As Fluid arrays are notated in JSON too, I thought I might just take that JSON string and hand it over to fluid, telling it to treat it just like some other array and use it in the template. Thus gaining a lot of speed and losing overhead (don't have to split the JSON data up to save it in the DB, can template it easily in fluid). It wouldn't work, at least not how I tried it. <f:alias map="{item.jsonData}"> {fieldname} </f