TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-tt-products@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 09.06.2008, 15:23
P. Arentzen
Gast
 
Beiträge: n/a
Standard [TYPO3-shop] LINK_ITEM and invalid HTML code

Hello,

as I've experienced the link in list view which is created by LIST_ITEM
marker contains '&' instead of '&' so that HTML output is not valid.

Which screw do I have to justify for correct link creating? Other links
on my page are OK.


Thanks in advance and greetings

Petra
_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
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 09.06.2008, 15:48
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] LINK_ITEM and invalid HTML code

Dear Petra,

> as I've experienced the link in list view which is created by LIST_ITEM
> marker contains '&' instead of '&' so that HTML output is not valid.
>
> Which screw do I have to justify for correct link creating? Other links
> on my page are OK.


You can change the code:

tt_products/view/class.tx_ttproducts_list_view.php:

$linkUrl =
$this->pibase->pi_getPageLink($pid,'',$this->marker->getLinkParams('',array(),true));
$linkUrl = htmlspecialchars($linkUrl);
$wrappedSubpartArray['###LINK_ITEM###'] = array('<a href="'. $linkUrl
..'">','</a>',array('useCacheHash' => true));


and the same in single view.

- Franz


_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
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!
  #3  
Alt 09.06.2008, 16:48
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] LINK_ITEM and invalid HTML code

Franz Holzinger a écrit :
> You can change the code:
>
> tt_products/view/class.tx_ttproducts_list_view.php:
>
> $linkUrl =
> $this->pibase->pi_getPageLink($pid,'',$this->marker->getLinkParams('',array(),true));
> $linkUrl = htmlspecialchars($linkUrl);
> $wrappedSubpartArray['###LINK_ITEM###'] = array('<a href="'. $linkUrl
> .'">','</a>',array('useCacheHash' => true));
>

And some lines must be changed too:

if ($typoVersion < 3008000) {
$pageLink =
htmlspecialchars('index.php?id='.$pid.'&'.$this->pibase->prefixId.'['.strtolower($itemTable->marker).']='.intval($row['uid']).'&'.$this->pibase->prefixId.'[backPID]='.$TSFE->id);
} else {
$addQueryString[$itemTable->type] = intval($row['uid']);
$addQueryString['cat'] = $cat;
$queryString = $this->marker->getLinkParams('begin_at', $addQueryString);
// $pageLink = $this->pibase->pi_getPageLink($pid,'',$queryString);
// 1-$TSFE->no_cache
$pageLink =
htmlspecialchars($this->pibase->pi_linkTP_keepPIvars_url($queryString,1,0,$pid) );
}


- Franz
_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
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!
  #4  
Alt 09.06.2008, 18:25
P. Arentzen
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] LINK_ITEM and invalid HTML code

Hello Franz,

thank you for your tip. I know that I can change the code, but I hate
doing that in a foreign extension, because it may and - probably will -
result in other problems.

As most other similar markers are handled correctly I think this is a
(little) bug and should be changed by developer (or maintainer ) of
tt_products - perhaps it's already done in a newer version, which is not
accessible for me.

I would do the code changes if my corrections will be available in next
2.5.x version.

For now I decided to set config.xhtml_cleaning = all in template setup
rather than changing code in tt_product.

Greetings

Petra

Dear Petra,

> as I've experienced the link in list view which is created by LIST_ITEM
> marker contains '&' instead of '&amp;' so that HTML output is not valid.
>
> Which screw do I have to justify for correct link creating? Other links
> on my page are OK.


You can change the code:

tt_products/view/class.tx_ttproducts_list_view.php:

$linkUrl =
$this->pibase->pi_getPageLink($pid,'',$this->marker->getLinkParams('',array(),true));
$linkUrl = htmlspecialchars($linkUrl);
$wrappedSubpartArray['###LINK_ITEM###'] = array('<a href="'. $linkUrl
..'">','</a>',array('useCacheHash' => true));


and the same in single view.

- Franz

_______________________________________________
TYPO3-project-tt-products mailing list
TYPO3-project-tt-products (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-tt-products
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!
 

Lesezeichen

Themen-Optionen
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-shop] LINK_ITEM und fehlerhafter HTML-Code P. Arentzen typo3-project-tt-products@lists.netfielders.de 0 09.06.2008 11:59
[TYPO3] producing html 4 strict code Henjo Hoeksma typo3-english@lists.netfielders.de 2 09.02.2008 19:02
[TYPO3] CE html and openads js code Bartosz Aninowski typo3-english@lists.netfielders.de 0 11.10.2007 15:01
[TYPO3] quote html code in rtehtmlarea Matyi Gábor typo3-english@lists.netfielders.de 8 21.09.2007 09:20
[TYPO3] HTML-Code in TemplaVoila Philipp Gruber typo3-english@lists.netfielders.de 1 20.03.2007 11:36


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:39 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77