Tuesday, January 16, 2007

Hyundai Camera Driver

Custom character sets in the backend

So after I've spent a good five hours to find out why the website of a customer shot so Sun has been shown (only in Japanese language version), you get the solution of quasi served on a silver platter.
First off my problem description: Our client supplied
Japanese texts (web site exists in German [Standard], English and Chinese [Simplified]). After our intern entered the majority of Japanese texts is then had noticed that for some sign of HTML code will be destroyed.
have for eternal back and forth, I then found that the Japanese character ( csh_jp [yes, the TYPO3 version is not 4.0]) set for the Japanese language pack with shift_jis not compatible with the customer-supplied Word documents was (who were in the character set euc-jp encoded ).
Now one could argue, "Why did not you forceCharset in the Install Tool to set UTF-8 Then the problem would not exist ...?"
My answer: "Sure - absolutely thoughtful response, but no one was so real keen on the customer his German texts explain why all must be entered again. And ... oh yeah I had mentioned - since even a Chinese version was ... "
Conclusion: We have to somehow convert the BE in euc-jp (yes the VU is relatively simple to switch)

The bad news first. except forceCharset the encoding in the backend can not override
Now the good. too hard it still is not - if you know where you even need ...

solution:

You open the file typo3 . / t3lib/class.t3lib_cs.php
approximately in line 356 is the following code:
 var $ lang_to_charset_unix = array (
'west_european' => 'iso-8859-1',
'estonian' => 'iso-8859-1',
[...]
'chinese' => 'gb2312' / / = euc-cn
'japanese' => 'euc-jp '
'korean' => 'euc-kr',
[...]
);

The next array is the same for Windows, just that there is a charset for Japanese shift_jis . This has to be euc-jp be replaced. Last you need in the next array ($ charSetArray ), ticker jp euc-jp also be registered. Now you have to
only upload the file and voila - your back shines with new coding.

Oh, and for front-end's in your TypoScript template you must insert the following line:
 config.renderCharset = euc-jp 

I hope you saved a lot of time.

Monday, January 15, 2007

Can Tendonitis Get You A Weed License

Section Header Install

If you want to install so-called section headers, you can use for the following TypoScript:
 temp.CurrentPage 
temp.CurrentPage = HMENU special = {
rootline
special.range = 1 Protected area

>>
Downloads
to display the label for section headers still
Customer
.
So, I hope this was somewhat understandable ;-)

Wednesday, August 30, 2006

Monster Energy Corsette

BUGFIX: tt_news single limiting view pid_list on

The following problem was there with me today: A Typo3 (4.0.1) project has two independent trees. Let's call the first "Internet" and the Second "extranet". Both trees each have a sys_folder that contain only news items (tt_news 2.4.0). The article "Extranet" so have a different PID than those from the "Internet" tree. In the template I have TypoScript Constants written under the following words:
# Internet TS template plugin.tt_news.pid_list = 19 # TS Extranet Template plugin.tt_news.pid_list = 90 This also has everything in the LIST or LATEST view Trademarks. In testing, I eventually realized that it is possible in the "Internet" tree in the SINGLE view of the manipulation of tx_ttnews [tt_news] variables also read the articles from the extranet. The "Internet" tree was nowhere PID 90 (ie the UID of the Extranet sys_folder tree) indicated.
To fix this, you will simply do the following:
Opens class.tx_ttnews.php in an editor. Examines the definition of the function displaySingle () (such as line 510). This should then look something like this: function display single () {$ single
where = 'tt_news.uid ='. intval ($ this-> tt_news_uid); single $ where .= 'AND type NOT IN (1,2)'.
$ this-> enableFields / / only real news -> type = 0
$ where .= 'AND pid IN ('
$ this-> pid_list '.. ) ';
 and lo and behold - the SINGLE view has suddenly also on your TypoScript. 


Tuesday, August 22, 2006

Where Should Your Cervix Be Before Your Period

Icons in RTE Show / Hide

order in the new RTE (Typo3> 3.8) Icons view, you make the best following in your TSConfig:
RTE.default.showButtons = *
With
RTE.default.hideButtons = chmod, outdent, ...

You can now remove individual buttons. The keywords you steehen available:
text style, text style label, block-style block-style label, bold, italic, underline, left, center, right, orderedlist unorderedlist, insert character, line, link, image, RemoveFormat, table, toggleborders, TableProperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete rowsplit, column insert before, insert column after, columndelete, column split, CellProperties, cell insertBefore, cell InsertAfter, celldelete, split cell, cellmerge findreplace, insert character, undo, redo, show help, about, font style, size block font, size, strikethrough, lefttoright righttoleft, textcolor, bgcolor, text indicator, emoticon, user, spellcheck chmod, InsertTag, outdent, indent, justifyfull, subscript superscript, acronym, copy, cut, paste