问题标签 [typo3-8.7.x]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
613 浏览

menu - 错字3中带有字体的图标的菜单

我尝试使用typo3 8.7.13 中的fontawesome 图标来实现菜单。我的想法是使用字段 tx_fontawesome_icon 扩展表格页面 - 没问题 - 它可以在页面属性中使用,并且也保存在数据库中。

但是我怎样才能在打字稿中使用它呢?

谢谢沃尔克

0 投票
1 回答
1176 浏览

typo3 - Typo3:TCA 表中没有列定义

因为我将 Typo3 从 6.2 更新到 8.7.13,所以我收到以下错误:

1438594406:TCA 表 tx_cmagnews_domain_model_news 中没有列定义(更多信息)

在第 48 行的文件 /kunden/211624_70794/rp-hosting/5056114/6056114/typo3cms/typo3_src-8.7.13/typo3/sysext/backend/Classes/Form/FormDataProvider/InitializeProcessedTca.php 中引发了 UnexpectedValueException。

我已经用 $GLOBALS['TCA'] 替换了所有的 $TCA。

有人有其他想法吗?

0 投票
2 回答
1639 浏览

typo3 - Getting translated records in CommandController

I've searched and debugged the last couple of days how to obtain the translated version of a DomainModel object in a CommandController in Typo3 v8.7.

In Typo3 4.5/4.7 I've done the following: - input: DomainModel in default language - build a query that finds the record with the l10n_parent matching the given domain model - obtain a new domain model with the desired sys_language_uid

Unfortunately this does not work in Typo3 v8.7 any more. I always get the domain model for the default language.

I've traced this down to the method Typo3DbBackend::doLanguageAndWorkspaceOverlay called via Typo3DbBackend::getObjectDataByQuery

The query returns the correct (translated) row (seen in the debugger and also the mysql query log), but then the variable $row gets overwritten in doLanguageAndWorkspaceOverlay no matter how I set the querySettings setLanguageOverlayMode and setLanguageMode.

So what is the correct way to get a translated domain model in a CommandController?

UPDATE:

I think I'm a step further. If I add ->setQueryLanguage(1) to the query settings, doLanguageAndWorkspaceOverlay() tries to fetch the translated record for language = 1. But in order to succeed I need to trick the FrontendGroupRestriction class by setting $GLOBALS['TSFE']->gr_list = "0,-2";.

The array returned by doLanguageAndWorkspaceOverlay() now contains all translated entries, except the uid, which is still the uid from the record in the main language. The uid of the translated record is stored in _LOCALIZED_UID.

Now my problem now is that I still get the record in the main laguage because DataMapper->mapSingleRow() (called via DataMapper->map()) has some kind of object cache and thus returns the object in the default language (because the uid is still the one of the record in the main language).

All this seems a little hackish. So again my question: what is the correct way to get a translated domain model in a CommandController?

thanks, mika

p.s.: I've set up the second language in the backend and creating a translated record works just fine. My question is just how to I get an existing translated record in a CommandController.

0 投票
1 回答
103 浏览

typo3 - TYPO3 felogin - 如何将 fontawesome 图标放入 felogin 标签?

如何将 fontawesome 图标放入 felogin 标签?以下不起作用:

FeloginTemplate.html

0 投票
1 回答
883 浏览

typo3 - TYPO3 felogin - 创建带有挂钩的自定义标记以根据语言呈现内容?

我尝试在 felogin 模板中进行语言切换,如下所示:

但它忽略了条件。我错过了什么?

编辑:我添加了一个像这里建议的钩子https://docs.typo3.org/typo3cms/extensions/felogin/Hooks/Index.html和这里的例子http://labor.99grad.de/2017/07/29/typo3 -fe_login-um-eigene-marker-erweitern/ ...但我现在在登录页面上得到一个空白页面。

我在我的一个扩展“accountmanager”中添加了 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['postProcContent']

在 ext_tables.php 我添加了:

在我的主要 setup.ts 中,我添加了:

在 Ext:accountmanager/Classes/Hooks/FeUserHook.php 我有:

但是当我将标记放在 EXT:accountmanager/Resources/Private/Templates/Felogin/FrontendLogin.html

...我得到一个空白页...

0 投票
2 回答
644 浏览

typo3 - TYPO3 - 通过单击按钮预先选择具有特定 tx_news 记录的 powermail 选择

我使用 tx_news 来显示作业记录(列表和详细视图)。在记录的详细信息页面上,我有一个指向申请表的链接:

细节.html

... 对于申请表,我使用 powermail。在这里我有一个选择,我用这样的工作记录填充选择选项值:

https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/BestPractice/PrefillField/Index.html

...但是如何在单击“应用程序”按钮时预先选择具有特定作业记录 ID 的选择?

编辑:

...我使用 js 和 localStorage 作为解决方法...它有效,但仅适用于一种语言。如果我在申请表上并切换语言...选择中的选项具有不同的 uid,随后选择未选中

0 投票
2 回答
964 浏览

typo3 - TYPO3 - 在流体中访问 _localizedUid 属性

使用 {newsItem.uid} 我可以访问记录的 uid。但是我怎样才能访问 _localizedUid ?

js:

安慰:

0 投票
1 回答
575 浏览

typo3 - TYPO3 - 复杂流体条件 f:如果不在 8.7 中工作

我在 8.7 中尝试了一个复杂的 f:if 条件,如下所述:https ://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/If.html

...但我所有的尝试都失败了(不起作用):

...相反,我需要这样做(工作):

为什么它不像描述的那样工作?我正在使用 8.7.16 ...

0 投票
1 回答
1738 浏览

seo - TYPO3 - 在自定义扩展的详细视图上覆盖和添加元标记(来自 tx_metaseo)

我有一个自定义扩展程序,并且在我想对个人资料网站进行 seo 皮条客的记录的详细信息页面上。我也在使用 tx_metaseo。

我已经通过显示操作更改了“标题”标签,如下所示:

但是由于我安装了 tx_metaseo ...我也得到了 generall 元标记。因此,在我的扩展程序的详细信息页面上,我想覆盖它们:

...另外我想添加/设置:

...并且我想考虑一下语言(默认/德语/英语)...所以我想添加(对于德语):

我怎样才能做到这一点?

我假设我需要使用 Hooks/Signals?https://docs.typo3.org/typo3cms/extensions/metaseo/DeveloperManual/Index.html#signals但如何?

这是一个类似的讨论:https ://github.com/webdevops/TYPO3-metaseo/issues/477

编辑:我尝试这样做以防止 tx_metaseo 创建的元标记

... 或者:

0 投票
1 回答
52 浏览

api - TYPO3 - 插入 api medipim

我想通过Medipim的 api 在网页上调用产品。我以前从未这样做过,也从未与 TYPO3 合作过。

因此有两个问题。

  1. 我应该在哪个 ( config) 文件中放置身份验证(我有一个 ID 和密钥),该代码到底是什么样的?

  2. 当我想调出产品时,如何在TYPO3页面环境中使用它?我必须选择一个html页面还是可以在页面上的 TYPO3 编辑器中输入它?

文档:观看