typoscript

Add parameter to link in typoscript

夙愿已清 提交于 2019-12-10 11:28:45
问题 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

Render CONTENT in PHP with TypoScript

无人久伴 提交于 2019-12-10 11:23:47
问题 I need to build a Typoscript file in PHP and then pretty much execute the script to get the content of a given page. This is my Code: if (!defined('PATH_typo3conf')) die ('Could not access this script directly!'); class ContentHandler extends tslib_cObj { var $conf; public function __construct() { tslib_eidtools::connectDB(); } public function main() { $this->createConf(16); $code = $this->cObjGet($this->conf); echo "<pre>"; print_r($this->conf); echo "</pre>"; echo "<pre>"; echo "code: " .

Displaying records from EXT:news in specific language

*爱你&永不变心* 提交于 2019-12-10 09:28:00
问题 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) 回答1: This is a bug

Get website name using TypoScript?

我是研究僧i 提交于 2019-12-08 13:18:57
问题 Is there a way to get the website name using TypoScript? In my TypoScript template I am using data = page : name to get the name of the current page I am on e.g. About . I need to get the webiste name as well, so I have tried data = site : name but this is not correct and I can't find the correct data name for the website name in the documentation. NOTE: by website name I mean the Sitename entered in the template settings. 回答1: With line below you need to know used uid of the TypoScript

How to integrate a html template to typo3

房东的猫 提交于 2019-12-08 13:17:13
问题 I'am new to typo3 and I want to integrate my HTML template in it. but I can't add my content to the pages threw the dashboard all I get is a blank page. I'am using TYPO3 v8 Greetings! 回答1: The steps you need to do for template integration in TYPO3 8 TYPOSCRIPT Tell TYPO3 by where the templates should be get. page = PAGE page.10 { templateRootPaths { 10 = PATH TO YOUR TEMPLATES } layoutRootPaths { 10 = PATH TO YOUR LAYOUTS } partialRootPaths { 10 = PATH TO YOUR PARTIALS } templateName = TEXT

Manage hierarchy / enforce priority of TS-templates

拈花ヽ惹草 提交于 2019-12-08 09:48:19
问题 Well, there is actually another guy with exact the same problem. But until today, they didn't come up with a solution, that's why I'm asking it once again. My entire TS is included by an extension in TYPO3 7.6.8 . This works fine except with indexed_search . The TS inside my resources EXT get overwritten by the indexed_search default TS. This is the order of the TS inside the Template-Analyzer: SYS: TYPO3_CONF_VARS:FE:defaultTypoScript EXT:fluid_styled_content/Configuration/TypoScript/... ...

How to add a new template to Typo3 “Layouts” drop-down list

▼魔方 西西 提交于 2019-12-08 07:37:26
问题 I have a Typo3 installation with 3 existing layout options. These are all declared in the page.ts file like so: #normal layout: [globalVar=TSFE:page|layout=0] page.10.template.file = fileadmin/template/classic-page.html page.includeCSS.screen = fileadmin/template/css/style.css page.includeCSS.screen.media = screen [global] And they are all in this list further down the page.ts file, like so: TCEFORM.pages { layout.altLabels.0 = Normal layout.altLabels.1 = Startpage layout.altLabels.2 =

Typo3 FCE refer a field inside a container field

。_饼干妹妹 提交于 2019-12-08 06:52:40
问题 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">

TYPO3 - get thumbnail for menue from CONTENT of subpage

别等时光非礼了梦想. 提交于 2019-12-08 04:00:06
问题 I need a typoscript for adding a thumbnail for each menu entry by getting a pic NOT from page properties, but from first content element of a specified column. Current typoscript for the menu is that; it basically generates a list of subpages which a named as "news". temp.newsPage = COA temp.newsPage.40 = HMENU temp.newsPage.40 { special = directory special.value = {$plugin.tx_rstwstdtpl.settings.menuNewsPagesStart} includeNotInMenu = 1 wrap = <div class="news-latest-container">|</div> 1 =

TYPO3 4.6 include extbase plugin with typoscript

我的梦境 提交于 2019-12-08 03:13:36
问题 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,