[Typo3-UG Denmark] Links i Textarea with RTF
Peter Klein
peter at umloud.dk
Fri Dec 16 15:22:19 CET 2005
Du kan også bruge funktionen fra PHP.. Den ligger i cObj class'en..
-- cut --
function parseFunc($theValue, $conf)
Implements the stdWrap property, "parseFunc".
This is a function with a lot of interesting uses. In classic TypoScript
this is used to process text from the bodytext field; This included
highlighting of search words, changing http:// and mailto: prefixed strings
into links, parsing <typolist>, <typohead> and <typocode> tags etc.
It is still a very important function for processing of bodytext which is
normally stored in the database in a format which is not fully ready to be
outputted. This situation has not become better by having a RTE around...
This function is actually just splitting the input content according to the
configuration of "external blocks". This means that before the input string
is actually "parsed" it will be splitted into the parts configured to BE
parsed (while other parts/blocks should NOT be parsed). Therefore the actual
processing of the parseFunc properties goes on in ->_parseFunc()
$theValue string The value to process.
$conf array TypoScript configuration for parseFunc
Returns: string The processed value
-- cut --
D.v.s. at du først skal lave en array ($conf) med de settings du skal bruge.
(Dem kan du finde her)
http://typo3.org/documentation/document-library/doc_core_tsref/parseFunc/
Og så derefter kalde funktionen med output fra din plugin, samt $conf
variablen, så får du en parset version tilbage.
Kig evt. her:
http://typo3.org/documentation/mailing-lists/dev-list-archive/thread/20980/
--
Peter Klein/Umloud Untd
"Jeppe Donslund" <jd at webmasters.dk> skrev i en meddelelse
news:mailman.8294.1134741063.24100.typo3-ug-denmark at lists.netfielders.de...
Hej Peter.
Som helt ny i Typo3 kan jeg ikke helt gennemskue hvordan jeg får min tekst
gennem parseFunc.
Jeg hiver teksten ud gennem manuel php.
Med venlig hilsen
Jeppe Donslund
Webdesigner
Tlf. dir. 7633 8824
Webmasters
Agtrupvej 51
6000 Kolding
Tlf. 7550 8877
Dir. 7633 8824
jd at webmasters.dk
www.webmasters.dk
-----Oprindelig meddelelse-----
Fra: typo3-ug-denmark-bounces at lists.netfielders.de
[mailto:typo3-ug-denmark-bounces at lists.netfielders.de] På vegne af Peter
Klein
Sendt: 16. december 2005 13:23
Til: typo3-ug-denmark at lists.netfielders.de
Emne: Re: [Typo3-UG Denmark] Links i Textarea with RTF
Hej Jeppe. Du skal bare sende output af dine textareas gennem parseFunc..
Kig evt. pe hvordan et standard TEXT element bliver parset. (Brug "Template
Analyzer" og kig pe css_styled_content)
Du kan ogse lfse lidt om parseFunc her:
http://typo3.org/documentation/document-library/doc_core_tsref/parseFunc/
--
Peter Klein/Umloud Untd
"Jeppe Donslund" <jd at webmasters.dk> skrev i en meddelelse
news:mailman.7455.1134566772.24100.typo3-ug-denmark at lists.netfielders.de...
I min fxrste hjemmesnedkereret extension har jeg 2 felter af typen Textarea
with RTF. Men i frontend ser links lavet i disse textrea's mfrkelige ud.
<LINK></LINK>. Hvordan fer jeg det til at blive til links der virker?
Med venlig hilsen
Jeppe Donslund
Webdesigner
Tlf. dir. 7633 8824
Webmasters
Agtrupvej 51
6000 Kolding
Tlf. 7550 8877
Dir. 7633 8824
jd at webmasters.dk
www.webmasters.dk
More information about the TYPO3-UG-denmark
mailing list