Typo3 internal anchors with Typoscript

View: New views
5 Messages — Rating Filter:   Alert me  

Typo3 internal anchors with Typoscript

by De Contardi Riccardo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

A little question, but quite urgent.

 

I want to add at the beginning of my site a "Jump menu", that is a list
of link to internal anchors on the same page

<a href="#content" tabindex="1">skip to main content</a>

 

I tried with:

 

config.prefixLocalAnchors   = all

 

lib.jumpMenuHome = COA

lib.jumpMenuHome{

            wrap =  <ol class="invisible4">|</ol>

 

            1 = TEXT

            1.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1

        1.typolink.target =

            1.typolink.parameter = #header

            1.typolink.ATagParams = tabindex="1"

            1.wrap = <li>|</li>

}

 

But I discovered that... in detail pages of news (with tt_news, single
view) the anchor was wrong

<a tabindex="1" href="news/detail/#content">Content</a>

 

Instead of

 

<a tabindex="1" href="news/detail/#content">Content</a>

 

<a tabindex="1"
href="news/detail/archive/2009/jun/article/title-of-my-news#content/

 

 

I tried with:

 

lib.jumpMenu = COA

lib.jumpMenu{

            wrap =  <ol class="invisible4">|</ol>

 

1 = HTML

1.value.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1

1.value.wrap = <li><a href="#header" tabindex="1">|</a></li>

}

 

But... in this way, there's something wrong with crawler + staticpub:
all the pages have something like:

 

<a href="index.php?id=1#content" tabindex="1">content</a></li>

 

My staticpub configuration

 

tx_crawler.crawlerCfg.paramSets {

            staticpub =
&L=[|_TABLE:pages_language_overlay;_FIELD:sys_language_uid]

            staticpub.procInstrFilter = tx_staticpub_publish

            staticpub.baseUrl = http://typo3.test/

            }

 

 

Do you have suggestions?

 

I simply want

 

<a href="#content" tabindex="1">skip to main content</a>

 

Nothing more, nothing less.

 

Thank you!

 

 

**************************************

Riccardo De Contardi

 

B Human Srl - www.bhuman.it
<file:///C:\Documents%20and%20Settings\riccardo.decontardi\Dati%20applic
azioni\Microsoft\Firme%20elettroniche\www.bhuman.it>  

Via Canzio, 15 - 20131 Milano

Tel +39.02 20 23 271 - Fax +39.02 20 240 561

 



Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.


_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: Typo3 internal anchors with Typoscript

by Bernhard Kraft-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

De Contardi Riccardo schrieb:

>             1 = TEXT
>             1.data = LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
>         1.typolink.target =
>
>             1.typolink.parameter = #header
>
>             1.typolink.ATagParams = tabindex="1"
>
>             1.wrap = <li>|</li>
>

In your case I would not use the "typolink" method here. You should use this
method when you link to some page, etc, as it gets handled by realURL etc.

In your case I would simply wrap a static <a> tag around your LL-Label

1 = TEXT
1.data = LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
1.wrap = <li><a href="#content" tabindex="1">|</a></li>

;) quite simple? Isn't it ?


greets,
Bernhard
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Parent Message unknown R: Typo3 internal anchors with Typoscript

by De Contardi Riccardo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 1 = TEXT
> 1.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
> 1.wrap = <li><a href="#content" tabindex="1">|</a></li>

> ;) quite simple? Isn't it ?

THIS configuration is obnoxious! Every time I use the crawler (for
example to index my content) I obtain:



**************************************
Riccardo De Contardi
 
B Human Srl - www.bhuman.it
Via Canzio, 15 - 20131 Milano
Tel +39.02 20 23 271 - Fax +39.02 20 240 561
-----Messaggio originale-----
Da: typo3-english-bounces@...
[mailto:typo3-english-bounces@...] Per conto di Bernhard
Kraft
Inviato: sabato 7 novembre 2009 2.03
A: typo3-english@...
Oggetto: Re: [TYPO3-english] Typo3 internal anchors with Typoscript

De Contardi Riccardo schrieb:

>             1 = TEXT
>             1.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
>         1.typolink.target =
>
>             1.typolink.parameter = #header
>
>             1.typolink.ATagParams = tabindex="1"
>
>             1.wrap = <li>|</li>
>

In your case I would not use the "typolink" method here. You should use
this
method when you link to some page, etc, as it gets handled by realURL
etc.

In your case I would simply wrap a static <a> tag around your LL-Label

1 = TEXT
1.data = LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
1.wrap = <li><a href="#content" tabindex="1">|</a></li>

;) quite simple? Isn't it ?


greets,
Bernhard
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.


_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Parent Message unknown R: Typo3 internal anchors with Typoscript

by De Contardi Riccardo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry for the previous mail sent

As I told, with


Every time I use the crawler, I obtain:





**************************************
Riccardo De Contardi
 
B Human Srl - www.bhuman.it
Via Canzio, 15 - 20131 Milano
Tel +39.02 20 23 271 - Fax +39.02 20 240 561

-----Messaggio originale-----
Da: typo3-english-bounces@...
[mailto:typo3-english-bounces@...] Per conto di Bernhard
Kraft
Inviato: sabato 7 novembre 2009 2.03
A: typo3-english@...
Oggetto: Re: [TYPO3-english] Typo3 internal anchors with Typoscript

De Contardi Riccardo schrieb:

>             1 = TEXT
>             1.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
>         1.typolink.target =
>
>             1.typolink.parameter = #header
>
>             1.typolink.ATagParams = tabindex="1"
>
>             1.wrap = <li>|</li>
>

In your case I would not use the "typolink" method here. You should use
this
method when you link to some page, etc, as it gets handled by realURL
etc.

In your case I would simply wrap a static <a> tag around your LL-Label

1 = TEXT
1.data = LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
1.wrap = <li><a href="#content" tabindex="1">|</a></li>

;) quite simple? Isn't it ?


greets,
Bernhard
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.


_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Parent Message unknown R: Typo3 internal anchors with Typoscript

by De Contardi Riccardo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is something wrong with my Windows today! Hope this is the right
time!
Let's recall:

Using:

1 = TEXT
1.data = LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
1.wrap = <li><a href="#content" tabindex="1">|</a></li>

Every time I use the crawler I obtain:

<a href="index.php?id=1#content" tabindex="1">content</a>

Not very pleasant to see.

Maybe I found the answer:

lib.jumpMenuHome{
        wrap =  <ol class="invisible4">|</ol>

        1 = TEXT
        1.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
        1.typolink.target =
        1.typolink.addQueryString = 1
        1.typolink.parameter = #header
        1.typolink.ATagParams = tabindex="1"
        1.wrap = <li>|</li>
}

Seems to work

Thanks

**************************************
Riccardo De Contardi
 
B Human Srl - www.bhuman.it
Via Canzio, 15 - 20131 Milano
Tel +39.02 20 23 271 - Fax +39.02 20 240 561

-----Messaggio originale-----
Da: typo3-english-bounces@...
[mailto:typo3-english-bounces@...] Per conto di Bernhard
Kraft
Inviato: sabato 7 novembre 2009 2.03
A: typo3-english@...
Oggetto: Re: [TYPO3-english] Typo3 internal anchors with Typoscript

De Contardi Riccardo schrieb:

>             1 = TEXT
>             1.data =
LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
>         1.typolink.target =
>
>             1.typolink.parameter = #header
>
>             1.typolink.ATagParams = tabindex="1"
>
>             1.wrap = <li>|</li>
>

In your case I would not use the "typolink" method here. You should use
this
method when you link to some page, etc, as it gets handled by realURL
etc.

In your case I would simply wrap a static <a> tag around your LL-Label

1 = TEXT
1.data = LLL:fileadmin/templates/bhuman/assets/other/locallang.xml:link1
1.wrap = <li><a href="#content" tabindex="1">|</a></li>

;) quite simple? Isn't it ?


greets,
Bernhard
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Chi riceve il presente messaggio e' tenuto a verificare se lo stesso non gli sia pervenuto per errore. In tal caso e' pregato di avvisare immediatamente il mittente e, tenuto conto delle responsabilita connesse all'indebito utilizzo e/o divulgazione del messaggio e/o delle informazioni in esso contenute, voglia cancellare l'originale e distruggere le varie copie o stampe.

The receiver of this message is required to check if he/she has received it erroneously. If so, the receiver is requested to immediately inform the sender and - in consideration of the responsibilities arising from undue use and/or disclosure of the message and/or the information contained therein - destroy the original message and any copy or printout thereof.


_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english