typoscript

MaxGalleryWidth for fluid_styled_content

主宰稳场 提交于 2019-12-07 14:52:26
I tried to change the MaxGalleryWidth in fluid_styled_content for an specific column. First I tried how I do this before fluid_styled_content: lib.contentRight = COA lib.contentRight { 10 = LOAD_REGISTER 10 { maxImageWidth = 205 maxImageWidthInText = 60 } 20 < styles.content.get 20 { select { where = colPos=1 } slide = -1 } 90 = RESTORE_REGISTER } Also using maxGalleryWidth in LOAD_REGISTER has no effect. This doesn't work for me. Than I tried to set the maxGalleryWidth Parameter for the GalleryProcessor, but this seems not to have any effect: lib.contentRight < styles.content.get lib

Typo3 FCE refer a field inside a container field

 ̄綄美尐妖づ 提交于 2019-12-07 06:28:30
Here is the screen shot of mapping of my FCE: I can refer 'Caption' field by 'field_caption' from the typoscript of 'Link' field. Here is the typoscript for that: 10 = TEXT 10.field = field_caption How to refer the 'Image' field which is inside a container field 'Image and alternate text' From the typoscript of 'Link' field? I tried to refer it directly by using 'field_image', but it is not working. here is the screen shot: Markup I am trying to map is: <a href="resources/img/site/demo1.jpg"> <img src="resources/img/site/demo1.jpg" alt="alternate text" /> <div class="flex-caption"> <p>caption

TYPO3 4.6 include extbase plugin with typoscript

旧巷老猫 提交于 2019-12-06 15:59:37
I have TYPO3 4.6, in tempvoila template i have typoscript object path lib.header and I want to redirect output of plugin to lib.header I have extension Gallery and plugin written and configured in ext_localconf.php like this: Tx_Extbase_Utility_Extension::configurePlugin( $_EXTKEY, 'RandomPhotoSlideShow', array( 'Photo' => 'randomPhotoSlideShow', ), // non-cacheable actions array( 'Photo' => '' ) ); in ext_tables.php like this: Tx_Extbase_Utility_Extension::registerPlugin( $_EXTKEY, 'RandomPhotoSlideShow', 'Gets random photos for slide show' ); and in typoscript template I have this: plugin.tx

Add parameter to link in typoscript

笑着哭i 提交于 2019-12-06 13:32:36
I have my site setup so that if you are on a mobile you get a mobile rendered template. To click to go to the main site you go index.php?id=??&mainsite=1 This all works fine however I have a link at the bottom of my mobile template that says go to main site. I want this to go to the main template page for the current page id eg index.php?id=page:uid&mainsite=1 If I do lib.mainsitelink= TEXT lib.mainsitelink.data = page:uid I get www.example.com/uid so when uid = 3 i get www.example.com/3 but if i do the below code it doesn't work lib.mainsitelink= TEXT lib.mainsitelink.data = index.php?id=page

How to get page categories in Typoscript (and use with tx_news)

蹲街弑〆低调 提交于 2019-12-06 11:37:48
问题 I would like to read out a page's system categories for further use with tx_news (to display news that have the same categories as the page - as tx_news is using system categories). I was looking for a native solution, hopefully via getText, something like: plugin.tx_news.settings.categories.data = page:categories but that doesn't seem to exist yet Also, I tried to simplify the query by using sys_category_records_mm, which contains all the information needed for that case, but TYPO3 complains

TypoScript: {field:uid} replacement not working | Different CSS class per menu item

孤人 提交于 2019-12-06 07:32:20
I have a header menu and try to define different CSS classes for each item. This is what I have: 20 = HMENU 20 { special = directory special.value = 107 1 = TMENU 1 { wrap = <ul class="foo" id="mymenu">|</ul> expAll = 1 NO = 1 NO.allWrap = <li class="first menu_{field:uid}">|</li> || <li class="menu_{field:uid}">|</li> || <li class="last menu_{field:uid}">|</li> } } But in the HTML output I simply get class="first menu_{field:uid}" and nothing is replaced. By the way: The page entries in the menu are links to external pages. EDIT: As our designer complained about the non-speaking class IDs we

Displaying records from EXT:news in specific language

半腔热情 提交于 2019-12-05 17:27:07
I'm trying to display a news record in a different language to the default language where no record in the default language exists. The multilanguage configuration is config { sys_language_mode = strict sys_language_overlay = 0 } The Plugin on the page is set to 'All languages'. News only existing in the default language are suppressed as expected, but news only available in another language are not appended to the list. (EXT:news version is 2.2.1, TYPO3 Version is 4.7.14) This is a bug in the persistence layer of Extbase. The only workaround known to me is to create a news record in the

Typoscript navigation with subpages

不问归期 提交于 2019-12-04 04:03:41
问题 I am trying to implement my navigation with typoscript and I am having problems to understand how to wrap right. I already have a base navigation with 1 level that is working fine. Now I have pages that has subpages and other that don't have. For the ones without subpages I want the behavior that I have now. For the pages with subpages I want to add this as an dropdown menu. The HTML code should look like this. <ul class="nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data

Adding the page content to a fluid template

醉酒当歌 提交于 2019-12-03 22:45:30
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/default.html # ... variables { pageTitle = TEXT pageTitle.data = page:title content = CONTENT content {

TYPO3 8.7 can not override Fluid Styled Content templates

倾然丶 夕夏残阳落幕 提交于 2019-12-03 15:56:23
I've tried to override the Fluid Styled Content elements but it doesn't work at all in latest TYPO3 version 8.7.0. I've got a template extension (key: biv_main) in which I add my overriding template pathes: lib { fluidContent { templateRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Templates/ } partialRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Partials/ } layoutRootPaths { 30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Layouts/ } } } The TypoScript in the Backend via TS Object Browser looks correct to me: