[TYPO3-dev] Sorting of comma separated UIDs

Bernd Schönbach bs.newsfeeds at googlemail.com
Sat Mar 3 22:50:43 CET 2012


Hi,

I have a flexform field, where an BE User can select fe_user entries to 
be displayed in the front end.
The problem I am having is that the sorting of the flexform field is not 
respected in the front end output.
Is there any native extbase way to do that?

Greets
Bernd

Flexform Code:
<settings.users>
<TCEforms>
<label>LLL:EXT:iccore/locallang_db.xml:tx_iccore.pi_flexform_users.users</label>
	<config>
		<type>select</type>
		<foreign_table>fe_users</foreign_table>
		<foreign_table_where>
			AND fe_users.usergroup = ###PAGE_TSCONFIG_ID###
			ORDER BY fe_users.name
		</foreign_table_where>
		<size>10</size>
		<minitems>0</minitems>
		<maxitems>9999</maxitems>
	</config>
</TCEforms>
</settings.users>

Function:
	/**
	 * Finds an object matching the given identifier.
	 *
	 * @param array $uid The identifier of the object to find
	 * @return object The matching object if found, otherwise NULL
	 */
	public function findByUidList($uids) {
		$query = $this->createQuery();
		$query->getQuerySettings()->setRespectSysLanguage(FALSE);
		$query->getQuerySettings()->setRespectStoragePage(FALSE);
		$object = $query
					->matching(
						$query->in('uid', $uids)
					)
					->execute();
		return $object;
	}



More information about the TYPO3-dev mailing list