[Typo3] ext: custom tags

Carlos Chiari ccho at dimension-e.net
Wed Mar 2 17:08:38 CET 2005


Hi Illes:

The Custom Tags extension has a provided default typoscript to allow parse
tags inside tags (or shorthand inside tags, or shorthands inside shorthands,
etc.)

This is why, as the result includes the tag itself, when the content is
parsed the second time, it is substituted again.

This was an asked feature, to allow, for example, the use of custom tags
inside "<typolist>" tags.

Anyway, if for some reason this feature results annoying, you can go to the
Templates Module -> Constant Editor -> "Advanced" category, and there is a
constant that allows you to enable (default) or disable it:
<quote>
Enable Tags in Tags	[cutomTags.enableTagsInTags]
Enable (default) or disable tags and shorts inside custom tags, as in
<typolist>. It works just one level deep.
</quote>

Hope this is of any help.

Best regards,

Carlos



-----Mensaje original-----
De: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] En nombre de Illes
Muller
Enviado el: Martes, 01 de Marzo de 2005 03:43 a.m.
Para: typo3-english at lists.netfielders.de
Asunto: [Typo3] ext: custom tags

Dear List,

I would like to ask if anyone experienced the same problem with ext: 
custom tags. Maybe the problem is in my configuration, but I cannot find 
the problem.

Basically I would like to use your extension for displaying accronyms.
Defined a shorthand custom tag:
Tag: ODC
Result: <abbr title="Optical Distortion Correction">ODC</abbr>
Checked: Include in RTE, Allow RTE direct substitution
I placed the ODC text in a text content element, but the output is the 
following:
<abbr title="Optical Distortion Correction"><abbr title="Optical 
Distortion Correction">ODC</abbr></abbr>
It doubles my tag and places <br /> tags too.
Tried with another result (e.g. <b>ODC</b>) and received the same 
duplicate effect, but when tried with normal text (Result: Optical 
Distortion Correction), the output was normal.

Do you have any idea how to resolve this problem?

Thanks for your help in advance.

BR,
Illes


Configuration:

- Template Setup
lib.parseFunc_RTE.allowTags = 
b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquot
e,strike,span,h1,h2,h3,h4,h5,h6,abbr,acronym,mytag,bo
lib.parseFunc.allowTags = 
b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquot
e,strike,span,h1,h2,h3,h4,h5,h6,abbr,acronym,mytag,bo

- Root Page TSConfig:
RTE.default.contentCSS = fileadmin/template/gen.css
RTE.default.proc.allowTagsInTypolists = 
br,b,i,u,a,img,span,div,p,bo,mytag,hr
# here the <bo> tag is included in the allowedClasses, for the SPAN tag
RTE.default.proc.allowedClasses = bo
#span class stilusok engedelyezese
RTE.config.tt_content.bodytext.proc.allowedClasses =
RTE.default.classesCharacter =
RTE.default.hideButtons = fontstyle, fontsize, lefttoright, righttoleft, 
bgcolor
RTE.default.disableColorPicker = 1

Using Typo3 3.7.0, CSS styled content 0.2.2, htmlArea RTE and the latest 
custom tags extension 0.5.1 from repository
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





More information about the TYPO3-english mailing list