在Page TSConfig根页面上,我有以下代码:
/////////////////////////////////////////////////////////////
// RTE
/////////////////////////////////////////////////////////////
RTE.classes{
highlight{
name = highlight
value = color:#636466; font-size:15px;
}
brown{
name = braun
value = color:#9A3811;
}
}
RTE.default{
ignoreMainStyleOverride = 1
useCSS = 1
contentCSS = fileadmin/templates/css/rte.css
classesCharacter := addToList(highlight, brown)
classesParagraph := addToList(highlight, brown)
proc.allowedClasses := addToList(highlight, brown)
showTagFreeClasses = 1
}
Run Code Online (Sandbox Code Playgroud)
在我,rte.css我有这个:
/* content of rte.css */
.highlighthighlight {
font-size: 15px;
color: #636466;
}
.brown {
color: #9A3811;
}
Run Code Online (Sandbox Code Playgroud)
style.css前端采用相同的风格.如果我在编辑器中,我无法选择文本样式.它总是被禁用.我想在段落中标出一些单词.我尝试使用不同的浏览器(IE,FF,Opera ...),但在所有这些浏览器中都禁用了文本样式.我能做什么?
我有Typo3 4.7.5
编辑
问题是由于已弃用的属性(请参阅 …
嗨我想在扩展安装期间添加一些数据...
我在创建表后添加了一条SQL语句,但在安装过程中会被忽略.
#
# Insert für start einstellungen
#
INSERT INTO tx_rere_domain_model_intervall (type,aktuell) VALUES ('studienhalbjahr','WS14/15');
Run Code Online (Sandbox Code Playgroud)
此代码直接位于Create Statement之后 tx_rere_domain_model_intervall
更新:#TYPO3 Extension Manager转储1.1 ## ---------------------------------------- ----------------
#
# Table structure for table 'tx_rere_domain_model_interval'
#
DROP TABLE IF EXISTS tx_rere_domain_model_intervall;
CREATE TABLE tx_rere_domain_model_intervall (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
type varchar(255) DEFAULT '' NOT NULL,
aktuell varchar(255) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) …Run Code Online (Sandbox Code Playgroud) 我在Typo3 TCA中创建了一个选择,它看起来像这样:
'company_address' => array(
'exclude' => 1,
'label' => 'Company Address',
'config' => array(
'type' => 'select',
'foreign_table' => 'pages',
'foreign_table_where' => ' AND doktype = 75',
'items' => array(
array('', 0)
),
'maxitems' => 1
)
),
Run Code Online (Sandbox Code Playgroud)
默认值=记录的uid,如何更改?
我需要那个值= my_column.可能吗 ?
我试图在Typo3扩展中创建多个Viewhelpers。
<?php
namespace PdvPolymer\ViewHelpers;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper;
class ButtonUpViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
{...
Run Code Online (Sandbox Code Playgroud)
ViewHelper位于目录扩展名\ Classes \ ViewHelpers中
当我打电话给它时,这很好用
<div xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:p="http://typo3.org/ns/Extension/ViewHelpers">
<p:buttonUp></p:buttonUp>
</div>
Run Code Online (Sandbox Code Playgroud)
但是现在我已经尝试将ViewHelper放在诸如extension \ Classes \ ViewHelpers \ Custom之类的子目录中
现在,ViewHelper的新命名空间为
namespace Extension\ViewHelpers\Custom;
Run Code Online (Sandbox Code Playgroud)
现在我用以下方式调用ViewHelper
<p:custom.buttonUp></p:custom.buttonUp>
Run Code Online (Sandbox Code Playgroud)
但是现在我得到一个类似的错误:
Oops, an error occurred! Code: 2016091908135339232bbd
Run Code Online (Sandbox Code Playgroud)
我的问题是,我错了什么?Typo3中的内部Fluid-Extension像我一样都一样。我检查了!
有人知道吗?
覆盖typo3扩展标准模板的最佳方法是什么,以便保存更新?
谢谢
试过这个:
plugin.tx_news {
view {
templateRootPath = fileadmin/webdesign/templates/news/Templates/
partialRootPath = fileadmin/webdesign/templates/news/Partials/
layoutRootPath = fileadmin/webdesign/templates/news/Layouts/
}
}
Run Code Online (Sandbox Code Playgroud)
但一切都没有改变
我需要读取扩展控制器内部的文件,这里是我的扩展键的示例myext_key,我要打开的文件data.json是Resources/Private/JSON目录中的JSON文件.我的研究告诉我,打开文件的最佳方法不是用file_get_contents($path),而是用\TYPO3\CMS\Core\Utility\GeneralUtility::getURL($path).
所以我尝试使用以下代码,但这不起作用:
$content = \TYPO3\CMS\Core\Utility\GeneralUtility::getURL('EXT:myext_key/Resources/Private/JSON/data.json');
Run Code Online (Sandbox Code Playgroud)
谢谢大家的帮助!
我有一个TYPO3 6.2实例...是的我知道它已经过时了,我在迁移时并行工作;)
我有这个if语句
<f:if condition="{v:var.get(name: 'access', useRawKeys: 1)}">
Run Code Online (Sandbox Code Playgroud)
有没有办法在TYPO3 6.2.31中否定这一陈述?
提前致谢
我正在使用-template Item.html 的类名来TYPO3 8.7写一个sys_category名字tx_news,如下所示:
<div class="{f:format.case(value: '{newsItem.firstCategory.title}', mode: 'lower')}"> ...
Run Code Online (Sandbox Code Playgroud)
现在我的一个类别有两个单词,比如'my category',所以classname结果如下:
<div class="my category">
Run Code Online (Sandbox Code Playgroud)
如何从类名中删除空'' FLUID?
谢谢你的帮助.
我真的需要知道如何从扩展名覆盖语言文件。例如,我安装了powermail,并且该扩展名中有一个我需要覆盖的语言文件。
因此,我有了一个名为website_head的扩展名,并在其中创建了文件:
typo3conf\ext\website_head\Resources\Private\Language\Overrides\powermail\Resources\Private\Language\locallang.xlf
Run Code Online (Sandbox Code Playgroud)
我要覆盖的文件是:
typo3conf\ext\powermail\Resources\Private\Language\locallang.xlf
Run Code Online (Sandbox Code Playgroud)
当我清除缓存时,它不会更改(但是当我更改原始内容时,它会更改文本,只是不覆盖)
这也是覆盖locallang.xlf文件中的内容:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2014-05-02T12:00:00Z" product-name="powermail">
<header/>
<body>
<trans-unit id="validationerror_mandatory">
<source>Custom text</source>
</trans-unit>
</body>
</file>
</xliff>
Run Code Online (Sandbox Code Playgroud) typo3 ×10
extbase ×3
fluid ×3
typo3-6.2.x ×2
typo3-7.6.x ×2
backend ×1
categories ×1
namespaces ×1
rte ×1
tsconfig ×1
tx-news ×1
typo3-8.x ×1
view-helpers ×1