[TYPO3] htmlarea rte & target attribute
Kathryn Blair
artscoop at mail.arts.ubc.ca
Tue Aug 19 22:37:51 CEST 2008
Hi,
So apparently, by default, the htmlarearte has set ALL the targets for ALL
the links I have created to "page". So the first link you click makes a new
window named page and all subsequent links load in that. Is that actually
the default behavior?
Anyway, if I set RTE.default.defaultLinkTarget = _top all new links created
do have a target of _top which at least doesn't cause them to open in a new
window. Of course it means that all of my tags have the depreciated target
attribute, and that I will have to delete and re-set (or un-disable target
setting and set them all to target top) every. Single. Link.
I tried setting
RTE.default.proc.entryHTMLparser_db = 1
RTE.default.proc.entryHTMLparser_db.tags.a.fixAttrib.target.unset=1
But that sets the target BACK to "page". Amazingly, so does:
RTE.default.proc.entryHTMLparser_db = 1
RTE.default.proc.entryHTMLparser_db.tags.a.allowedAttribs =
class,href,title,name,id
Between each test, I
1. updated the page tsconfig for the root of the site
2. cleared the caches
3. deleted the link I was testing
4. reinsterted the link without touching the default target settings (they
are disabled).
Interestingly, allowedAttribs and fixAttrib just override the default target
setting with "page" (also their behavior alone).
There are two questions I have:
1. Is all that I can do set the default link target to _top (or _self) and
use the attribute anyway? Or is there something I'm doing wrong that would
enable me to get rid of that attribute?
2. Is there some way I can re-parse all of my page content to either take
out the target attributes or set them to _top / _self without having to edit
the individual links or pages? This will take me forever and I'm on a pretty
tight timeline.
I'm really curious as to why the default behavior is target="page" in the
first place too -- or if it isn't, why are all of my targets set to it.
Thanks a lot,
Kathryn Blair
More information about the TYPO3-english
mailing list