[TYPO3] glitch with typoscript? or tv mapping?

Cate & Peter catepeter at optusnet.com.au
Sun Dec 31 02:45:27 CET 2006


Hi Dmitry & Christopher

Cate & Peter wrote:
> I have recently shifted hosts, which resulted in a whole lot of other
> issues, including database and table fixing. As a result when I went to
> continue working on my tv templates, of course they all needed remapping.

Dmitry wrote:
>Why? You should have used "Export to t3d" on the old host and import it 
>on the new host, so everything would be intact.

:) 'Coz I didn't know about it and didn't have time to research it, as it
was something I had to do very quickly, so I just backed up the database ...
I know ... dumb.

>I suggest to go and check properties (not mapping!) for that field once 
>more. It may be that you will see there "lib.myObject" instead of 
>"lib.currentpagename" (this is fixed in the coming version).

Thanks for the suggestion - I checked and the properties are fine ... so I
took your advice...


>That TS object is too complex. Imagine, you have so many lines and you 
>are doing additional sql SELECT only to get title! Why don't you simply 
>use this:

>lib.currentpagename = TEXT
>lib.currentpagename.dataWrap = <span
			class="currentpagename">{page:title}</span>

>Its only two lines (remove line wrap on the second line!) and much much 
>faster.

And it is working fine now.

Thanks for the tip - code writing is really not my forte, so if I find
something I am just using it at the moment, even if it is a hack :)

One day I will be wealthy enough to hire you as a coder for me :)

Cate




More information about the TYPO3-english mailing list