对于XML导出,我需要输出2个图像的绝对路径.Image1位于/typo3conf/ext/app/Resources/Public/Images/image1.png,Image2位于/uploads/tx_extensionname/image2.png
对于我的生活,我无法找到获得图像绝对路径的方法.我尝试了什么:
<f:uri.image absolute="1" src="EXT:app/Resources/Public/Images/image1.png"/>
Run Code Online (Sandbox Code Playgroud)
返回以下错误:
Argument "absolute" was not registered.
Run Code Online (Sandbox Code Playgroud)
我也试过f:uri.resource,它适用于image1,当然,不适用于image2,因为没有extensionName.
任何提示?
我想在extbase扩展的控制器中访问get vars(或者可能是post vars).我使用TYPO3 7.6.12
这是我的控制器中的代码:
public function showAction(\Test\MdIframe\Domain\Model\Iframe $iframe = NULL)
{
\TYPO3\CMS\Core\Utility\DebugUtility::debug($_REQUEST);
$args = $this->request->getArguments();
print_r($args);
Run Code Online (Sandbox Code Playgroud)
调试功能工作,我得到一个填充数组但$args仍然是一个空数组.
为什么?有人有想法吗?
我在TYPO3 6.2中使用Extbase进行了前端扩展,并且在我的控制器中重定向时,我失去了对我的对象所做的更改.我想知道这是否有意,为什么?
在这里,我看到我已经到了做出改变appointment的var_dump.
/**
*
* @param Domain\Model\Appointment $appointment
* @return void
*/
public function bookAction(Domain\Model\Appointment $appointment) {
if ($appointment->getBooked()) {
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($appointment);
$this->redirect('update', null, null, array('appointment'=>$appointment));
}
}
Run Code Online (Sandbox Code Playgroud)
然后,我看到原来的对象,我要做出的改变之前appointment的var_dump.
似乎改变了约会的通过将其重置回原来的状态......?
/**
* action update
*
* @param Domain\Model\Appointment $appointment
* @return void
*/
public function updateAction(Domain\Model\Appointment $appointment) {
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($appointment);
}
Run Code Online (Sandbox Code Playgroud) 我想用第二个属性扩展additionalAttributes。在原始的 Partials 中,它看起来像这样:
\n\n<f:form.password\n id="femanager_field_password_repeat"\n name="password_repeat"\n class="input-block-level"\n value=""\n additionalAttributes="{femanager:Validation.FormValidationData(settings:settings,fieldName:\'password_repeat\')}" />\nRun Code Online (Sandbox Code Playgroud)\n\n我试试这个:
\n\nadditionalAttributes="{femanager:Validation.FormValidationData(settings:settings,fieldName:\'password\'),placeholder: \'{password_repeat}\'}" />\nRun Code Online (Sandbox Code Playgroud)\n\n使用几个版本的 Escapeing the femanager:Validation..... 出现此错误:
\n\n\n\n\n参数“additionalAttributes”已注册为“array”类型,\n 但在视图助手中为“string”类型\n“TYPO3\\CMS\\Fluid\\ViewHelpers\\Form\\PasswordViewHelper\xe2\x80\x9c
\n
有任何想法吗?
\n在我的TYPO3网站上,我在fileadmin/documents下有很多文件.
问题是,如果您知道直接链接,则所有文档都是可访问的.
有没有办法保护它们,只有在以feuser身份登录时才能访问它们?
谢谢
我的控制器中有这个:
/**
* shopUsrMasterdataRepository
*
* @var
\TYPO3\BackendcustomerExtension\Domain\Repository\ShopUsrMasterdataRepository
* @inject
*/
protected $shopUsrMasterdataRepository;
$user = $this->shopUsrMasterdataRepository->findAll();
Run Code Online (Sandbox Code Playgroud)
它返回空或 null ...但在数据库中有大约 600 个条目。
可能是什么问题呢?
使用 TYPO3 6.2.31
谢谢
我尝试将类"table"并"table-striped"通过 yaml-File 添加到 TYPO3 8 中的 ckeditor。使用其他块标记或内联标记没有问题,但是对于表仍然存在类"contenttable"- 只有这个类,我不能添加其他类。我试过这个:
{ name: "Table", element: ['table','p'], attributes: { 'class': 'table' }}
{ name: "Table-Striped", element: ['table','p'], attributes: { 'class': 'table-striped' }}
Run Code Online (Sandbox Code Playgroud)
对于 p 可以(没有意义),但不适用于桌子。