[TYPO3-english] Typolink with whole template inside

Urs Bräm info at ursbraem.ch
Thu Mar 31 18:00:08 CEST 2011


> If I get you right, you want to do something that is quite easy with TYPO3 but prbably produces invalid HTML.

... not in HTML 5 , I think ...
http://html5doctor.com/block-level-links-in-html-5/

Regards
Urs

>
>
> I think you want to do something like that:
>> ## copy from introduction package:
>> page = PAGE
>> page.10 = TEMPLATE
>> ## extended by typolink:
>> page.10.stdWrap.typolink.parameter = http://www.netlogix.de
>
> TYPO3 will produce the whole page template wrapped with the link tag.
>
>
> But I think the result will prbably be invalid. Imagine the following:
>
> The TEMPLATE might results somethin like:
> <ul class="navigation"><li><a href='/home.html'>Home</a></li></ul>
>
> The stdWrap I mentioned some lines above will lead to this:
> <a href="http://www.netlogix.de"><ul class="navigation"><li><a href='/home.html'>Home</a></li></ul></a>
>
> This is obviously invalid because of two reasons:
> * There are two A-tags nested: the outer links to http://www.netlogix.de, the inner one links to /home.html.
> * The result nests a HTML block element (UL) into a HTML inline element (A).
>
>
> I prepared two links to demonstrate the two different problems:
>
> http://www.g4n.de/index.php?id=73
> This link does exactly what i described above: It is just an intrudiction package (I just installed it two minutes ago) extended by "page.10.stdWrap.typolink.parameter = http://www.netlogix.de" only on page 73.
>
> http://www.g4n.de/a-nesting.html
> This isn't generated by TYPO3 but a plain html file. Putting it through an HTML validator reveals the problem:
>> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.g4n.de%2Fa-nesting.html&charset=%28detect+automatically%29&doctype=Inline&group=0
>
>
> Regards,
>
>
>
> Stephan Schuler
> Web-Entwickler
>
> Telefon: +49 (911) 539909 - 0
> E-Mail: Stephan.Schuler at netlogix.de
> Website: media.netlogix.de
>
>
> --
> netlogix GmbH&  Co. KG
> IT-Services | IT-Training | Media
> Andernacher Straße 53 | 90411 Nürnberg
> Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
> E-Mail: info at netlogix.de | Internet: http://www.netlogix.de
>
> netlogix GmbH&  Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
> Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
> Umsatzsteuer-Identifikationsnummer: DE 233472254
> Geschäftsführer: Stefan Buchta, Matthias Schmidt
>
>
>
> ________________________________________
> Von: typo3-english-bounces at lists.typo3.org [typo3-english-bounces at lists.typo3.org]&quot; im Auftrag von&quot;Oliver Hader [oliver.hader at typo3.org]
> Gesendet: Mittwoch, 30. März 2011 14:11
> Bis: typo3-english at lists.typo3.org
> Betreff: Re: [TYPO3-english] Typolink with whole template inside
>
> Hi Enrique,
>
> Am 30.03.11 10:15, schrieb Enrique Moreno Tent:
>> Hello guys. I have a whole module loading a template with a big DIV block
>> with content inside, and i want to make the whole template a single link
>> with tzpolink. The problem is that only the elements like "<a>" or"<p>" get
>> linked, but not the div containing them. What could I do?
>
> Can you please post how your markup should look like and besides that
> please also post your current TypoScript.
>
> olly
> --
> Oliver Hader
> TYPO3 v4 Core Team Leader
>
> TYPO3 .... inspiring people to share!
> Get involved: http://typo3.org
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


-- 
Urs Bräm
macht Websites
---
Certified Typo3 Integrator
CH-3011 Bern
www.ursbraem.ch


More information about the TYPO3-english mailing list