TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] htmlarea rte & target attribute

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 &...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 19.08.2008, 22:37
Kathryn Blair
Gast
 
Beiträge: n/a
Standard [TYPO3] htmlarea rte & target attribute

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 20.08.2008, 00:43
Andreas Burg
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] htmlarea rte & target attribute

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:08 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39