[Typo3-dev] content sensitive help (csh) - how?

Andrew Henson andy at elaptics.co.uk
Thu Apr 29 21:19:06 CEST 2004


In article <mailman.1.1083247280.31804.typo3-dev at lists.netfielders.de>, 
andy at elaptics.co.uk says...
> In article <mailman.1.1083234724.15262.typo3-dev at lists.netfielders.de>, 
> trabold at mehrwert.de says...
> > Hi list!
> > 
> > Since Monday I try to get content sensitive (csh) help to work.
> > 
> > I tried the methods explained in "inside Typo3", "extending Typo3", 
> > "manual for developers",  studied the "photomarathon" and searched the 
> > web/archives. It doesn't work! :(
> > 
> > Kasper shows several methods of getting the csh to work:
> > 
> > - via $TCA_DESCR-Array
> > - via the locallang_csh_xxx.php-Files
> > 
> > 
> > For me it is hard to understand, how csh is now implemented in Typo3. 
> > Maybe the Extension Kickstarter could help here someday?
> > 
> > Is there anybody using csh who could pass me a working example or a 
> > hint, where I can find the solution?
> 
> I have also been trying to get this to work with my own extension and 
> have followed the guidance in the "Inside Typo3" document and whilst it 
> seems to work for extensions like tt_news I cannot get it to display the 
> help for my extension. I am using 3.6.0RC2, can anyone help? Has anyone 
> managed to get it to work for their extensions?
Answering my own post, I've managed to get it working. It was me being a 
bit stupid really! 
In the line:
t3lib_extMgm::addLLrefForTCAdescr
('pages','EXT:myext/locallang_csh_pages.php');
I thought myext meant extension key name with the tx_ prefix, probably 
because I had been looking at tt_news as the example...

I wonder if this is perhaps your problem Christian?

For everyone's info all I have done is added a locallang_csh_myext.php 
file into the extension folder, at the same level as ext_tables.php

In there I have put in the $TCA_DESCR array described in "Inside Typo3" 
document

Then in ext_tables.php I have added:

t3lib_extMgm::addLLrefForTCAdescr
('tx_ahmenulist_menu','EXT:myext/locallang_csh_myext.php');

where myext is the directory name of the extension where the 
locallang_csh_myext.php file is located.

Also, do the obvious and make sure that the user has the field help mode 
switched on to either display icon or full text and that it's not blank 
from within their setup panel.

Hope that helps

Andy




More information about the TYPO3-dev mailing list