[TYPO3-german] Anchor Tag Wrap
Stefan Padberg
post at bergische-webschmiede.de
Thu Nov 27 12:15:00 CET 2014
Hallo Armando,
mach den section-wrap beim cObject. Und für den Anchor-Tag müsste diese
vereinfachte Version auch genügen.
stdWrap >
stdWrap {
cObject = COA
cObject.wrap = <section class="anchor-section">|</section>
cObject {
10 = TEXT
10.wrap = <a name="anchor_|" class="anchor"></a>
10.field = uid
20 = CONTENT
20 {
table = tt_content
select {
pidInList.field = uid
}
renderObj < tt_content
}
}
}
Beste Grüße
Stefan
Am 27.11.2014 um 12:00 schrieb Armando Statti:
> Hey zusammen,
>
> ich bastle gerade so etwas für mich rum und entdecke Typo3 für mich :)
> Dabei bin ich jetzt noch auf folgendes Problem gestoßen.
>
>
>
>
>
> lib.sectionContent = HMENU
> lib.sectionContent {
> entryLevel = 1
> 1 = TMENU
> 1 {
> NO = 1
> NO {
> doNotLinkIt = 1
>
> stdWrap >
> stdWrap {
> cObject = COA
> cObject {
> 20 = CONTENT
> 20 {
> table = tt_content
> select {
> pidInList.field = uid
> }
> wrap = <section class="anchor-section">|</section>
> renderObj < tt_content
> }
>
> 10 = TEXT
> 10.wrap = <a name="anchor_|" class="anchor"></a>
> 10.stdWrap {
> cObject = TEXT
> cObject {
> field = uid
> }
> }
> }
> }
> }
> }
> }
>
>
> Der Code funktioniert einwandfrei, allerdings ist es so, dass er mir
> mein Anchor Tag über meine Section legt.
> Ich hätte aber gerne das er mir diesen Anchor IN die Section legt.
> Sprich:
>
> <section>
> <a name="anchor"></a>
> </section>
>
> Ich hab es geschafft das er mir das drunter legt, aber nicht in die
> Section.
> Was muss ich den dafür tun?
>
> Grüße und Danke
> Mando
>
--
Bergische Webschmiede
Typo3 Dienstleistungen
:: Dipl.-Ing. Stefan Padberg
:: www.bergische-webschmiede.de
---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
More information about the TYPO3-german
mailing list