fluid

Is there a Fluid viewhelper to truncate an URL? If not, how do I make one?

浪尽此生 提交于 2019-12-02 09:59:05
In TYPO3's Fluid or in Fedext/vhs, is there a viewhelper that can convert http://www.stackoverflow.com/questions/ask into www.stackoverflow.com ? PS: that's the goal: <f:format.raw><f:link.external uri="{item.link}">{item.just-display-the-domain}</f:link.external></f:format.raw> EDIT (adapting the question to the answer I got): If I have to build a custom view helper, how do I proceed? I really doubt if there would be any sensible reason for adding this kind of VH into the core, de facto, writing custom VH is like a piece of cake (when you finally realize it is) so simple formatters can be

Typo3 Fluid Templates How to add multiple templates

心已入冬 提交于 2019-12-02 07:28:12
I have a finished static HTML Template. I need to map it to typo3 so the content is dynamic. I followed following tutorial: https://docs.typo3.org/typo3cms/SitePackageTutorial/FluidTemplates/Index.html This works perfectly, but now I wonder how I can change the template per site? I made template for each site i.e Gallerie.html, Contact.html and they are linked to the same Layout as Header and Footer is always the same. How do I now tell the page About us to use the Gallerie.html? My setup.typoscript: page = PAGE page { typeNum = 0 // Part 1: Fluid template section 10 = FLUIDTEMPLATE 10 {

TYPO3 TCA type select in FLUID?

こ雲淡風輕ζ 提交于 2019-12-02 06:57:58
问题 I use for the T3 Backend a TCA type select in a renderType = selectMultipleSideBySide Here the TCA Code: 'features' => array( 'label' => 'Zusatz', 'config' => array( 'type' => 'select', 'renderType' => 'selectMultipleSideBySide', 'size' => 10, 'minitems' => 0, 'maxitems' => 999, 'items' => array( array( 'Parkplätze', 'parking' ), array( 'Freies Wlan', 'wlan' ), ) ) ), it works fine in the Backend! But, how can I read the data properly now? I dont now the right way for the Domain/Model. /** *

Typo3 Fluid Templates How to add multiple templates

大城市里の小女人 提交于 2019-12-02 06:32:37
问题 I have a finished static HTML Template. I need to map it to typo3 so the content is dynamic. I followed following tutorial: https://docs.typo3.org/typo3cms/SitePackageTutorial/FluidTemplates/Index.html This works perfectly, but now I wonder how I can change the template per site? I made template for each site i.e Gallerie.html, Contact.html and they are linked to the same Layout as Header and Footer is always the same. How do I now tell the page About us to use the Gallerie.html? My setup

Adding configuration fields to a typo3 page with fluid / flux

与世无争的帅哥 提交于 2019-12-02 04:02:26
I have setup a site to use flux / FLUIDCONTENT for templates and have it working using the tutorial here: http://thomas.deuling.org/2011/06/create-base-html-fluid-templates-for-typo3-4-5/ It's all working well but now I want to be able to choose an image per page and use it to build a big header. With templavoila I could create fields that were available in the page properties but can't seem to get it working with FLUIDCONTENT. I am using Typo3 6.1 and here is my inside page flex template: {namespace v=Tx_Vhs_ViewHelpers} {namespace flux=Tx_Flux_ViewHelpers} <f:layout name="main" /> <f:section

TYPO3 TCA type select in FLUID?

☆樱花仙子☆ 提交于 2019-12-02 03:29:21
I use for the T3 Backend a TCA type select in a renderType = selectMultipleSideBySide Here the TCA Code: 'features' => array( 'label' => 'Zusatz', 'config' => array( 'type' => 'select', 'renderType' => 'selectMultipleSideBySide', 'size' => 10, 'minitems' => 0, 'maxitems' => 999, 'items' => array( array( 'Parkplätze', 'parking' ), array( 'Freies Wlan', 'wlan' ), ) ) ), it works fine in the Backend! But, how can I read the data properly now? I dont now the right way for the Domain/Model. /** * Features * * @var string */ protected $features = ''; /** * Returns the features * * @return string

use vertical percentage for css - height: x%;

别说谁变了你拦得住时间么 提交于 2019-12-02 02:27:52
问题 I am trying to make a fluid layout for an app and am having some trouble with using css for height percentages. It is using the horizontal size of the window to specify the height % when I want it to be getting this percentage from the vertical size of the window. Is this possible or am I out of luck? width: x%; height: y%; x and y being the percentage that I want the element to be. Both are being determined by the horizontal size of the window, and I want each to use it's respective axis.

TYPO3: repository->findAll() not working

雨燕双飞 提交于 2019-12-02 02:07:38
问题 I am building an extension with a backend module. When I call the findAll () method it returns a "QueryResult" object. I tried to retrieve objects with findByUid () and it does work. I set the storage pid in the typoscript: plugin.tx_hwforms.persistence.storagePid = 112 I can also see it in the typoscript object browser. I also added this to my repository class: public function initializeObject() { $defaultQuerySettings = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic

TYPO3 StoragePid and Current

白昼怎懂夜的黑 提交于 2019-12-01 11:40:24
问题 i build a simple commentary extbase extension, which i want to include with typoscript in a project extension (also extbase). The fluid code in the project extension looks like this: <f:for each="{project.reports}" as="report"> ...Content... {report -> f:cObject(typoscriptObjectPath: 'lib.comments')} </f:for> "Reports" is an array of id's. The lib.comments typoscript looks like this: lib.comments = USER lib.comments { userFunc = tx_extbase_core_bootstrap->run extensionName = Comments

TYPO3: pass variable to typoscript via cObject?

风格不统一 提交于 2019-12-01 10:38:06
问题 I would like to create a dropdown login form in my menu, like in this example: http://bootsnipp.com/snippets/featured/fancy-navbar-login-sign-in-form I have this cObject that calls typoscript for the navigation: <f:cObject typoscriptObjectPath="menu.navbar" /> I need to get the content of the login form somehow into the menu typoscript. Is it maybe possible to pass a variable (in my case the login form) to typoscript via cObject ? 回答1: f:cObject has a data Attribute, that can take different