typoscript

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

TYPO3 show content from subpages inlcuding css classes

╄→гoц情女王★ 提交于 2019-12-01 07:36:45
问题 With the following typoscript I get all content from the subpages on one page: lib.allPid = COA lib.allPid { 10 = HMENU 10 { special = directory special.value = 2 1 = TMENU 1 { expAll = 1 NO.doNotShowLink = 1 NO.allStdWrap.field = uid NO.allStdWrap.wrap = |, } 2 < .1 } } lib.allContent = CONTENT lib.allContent { table = tt_content select { pidInList.cObject < lib.allPid leftjoin = pages ON (tt_content.pid = pages.uid) where = tt_content.colPos = 0 orderBy = pages.sorting ASC } } But its not

How to set breadcrumb for tx_news TYPO3

≯℡__Kan透↙ 提交于 2019-12-01 01:59:10
I have a TYPO3 site. I need to set a breadcrumb. For news I need to show the news title inplace of 'News Detail' (Page title of news plugin). How to implement that? My code is <v:page.breadCrumb class="breadcrumb" levels="1" showCurrent="1" divider=">" showCurrent="1" entryLevel="1"/> or any other method for getting the title like <ol class="breadcrumb"> <li><a href="/">Home</a></li> <li><a href="/news">News</a></li> <li class="active"> ???????? </li> </ol> Sorry but that is not possible out of the box. The news record is not a real page and therefore must be added a bit different. Instead of

Typo3: adds anchor but don't know why

Deadly 提交于 2019-12-01 00:51:38
I have a page content element on a page. This has the ID 3 and it has a translation. This element is read out with the following Typoscript lib.marker = RECORDS lib.marker { tables=tt_content source= 3 dontCheckPid = 1 languageField = sys_language_uid select.languageField = sys_language_uid } For the default language everything is OK. But for my additional language I get <a id="c605"></a> before the div I originally wanted is displayed. I looked in the HTML of the page content and there is everything like it should be. Any ideas? Edit: Here the content gathered through the TS Object Browser:

How to set breadcrumb for tx_news TYPO3

℡╲_俬逩灬. 提交于 2019-11-30 20:21:44
问题 I have a TYPO3 site. I need to set a breadcrumb. For news I need to show the news title inplace of 'News Detail' (Page title of news plugin). How to implement that? My code is <v:page.breadCrumb class="breadcrumb" levels="1" showCurrent="1" divider=">" showCurrent="1" entryLevel="1"/> or any other method for getting the title like <ol class="breadcrumb"> <li><a href="/">Home</a></li> <li><a href="/news">News</a></li> <li class="active"> ???????? </li> </ol> 回答1: Sorry but that is not possible

Typo3: adds anchor but don't know why

人盡茶涼 提交于 2019-11-30 19:06:40
问题 I have a page content element on a page. This has the ID 3 and it has a translation. This element is read out with the following Typoscript lib.marker = RECORDS lib.marker { tables=tt_content source= 3 dontCheckPid = 1 languageField = sys_language_uid select.languageField = sys_language_uid } For the default language everything is OK. But for my additional language I get <a id="c605"></a> before the div I originally wanted is displayed. I looked in the HTML of the page content and there is

TYPO3: How do I insert page content into template

别来无恙 提交于 2019-11-30 09:34:26
I have some content that I want to appear on multiple pages of my TYPO3 site. I could just insert this into the template, but I also want that content to be editable in the Rich Text Editor. So I had the idea of creating a hidden page, but I don't know how to insert this content into a template. Does it require the select typoscript statement? Also, as a follow-up question, can I add something to say, only include pages that have this page id as their immediate parent in the page hierarchy. I didn't quite get the second question. If you want to include some record only to pages under some

TYPO3: How do I insert page content into template

╄→гoц情女王★ 提交于 2019-11-29 14:29:39
问题 I have some content that I want to appear on multiple pages of my TYPO3 site. I could just insert this into the template, but I also want that content to be editable in the Rich Text Editor. So I had the idea of creating a hidden page, but I don't know how to insert this content into a template. Does it require the select typoscript statement? Also, as a follow-up question, can I add something to say, only include pages that have this page id as their immediate parent in the page hierarchy.

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

TYPO3 - Redirecting to login page when user is not logged in

六月ゝ 毕业季﹏ 提交于 2019-11-29 04:13:49
I have some restricted pages built in Typo3. The problem is I cannot automatically redirect user from these pages to login page. How do I do that? I desperately need it and cannot find a solution despite of the fact I have spent most of the day working on it :( Any help will be much appreciated. That should work fine: # Restricted area starts at pid 123. # Check if user is logged in: [PIDinRootline = 123] && [usergroup = *] # do something [else] page.config > page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html [end] Found here Just for reasons of documentation: make