Hello, Well, I wrote lib.etc as I use Templavoila; The TS code that writes the "to top" link of CE is
tt_content.stdWrap { innerWrap2= | <p class="csc-linkToTop"><a href="#">{LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop}</a></p> innerWrap2.insertData=1 innerWrap2.fieldRequired= linkToTop } So you should rewrite this to make it a content object: tt_content.stdWrap.innerWrap2.cObject=TEXT tt_content.stdWrap.innerWrap2{ data = LLL:EXT:css_styled_content/pi1/locallang.xml:label.toTop typolink.target = typolink.addQueryString = 1 typolink.parameter = #container wrap = <p class="csc-linkToTop"> |<p> Modifying a php core file is not in IMHO a reliable way to fix this issue, as you must deploy again your differences after every update of the CMS core Best Regards and good luck with your renewal -------------------------------------------- Riccardo De Contardi - Web Developer 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-boun...@lists.typo3.org [mailto:typo3-english-boun...@lists.typo3.org] Per conto di Tomoko OOYA Inviato: giovedì 24 febbraio 2011 05:29 A: TYPO3 English Oggetto: Re: [TYPO3-english] R: staticpub and to top link Hi, Thank you for advice, but due to lack of my knowledge (for me, lib.XX is something to dorop TemplaVoila's DS) and time (this monday was our site renewal open day.) , I couldn't make this sample code work. I modified class.t3lib_parsehtml.php directly to ignore if url is '#container'. After this aftermath of site renewal, I should learn more deeply. (2011/02/21 0:43), De Contardi Riccardo wrote: > Hello, > I've had the same problem a long time ago with "local" anchors I've used to > build a "Jump to section" menu... > > Keep the > config.tx_realurl_enable = 1 > config.prefixLocalAnchors = 1 > > And rewite the "to top" object in a manner similar to this: > > lib.localanchor=TEXT > lib.localanchor{ > value=link to header > typolink.target = > typolink.addQueryString = 1 > typolink.parameter = #header > typolink.ATagParams = tabindex="1" rel="nofollow" > typolink.ATagParams.insertData=1 > } > > Best regards. > > -----Messaggio originale----- > Da: typo3-english-boun...@lists.typo3.org per conto di Tomoko OOYA > Inviato: sab 19/02/2011 4.48 > A: typo3-english@lists.typo3.org > Oggetto: [TYPO3-english] staticpub and to top link > > Hi, I'm working on my first TYPO3 site. > > > with config.prefixLocalAnchors = all, output in static html file <p > class="csc-linkToTop"><a href="index.php?id=588#container"> > result in broken link > > > without config.prefixLocalAnchors = all output <p > class="csc-linkToTop"><a href="../../../#container"> result in link to > root page > > what's wrong? > > instllation -------------------------------------------------- > > TYPO3: 4.3.3 > realurl: 1.8.1 > staticpub: 1.1.0 > > realurl setup ------------------------------------------------ > > config.simulateStaticDocuments = 0 > config.baseURL = http://192.168.X.XXX/ > config.tx_realurl_enable = 1 > config.prefixLocalAnchors = 1 > > staticpub setup ----------------------------------------------- > > tx_crawler.crawlerCfg.paramSets { > staticpub =&L=[|_TABLE:pages_language_overlay;_FIELD:sys_language_uid] > staticpub.procInstrFilter = tx_staticpub_publish > staticpub.procInstrParams.tx_staticpub_publish.includeResources = relPath > staticpub.procInstrParams.tx_staticpub_publish.overruleBaseUrl = > > staticpub.baseUrl = http://localhost/ } > _______________________________________________ > TYPO3-english mailing list > TYPO3-english@lists.typo3.org > 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@lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english _______________________________________________ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english