typo3

TYPO3: Add custom set functions in extension controller

↘锁芯ラ 提交于 2019-12-06 19:45:38
I'm creating an extension for visitors to sign up to the page. When signing up, it should create a FE user in the backend which is disabled (and will be manually enabled by an admin). So I'll need to set the disable field to 1 when creating the FE user. This is the function inside my controller: /** * action create * * @param \Vendor\FeReg\Domain\Model\Dummy $newDummy * @return void */ public function createAction(\Vendor\FeReg\Domain\Model\Dummy $newDummy) { // vars $title = $newDummy->getTitle(); $atitle = $newDummy->getAtitle(); $fname = $newDummy->getFname(); $lname = $newDummy->getLname()

TYPO3 4.6 include extbase plugin with typoscript

旧巷老猫 提交于 2019-12-06 15:59:37
I have TYPO3 4.6, in tempvoila template i have typoscript object path lib.header and I want to redirect output of plugin to lib.header I have extension Gallery and plugin written and configured in ext_localconf.php like this: Tx_Extbase_Utility_Extension::configurePlugin( $_EXTKEY, 'RandomPhotoSlideShow', array( 'Photo' => 'randomPhotoSlideShow', ), // non-cacheable actions array( 'Photo' => '' ) ); in ext_tables.php like this: Tx_Extbase_Utility_Extension::registerPlugin( $_EXTKEY, 'RandomPhotoSlideShow', 'Gets random photos for slide show' ); and in typoscript template I have this: plugin.tx

TYPO3: Filter frontend users by usergroup in backend?

不羁岁月 提交于 2019-12-06 15:18:14
Is there a feature or backend extension or that can filter list records? Right now, you can only check a single user record or sort by usergroup. I am looking for a module where I can choose the usergroup and get a list of all assigned users (FE users) in the backend. Or a standard feature I haven't discovered yet. Maybe similar to filtering news articles in tt_news by category. If it doesn't exist, I will have to code it myself. Not in the List module but you can do this by setting an action . It can be set only by an admin but can be used by any backend user that you allow. In the Extension

The controller “X” is not allowed by this plugin

╄→гoц情女王★ 提交于 2019-12-06 14:09:32
I try to add a new controller which has one action called confirmAgbAction . <?php namespace Eddcapone\MyExtension\Controller; /** * CustomController */ class CustomController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { /** * action list * * @return void */ public function confirmAgbAction() { echo "<p>HALLO WELT</p>"; } } I even added it to ext_localconf.php <?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'Eddcapone.' . $_EXTKEY, 'Myfilelist', array( 'Category' => 'list,show', 'File' => 'show',

TYPO3 Extbase fe_user UID in own model

自闭症网瘾萝莉.ら 提交于 2019-12-06 13:35:07
问题 I create a extbase Plugin in TYPO3 6.2. In one table i have a field "fuid" where i want to store the fe_users uid, to know which user can edit this record. I set the "fuid" in createAction: $newLocation->setFuID((int) $GLOBALS['TSFE']->fe_user->user['uid']); This work. In the Database is the right UID. But in the editAction: $location->getFuID() returns null Why? TCA: fu_i_d' => array( 'exclude' => 1, 'label' => 'LLL:EXT:pitss24/Resources/Private/Language/locallang_db.xlf:tx_pitss24_domain

Add parameter to link in typoscript

笑着哭i 提交于 2019-12-06 13:32:36
I have my site setup so that if you are on a mobile you get a mobile rendered template. To click to go to the main site you go index.php?id=??&mainsite=1 This all works fine however I have a link at the bottom of my mobile template that says go to main site. I want this to go to the main template page for the current page id eg index.php?id=page:uid&mainsite=1 If I do lib.mainsitelink= TEXT lib.mainsitelink.data = page:uid I get www.example.com/uid so when uid = 3 i get www.example.com/3 but if i do the below code it doesn't work lib.mainsitelink= TEXT lib.mainsitelink.data = index.php?id=page

TYPO3 TCA forms using AJAX for drop down lists

主宰稳场 提交于 2019-12-06 11:45:40
In my TCA forms I have two drop down lists, List 1 called Campus and List 2 called Department . The Department list should change depending on the value selected in the Campus list. In other words, the Department list depends on the selected Campus item. How do I achieve this in TYPO3 TCA forms? Normally in HTML, I would use AJAX, what should I use here? Thanks in advance :) You can use markers in your "foreign_table_where"-string. One of them is the ###REC_FIELD_[fieldname]### marker. Example: 'campus' => array( 'label' => 'campus', 'config' => array( 'type' => 'select' ) 'foreign_table' =>

How to get page categories in Typoscript (and use with tx_news)

蹲街弑〆低调 提交于 2019-12-06 11:37:48
问题 I would like to read out a page's system categories for further use with tx_news (to display news that have the same categories as the page - as tx_news is using system categories). I was looking for a native solution, hopefully via getText, something like: plugin.tx_news.settings.categories.data = page:categories but that doesn't seem to exist yet Also, I tried to simplify the query by using sys_category_records_mm, which contains all the information needed for that case, but TYPO3 complains

Language switching in TYPO3 v6

拟墨画扇 提交于 2019-12-06 11:04:40
问题 Switching the fontend-language does not work for me as expected. What I have done so far: At the root page, I created two website-languages, german and english: In the typoscript template I added the following setup, I found most of this scattered around the web: config { tx_realurl_enable = 1 simulateStaticDocuments = 0 sys_language_uid = 0 language = de locale_all = de_DE htmlTag_langKey = de linkVars := addToList(L) uniqueLinkVars = 1 sys_language_mode = content_fallback sys_language

TYPO3: Remove validation from ObjectStorage property in model

喜夏-厌秋 提交于 2019-12-06 10:04:10
Does anyone knows if it is possible to remove recursive validation from model in extbase TYPO3? Let's say I have model with following properties: /** * @var string * @validate NotEmpty */ protected $title; /** * @var string * @validate NotEmpty */ protected $city; /** * @lazy * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<my/model/classname> */ protected $categories; When passing my object to controller action I want only title and city to be validated. I would like categories not to be validated. Extbase is validating all relations in ObjectStorage recursively - so if my/model/classname