[TYPO3-typo3org] TER FE enhancements

Robert Lemke robert at typo3.org
Thu Mar 9 19:10:08 CET 2006


Hi Michael,

On Wednesday, 8. March 2006 20:21, Michael Scharkow wrote:

 > as I have a little time at hand presently, I'd like to improve some
 > stuff in ter_fe which might enhance the usability.
 >
 > Notice: I can do all the patches myself and don't need any help but just
 > approval/better ideas, and would send in the stuff to Robert or commit
 > it to CVS straight ahead.

Thank you for your offer!

 > 1. As Karsten said, replace "Documentation" with "Manual" or just
 > "docs", and replace "read online" with "read".

Okay, the "read online" must be changed in the ter_doc_html extension which 
registers as an online format (see locallang.xml in that extension)

 > 2. Remove the icons from list view as 80% are useless, and they hurt
 > page loading time and the server load a lot.

Hmm, personally I would like to keep the icon as I like them but if nobody 
else feels the same, remove them. I feel that TYPO3.org has a lot of text 
already and the icons give a personal note the otherwise quite cold technical 
information about extensions.

 > 3. Add state and last update as columns in list view, as they are useful
 > to a lot of people. I'd also add rating as a column once it's ready.

good.

 > 4. Make the lists sortable, at least with: extkey, title, state,
 > last_update, (rating).

okay if you make sure it doesn't break the realurl configuration. You find the 
RealURL configuration at the end of this mail.

 > 5. Merge Info and Detail view, they still fit easily on one page if you
 > clean up the tables and put them one after the other.

ok

 > 6. Add a history view (as exists in the review plugin) that just outputs
 > the upload comments in reverse chronological order. This would be a
 > simple changelog. The history view could also be appended after
 > info/details

hmm, wouldn't it be better in general to use the file "Changelog" as a source 
of information?

 > 7. Add a list_by_author view (similar to categories view), where all
 > extensions by author XYZ are listed, link to this in any extensions info
 > view (other extensions by author...)

good

 > 8. Clean up (or even replace) the table output with something less
 > 'static' in single view...

Yes, please. As Ingo mentioned, he sent me a draft a few weeks ago, but I 
didn't use it (yet) because I couldn't just copy and paste it to the existing 
code (a.k.a. lack of time).

Please make sure that you coordinate your HTML / CSS changes with the content 
rendering group!

 > And some questions...
 >
 > What's the status of the category views? How can I help? Do we have
 > mm_relations or plain one_cat_per_ext?

Currently we have only the information which we get through the emconf file 
during upload. That means only a rough categorization like you find in the EM 
list view.

What we have to do in order to have category view at TYPO3.org:

	- define new category keys
	- use them from now on in the "category" field in the emconf
	- modify ter_fe_pi1 to use that information and create a category view

I'm not sure what impact the use of new category keys has on the display in 
the EM etc., you'll have to find that out. 

Of course it also means that we initially don't have a very detailled category 
information because it's only differentiated between "be", "fe", "feplugin" 
etc.

 > Can we remove the doc_only/l10n extensions (csh_xx) from the ter_fe
 > views, as the are not very useful to browse, and get special treatment
 > in 4.0 anyway... (We could simple filter by category l10n and doc).

Yes.

Greetings from Switzerland
robert

Here is the RealURL configuration of TYPO3.org:

-------8<--------------------------------8<--------------------------------

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
	'init' => array(
		'doNotRawUrlEncodeParameterNames' => FALSE,
		'enableCHashCache' => TRUE,
		'respectSimulateStaticURLs' => TRUE,
		'appendMissingSlash' => 'ifNotFile',
		'postVarSet_failureMode' => 'redirect_goodUpperDir',
#		'adminJumpToBackend' => TRUE,
		'enableUrlDecodeCache' => TRUE,
		'enableUrlEncodeCache' => TRUE,
	),
	'redirects' => array(
		'mailinglist/' => 'http://lists.netfielders.de',
		'buch' => 'http://typo3.org/documentation/typo3-book/',
		'buch/' => 'http://typo3.org/documentation/typo3-book/',
		'book' => 'http://typo3.org/documentation/typo3-book/',
		'book/' => 'http://typo3.org/documentation/typo3-book/',
	),
	'preVars' => array (
		array(
			'type' => 'action',		// "type" action
			'index' => array(
				'admin' => array(
					'type' => 'admin'	// Jump BE login OR setting frontend edit flags...
				),
				'search' => array(
					'type' => 'redirect',	// Redirect...
					'url' => 'index.php?id=1344&tx_indexedsearch[sword]=###REMAIN_PATH###',
				),
				'softlinks' => array(
					'type' => 'redirect',	// Redirect...
					'url' => 
'http://typo3.org/documentation/typo3-book/softlinks/?tx_ccsoftlink_pi1
[softlink]=###REMAIN_PATH###',
				),
				'ext' => array(
					'type' => 'redirect',	// Redirect...
					'url' => 'extensions/repository/list/###REMAIN_PATH###/',
				),
				'_DEFAULT' => array(
					'type' => 'bypass'	// If key was not found in index, throw "404" not 
found.
				),
			),
		),
	),
	'pagePath' => array(
		'type' => 'user',
		'userFunc' => 
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		'spaceCharacter' => '-',
		'expireDays' => 3,
#		'disablePathCache' => TRUE,
#		'firstHitPathCache' => TRUE,
#		'segTitleFieldList' => 'alias,nav_title,title,uid'
	),
	'fixedPostVars' => array(
		'1383' => array (	// TER FE
			array(
				'GETvar' => 'tx_terfe_pi1[view]',
			),
			array(
				'GETvar' => 'tx_terfe_pi1[showExt]',
			),
			array(
				'GETvar' => 'tx_terfe_pi1[version]',
			),
			array(
				'GETvar' => 'tx_terfe_pi1[extView]',
			),
			array(
				'GETvar' => 'tx_terfe_pi1[viewFile]',
			),

		),
		'1830' => array (	// Old documentation section
			array (
				'GETvar' => 'tx_terdoc_pi1[extensionkey]',
			),
		),
	),
	
	'postVarSets' => array (
		'_DEFAULT' => array(
			'references' => array(
				array(
					'GETvar' => 'tx_t3references_pi1[showUid]'
				)
			),
			'consultancies' => array(
				array(
					'GETvar' => 'tx_t3consultancies_pi1[showUid]'
				)
			),
			'thread' => array(
				array(
					'GETvar' => 'tx_maillisttofaq_pi1[showUid]'
				)
			),
			'page' => array(
				array(
					'GETvar' => 'tx_rlmpofficedocuments_pi1[showPage]'
				),
			),
		),
	)
);


	// REALURL configuration for TER_DOC:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']
['1387'] = array (
	array (
		'GETvar' => 'tx_terdoc_pi1[extensionkey]',
	),
	array (
		'GETvar' => 'tx_terdoc_pi1[version]',
	),
	array (
		'GETvar' => 'tx_terdoc_pi1[format]',
		'valueMap' => array(
			'view' => 'ter_doc_html_onlinehtml',
		),
	),
	array (
		'GETvar' => 'tx_terdoc_pi1[html_readonline_chapter]',
	),
	array(
		'GETvar' => 'tx_terdoc_pi1[html_readonline_section]',
	)
);

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']
['1921'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']
['fixedPostVars']['1387'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']
['1922'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']
['fixedPostVars']['1387'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']
['1923'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']
['fixedPostVars']['1387'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']
['1924'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']
['fixedPostVars']['1387'];
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['fixedPostVars']
['1925'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']
['fixedPostVars']['1387'];

-- 
Robert Lemke
TYPO3 Association - Research & Development
Member of the board
http://association.typo3.org


More information about the TYPO3-team-typo3org mailing list