typo3

TYPO3 backend modul DataTable is no function

南笙酒味 提交于 2019-12-02 10:57:45
I including in my extbase backend modul different assets in the Layout html. To init multiple DataTables: $(dataTables[i]).DataTable(dataTableOptions); <f:be.container enableClickMenu="false" loadExtJs="false" enableExtJsDebug="true" > <script type="text/javascript" src="{f:uri.resource(path:'js/Backend/lib/jquery-1.11.3.min.js')}"></script> <script type="text/javascript" src="{f:uri.resource(path:'js/Backend/lib/jquery-ui.min.js')}"></script> <script type="text/javascript" src="{f:uri.resource(path:'js/Backend/lib/jquery.dataTables.min.js')}"></script> <script type="text/javascript" src="{f

Typolink content in menu?

眉间皱痕 提交于 2019-12-02 10:46:37
I am trying to make a menu that displays the page's first content element header and image and have them be links. But the typolink part doesn't seem to work for me: lib.menu = HMENU lib.menu { 1 = TMENU 1.NO { doNotLinkIt = 1 wrapItemAndSub = <div>|</div> stdWrap.cObject = CONTENT stdWrap.cObject { table = tt_content select { pidInList.field = uid } renderObj = COA renderObj { 10 = TEXT 10.field = header 10.typolink.parameter.field = uid } } } } Just to add give the full working example. Using section.field = uid you can link to the content element itself. lib.menu = HMENU lib.menu { 1 =

Typo3 8 How to properly customize felogin extension

僤鯓⒐⒋嵵緔 提交于 2019-12-02 10:38:59
I would like to customize felogin (frontend lofin) extension template. I would like to copy the template file inside of my template extension folder, but I don´t know how to change the path with TypoScript, so Typo3 can look first into the template file which is located inside of my extension template folder. Thanks in advance! Denis The configuration is done like with every other extension: plugin.tx_felogin_pi1 { templateFile = EXT:your_extension/Resources/Private/Templates/Felogin.html } Notice that felogin does not use Fluid, you might want to look at alternatives like Hairu if you need

How do you translate EXT:Form forms in TYPO3 CMS 8.7 LTS?

浪子不回头ぞ 提交于 2019-12-02 10:36:12
I'm new to TYPO3 and starting out with 8.7 LTS. I have created several forms with the default "form" extension. My site requires some of these forms to be translated into up to 5 other languages. So far the only solution I've found is to copy the forms and then have a separate form for each translation, but this does not seem like the best solution, as long term it would lead to form divergence. Is it possible to add alternate translations directly in the YAML file or point to a translation file that should be used? Here an example, like I use on a page: For frontend translation add this to

Is there a Fluid viewhelper to truncate an URL? If not, how do I make one?

浪尽此生 提交于 2019-12-02 09:59:05
In TYPO3's Fluid or in Fedext/vhs, is there a viewhelper that can convert http://www.stackoverflow.com/questions/ask into www.stackoverflow.com ? PS: that's the goal: <f:format.raw><f:link.external uri="{item.link}">{item.just-display-the-domain}</f:link.external></f:format.raw> EDIT (adapting the question to the answer I got): If I have to build a custom view helper, how do I proceed? I really doubt if there would be any sensible reason for adding this kind of VH into the core, de facto, writing custom VH is like a piece of cake (when you finally realize it is) so simple formatters can be

Typoscript Condition: backend_layout (with slide)

非 Y 不嫁゛ 提交于 2019-12-02 09:57:26
I use this condition [globalVar = GP:colPos==0]&&[page|backend_layout = pagets__MainTemplate] My problem is that my „subpage“ has no backend_layout selected because the parent pages "Backend Layout (subpages of this page)“ is set. So the condition does not work on subpages. Can create a condition like that? lib.backendLayout = TEXT lib.backendLayout { data = levelfield:-1, backend_layout_next_level, slide override.data = TSFE:page|backend_layout } I want do white/blacklist CTypes in BE Columns in this way: [globalVar = GP:colPos==0]&&[page|backend_layout = pagets__MainTemplate] TCEFORM.tt

Powermail 2.0 in TYPO3

风流意气都作罢 提交于 2019-12-02 09:52:01
Im trying powermail 2.0 in a TYPO3 4.7, for the first time, and I'm getting this error message in frontend: The default controller can not be determined. Please check for Tx_Extbase_Utility_Extension::configurePlugin() in your ext_localconf.php. What am I missing? I already inserted one static template. i had the same problem! i reviewed the form i created and found that somehow the checkbox for custom variable name in an input field was checked and the value was empty {}. so somehow that crooked the whole plugin . now it works flawless! greets from austria Andy 来源: https://stackoverflow.com

TYPO3 Extbase: update record with logging of changes

泪湿孤枕 提交于 2019-12-02 09:50:42
When I update an object with an Extbase repository (e.g. in a cronjob or in the frontend) like this... $myRepository->update($myObject); and afterwards I use button "Display change history / Un-do" for this record in TYPO3 BE, I don't see any history. I only see a history when editing the object in TYPO3 BE. How can I enable the history? Short version: you can't, because the history is for changes done in the backend interface only. Longer version: you sort of, kind of can, but that would involve quite a bit of custom code in your repository which would do one of two things: Override the

Use other than primary key as RealURL id_field

不想你离开。 提交于 2019-12-02 09:23:25
In a TYPO3 6.2 site, I have the following postVarSets in realurl_conf.php for an extbase extension: 'postVarSets' => array( '_DEFAULT' => array( 'wba' => array( array( 'GETvar' => 'tx_weiterbildung_pi1[item]' , 'lookUpTable' => array( 'table' => 'tx_weiterbildung_domain_model_item', 'id_field' => 'uid', 'alias_field' => 'kurs_titel', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), ), ), ), This works. As the data in this table is imported from another site, I realized that to avoid confusion, I

TYPO3 insert plugin on every pages

半腔热情 提交于 2019-12-02 08:52:23
问题 I have TYPO3 version 7.6.18. I want to insert some plugin in every pages, I think it may be do with typoscript? Help me please, how to do it ? 回答1: If you want to insert a specific plugin on every page, you can simply add it to your page like so: page = PAGE page{ 10 = FLUIDTEMPLATE 10{ # the fluid template settings } # add a fixed plugin to be rendered after the normal fluid template 20 = USER 20{ userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run extensionName = MyExt vendorName = MyVendor