标签: typoscript

TYPO3:如何将页面内容插入模板

我有一些内容要在TYPO3网站的多个页面上显示.我可以将其插入到模板中,但我也希望在Rich Text Editor中可以编辑该内容.

所以我有了创建隐藏页面的想法,但我不知道如何将这些内容插入到模板中.

它需要selecttyposcript声明吗?

此外,作为后续问题,我可以添加一些内容,仅包含将此页面ID作为页面层次结构中的直接父级的页面.

typo3 typoscript

7
推荐指数
2
解决办法
2万
查看次数

Typo3表单显示为### LABEL ### ### FIELD ###

我使用Typo3 4.6表单向导在页面上创建了一个表单,但在页面上呈现为

<!--  Mail form inserted: [begin] -->
 <fieldset class="csc-mailform">
 <div class="csc-mailform-field">###LABEL### ###FIELD###</div>
 </fieldset>
<!--  Mail form inserted: [end] -->
Run Code Online (Sandbox Code Playgroud)

...而不是显示表格.我对Typo3完全不熟悉.我如何让它工作?

forms typo3 formwizard typoscript

7
推荐指数
1
解决办法
4022
查看次数

在Typoscript中添加空格字符

我想在TypoScript中添加一个空白/空格.它关注tt_news中的"更多"链接.

这是我的HTML:

<p class="bodytext">blablabla<span class="news-list-morelink">&nbsp;<a title="Read all the news" target="_top" href="http://www.google.com">More</a></span></p>
Run Code Online (Sandbox Code Playgroud)

这就是我想要的:

<p class="bodytext">blablabla <span class="news-list-morelink">&nbsp;<a title="Read all the news" target="_top" href="http://www.google.com">More</a></span></p>
Run Code Online (Sandbox Code Playgroud)

(区别在于之前的空白<span>.

在我看来,我必须在TypoScript中进行更改,生成链接"更多".那一定是我写"HERE"的地方

plugin.tt_news {
 displayLatest{
  subheader_stdWrap {
   #More link after the bodytext
   append = TEXT
   append.data = register:newsMoreLink
   append.wrap = HERE<span class="news-list-morelink">&nbsp;|</span>
  }
 }
}
Run Code Online (Sandbox Code Playgroud)

有没有人有想法?谢谢...

whitespace typo3 content-management-system typoscript

6
推荐指数
1
解决办法
5664
查看次数

在extbase框架中获取typoscript值

我是extbase(MVC)框架的新手,我们如何在扩展中获取typoscript值:

例如:假设我有一些typoscript值,如:

plugin.tx_some-extname.somevlaueX = XXXX
plugin.tx_some-extname.somevlaueY = yyyy
plugin.tx_some-extname.somevlaueZ = zzzz
Run Code Online (Sandbox Code Playgroud)

我将如何在我们的控制器的特定动作中获得这些值.我希望这有意义吗?

typo3 typoscript extbase

6
推荐指数
1
解决办法
6270
查看次数

TYPO3 6.0:从FAL中的边框列渲染当前页面的图像

我('s)s(t)uck; - )

我有以下片段,我不能让它工作.

COL3 = FILES
COL3 {
        references {
            table = tt_content
            uid = 14
            fieldName = image
        }
        renderObj = TEXT
        renderObj {
            data = file:current:publicUrl
            wrap = <img src="|">
        }
}
Run Code Online (Sandbox Code Playgroud)

片段到目前为止工作,但我想将它与当前页面和colPos = 3一起使用.所以类似于:

table = tt_content
select {
  where = colPos = 3
  orderBy = sorting
  languageField = sys_language_uid
}
Run Code Online (Sandbox Code Playgroud)

感觉好像我几乎尝试了一切.

我非常感谢我能得到的一切帮助......

非常感谢!!

typo3 typoscript

6
推荐指数
2
解决办法
3382
查看次数

TYPO3 8.7无法覆盖Fluid Styled Content模板

我试图覆盖Fluid Styled Content元素,但它在最新的TYPO3版本8.7.0中根本不起作用.

我有一个模板扩展名(key:biv_main),我在其中添加了我的重写模板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/
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

通过TS对象浏览器在后端的TypoScript看起来对我来说是正确的: 截图TypoScript对象浏览器 - lib.fluidcontent

我已经从sysext fluid_styled_content复制了整个模板,partial和layout文件夹及其中的每个文件,因此应该覆盖每个内容元素.

这是模板扩展中的文件夹结构:

biv_main
-- Resources
  -- Private
    -- Content
      -- fluid_styled_content 
        -- Layouts
        -- Partials 
        -- Templates
Run Code Online (Sandbox Code Playgroud)

在文件夹中的文件与sys-ext中的文件完全相同fluid_styled_content/Resources/Private /

Fluid Content Elements的静态typoscript模板在模板扩展名biv_main之前加载.

你有什么想法或线索有什么遗漏,为什么它不起作用?

typo3 typoscript fluid-styled-content typo3-8.x

6
推荐指数
1
解决办法
5310
查看次数

TypoScript是否会被TYPO3中的YAML取代

系统扩展formckeditor使用YAML作为配置语言,而不是在其他地方使用的TypoScript.

TypoScript会消失吗?

yaml typo3 typoscript typo3-8.x

6
推荐指数
1
解决办法
290
查看次数

TYPO3:如何将 userFunc TypoScript 条件迁移到 Symfony 表达式语言?

如何迁移此 TypoScript 条件以与 Symfony 表达式语言完全兼容 TYPO3 9.5 中的条件?

[userFunc = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('fluid_styled_content')]

typo3 typoscript typo3-9.x

6
推荐指数
1
解决办法
844
查看次数

在后端获取页眉和页脚预览

我创建了一个TYPO3插件,用于向tt_content添加新的内容列.

我需要后端的预览页面的页眉和页脚内容.一旦我得到页眉和页脚,我可以在这之间显示我的内容.我想在内容区域中插入一些编辑功能.这就是为什么我需要将html渲染输出到php变量.

我正在使用templavoila.

我试过这个 - 但是收到了一个错误:

$this->cObj = t3lib_div::makeInstance('tslib_cObj');
$conf = array('userFunc' => 'tx_templavoila_pi1->main_page');
$content = $this->cObj->USER($conf);
Run Code Online (Sandbox Code Playgroud)
#1316104317:无法确定扩展名"myplugin"和插件"ContentRenderer"的默认控制器.请检查ext_localconf.php中的TYPO3\CMS\Extbase\Utility\ExtensionUtility :: configurePlugin().

typo3 typoscript templavoila

5
推荐指数
1
解决办法
518
查看次数

在include_typoscript中使用Typoscript常量

我们可以在include_typoscript中使用常量变量吗?

在我的constants.txt文件中

filepaths{
    # cat=FLUIDPAGES/settings; type=text; label=Pfad zu den Templates
    defaultTemplateRootPath = typo3conf/ext/defaulttemplate/
}
Run Code Online (Sandbox Code Playgroud)

在我的setup.txt文件中

Include Page Template
<INCLUDE_TYPOSCRIPT: source="FILE: {$filepaths.defaultTemplateRootPath}fluid.txt">
Run Code Online (Sandbox Code Playgroud)

我只需要在我的安装文件中使用{$ filepaths.defaultTemplateRootPath}来包含typoscript文件,如果是,它对我很有用,我可以在多域网站中添加多个主题/模板.

typo3 typoscript

5
推荐指数
1
解决办法
1823
查看次数