我有一些内容要在TYPO3网站的多个页面上显示.我可以将其插入到模板中,但我也希望在Rich Text Editor中可以编辑该内容.
所以我有了创建隐藏页面的想法,但我不知道如何将这些内容插入到模板中.
它需要selecttyposcript声明吗?
此外,作为后续问题,我可以添加一些内容,仅包含将此页面ID作为页面层次结构中的直接父级的页面.
我使用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完全不熟悉.我如何让它工作?
我想在TypoScript中添加一个空白/空格.它关注tt_news中的"更多"链接.
这是我的HTML:
<p class="bodytext">blablabla<span class="news-list-morelink"> <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"> <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"> |</span>
}
}
}
Run Code Online (Sandbox Code Playgroud)
有没有人有想法?谢谢...
我是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)
我将如何在我们的控制器的特定动作中获得这些值.我希望这有意义吗?
我('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)
感觉好像我几乎尝试了一切.
我非常感谢我能得到的一切帮助......
非常感谢!!
我试图覆盖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之前加载.
你有什么想法或线索有什么遗漏,为什么它不起作用?
系统扩展form并ckeditor使用YAML作为配置语言,而不是在其他地方使用的TypoScript.
TypoScript会消失吗?
如何迁移此 TypoScript 条件以与 Symfony 表达式语言完全兼容 TYPO3 9.5 中的条件?
[userFunc = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('fluid_styled_content')]
我创建了一个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().
我们可以在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 ×10
typoscript ×10
typo3-8.x ×2
extbase ×1
forms ×1
formwizard ×1
templavoila ×1
typo3-9.x ×1
whitespace ×1
yaml ×1