[TYPO3-english] tt_news Crop text

Stano Paška stano.paska at gmail.com
Tue May 25 15:28:01 CEST 2010


Sorry JoH, I did not mean that :-) It was typo error.

On Tue, May 25, 2010 at 3:26 PM, Stano Paška <stano.paska at gmail.com> wrote:
> Hmm,
>
> in your first message you wrote "crop the content to a certain
> length", so I suppose that you want crop subheader/bodytext field...
>
> When you want crop header (title) of tt_new record, JoH assnau wrote solution.
>
> Stano.
>
> On Tue, May 25, 2010 at 1:49 PM, ppraveenk <praveen.penupati at gmail.com> wrote:
>>
>> thanks for the reply and kind words...
>> My goal is to crop the dynamically rendered content in TypoScript.
>> My website has a home page with different sections like media, news, videos
>> etc.
>> We use automaketemplate parser extension to render the home page dynamically
>> using subparts and markers.
>> The typoscript code uses tt_news to display the latest article.
>> I have a system folder in the typo3 back end that contains some articles.
>> Using tt_news the typoscript gets the heading of the latest article [I am
>> not sure about the 'view', I think it is 'latest' as per the functionality].
>> I would like to crop this heading to a specified length.
>> Please find the typoscript code below:
>>
>> 1.   subparts.mediacontent < plugin.tt_news
>> 2.   subparts.mediacontent {
>> 3.    templateFile = fileadmin/templates/media.html
>> 4.    defaultCode = LIST
>> 5.    limit = 1
>> 6.    singlePid = 12
>> 7.    pid_list = 13
>> 8.    noPageBrowser = 1
>> 9.    backPid = 21
>> 10. }
>>
>> Please let me know in case more details are needed.
>> I shall try my best to provide you the required details.
>>
>> cheers!
>> praveen.
>>
>> JoH asenau wrote:
>>>
>>>
>>> Well - you still didnt' prove enough information about the stuff you want
>>> to
>>> crop.
>>> Simply writing "I want to crop the content ..." isn't enough, since
>>> "content" can be almost anything from simple text to header to images to
>>> whatever ...
>>>
>>> So what exactly is your goal and for which "view" (list, latest, single
>>> ...)
>>> of tt_news do you want to achieve it?
>>>
>>> HTH
>>>
>>> Joey
>>>
>>> --
>>> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
>>> (If you have no clues: simply shut your gob sometimes!)
>>> Dieter Nuhr, German comedian
>>> Xing: http://contact.cybercraft.de
>>> Twitter: http://twitter.com/bunnyfield
>>> TYPO3 cookbook (2nd edition): http://www.typo3experts.com
>>>
>>>
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>
>>>
>>
>> --
>> View this message in context: http://old.nabble.com/tt_news-Crop-text-tp28579977p28667388.html
>> Sent from the TYPO3 English mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>
>


More information about the TYPO3-english mailing list