Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] htmlarea rte & target attribute within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi, So apparently, by default, the htmlarearte has set ALL the targets for ALL the links I have created to &...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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.fixAttr ib.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.allowed Attribs = 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 _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hello Kathryn,
if you're not working with framesets, what I assume, you don't need no attribute target. I think you can disable it in your main-TS-template with the constant editor under the rubrik "advanced". "PAGE_TARGET" empty (not set). If you like to set a target="_blank" for external links, you can do that while creating this links. It's not invalid, as long as you use DOCTYPE XHTML 1.0 Transitional. config.doctype = xhtml_trans config.xhtmlDoctype = xhtml_trans These two lines in your main-TS-template sets the correct HTML head incl. DOCTYPE, nothing else needed, even charset ist set correct, depending on your system (I suggest working on a system that is completly configured to utf8) If you like to work with a strict variant, where the target attribute is invalid, you can mark your links with little icons to give a little hint, which links will open a new window. Andreas _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Adding alt attribute to clear.gif | Edwin Blokker | typo3-english@lists.netfielders.de | 10 | 26.09.2007 20:59 |
| [TYPO3] How remove the width attribute in img tag | Nicola Raffaele Di Matteo | typo3-english@lists.netfielders.de | 0 | 10.09.2007 22:28 |
| [TYPO3-german] Fehler im Menü-Script??an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified | dirvish | typo3-german@lists.netfielders.de | 5 | 21.03.2007 13:47 |
| [TYPO3] Link Target attribute in tt_news | Benjamin Todd | typo3-english@lists.netfielders.de | 1 | 16.01.2007 16:54 |
| [TYPO3] Could someone help me with rel attribute in my TS? | Marfolo | typo3-english@lists.netfielders.de | 0 | 05.12.2006 12:25 |