Feature_9583.patch
| static/setup.txt (working copy) | ||
|---|---|---|
| 154 | 154 |
typolink.setCommerceValues = 1 |
| 155 | 155 |
typolink.useCacheHash = 1 |
| 156 | 156 |
} |
| 157 |
|
|
| 157 | 158 |
} |
| 158 | 159 |
|
| 159 | 160 |
} |
| ... | ... | |
| 180 | 181 |
|
| 181 | 182 |
title.typolink.setCommerceValues = 1 |
| 182 | 183 |
title.typolink.useCacheHash = 1 |
| 184 |
|
|
| 185 |
|
|
| 183 | 186 |
subtitle < lib.tx_commerce.stdField |
| 184 | 187 |
subtitle.wrap = <div class="com-category-subtitle">|</div> |
| 185 | 188 |
|
| ... | ... | |
| 197 | 200 |
defaultImgConf {
|
| 198 | 201 |
file.import.current = 1 |
| 199 | 202 |
} |
| 203 |
stdWrap {
|
|
| 204 |
typolink.setCommerceValues = 1 |
|
| 205 |
typolink.useCacheHash = 1 |
|
| 206 |
} |
|
| 200 | 207 |
file.maxW = 150 |
| 201 | 208 |
} |
| 202 | 209 |
teaser < lib.tx_commerce.stdField_RTE |
| ... | ... | |
| 204 | 211 |
teaserimages {
|
| 205 | 212 |
file.import.current = 1 |
| 206 | 213 |
file.maxW = 69 |
| 214 |
stdWrap {
|
|
| 215 |
typolink.setCommerceValues = 1 |
|
| 216 |
typolink.useCacheHash = 1 |
|
| 217 |
} |
|
| 207 | 218 |
} |
| 208 | 219 |
} |
| 209 | 220 |
} |
| lib/class.tx_commerce_pibase.php (working copy) | ||
|---|---|---|
| 123 | 123 |
if (empty($this->conf['templateFile'])) {
|
| 124 | 124 |
return $this->error('init',__LINE__,'Template File not defined in TS: ');
|
| 125 | 125 |
} |
| 126 | ||
| 126 | 127 |
$this->templateCode = $this->cObj->fileResource($this->conf['templateFile']); |
| 127 | 128 |
if (empty($this->templateCode)) {
|
| 128 | 129 |
return $this->error('init',__LINE__,"Template File not loaded, maybe it doesn't exist: ".$this->conf['templateFile']);
|
| ... | ... | |
| 389 | 390 |
$categoryOutput=''; |
| 390 | 391 | |
| 391 | 392 |
$this->template=$this->templateCode; |
| 393 | ||
| 392 | 394 |
/* |
| 393 | 395 |
* @TODO own function for recursive Call |
| 394 | 396 |
*/ |
| ... | ... | |
| 427 | 429 |
} |
| 428 | 430 |
/** |
| 429 | 431 |
* Build TS for Linking the Catergory Images |
| 430 |
*/ |
|
| 432 |
*/ |
|
| 431 | 433 |
$lokalTS = $this->conf['categoryListView.']['categories.']; |
| 432 | 434 |
// check if no TYPOLink is already in TS |
| 433 | 435 |
|
| ... | ... | |
| 451 | 453 |
if($this->basketHashValue){
|
| 452 | 454 |
$typoLinkConf['additionalParams'].= ini_get('arg_separator.output').$this->prefixId.'[basketHashValue]='.$this->basketHashValue;
|
| 453 | 455 |
} |
| 454 |
$lokalTS['fields.']['images.']['stdWrap.']['typolink.'] = $typoLinkConf; |
|
| 455 |
$lokalTS['fields.']['teaserimages.']['stdWrap.']['typolink.'] = $typoLinkConf; |
|
| 456 |
|
|
| 456 | ||
| 457 |
if (is_array($lokalTS['fields.']['teaserimages.']['stdWrap.']['typolink.'])) {
|
|
| 458 |
if ($lokalTS['fields.']['teaserimages.']['stdWrap.']['typolink.']['setCommerceValues'] == 1){
|
|
| 459 |
$lokalTS['fields.']['teaserimages.']['stdWrap.']['typolink.'] = $typoLinkConf; |
|
| 460 |
} |
|
| 461 |
} |
|
| 462 |
if (is_array($lokalTS['fields.']['images.']['stdWrap.']['typolink.'])) {
|
|
| 463 |
if ($lokalTS['fields.']['images.']['stdWrap.']['typolink.']['setCommerceValues'] == 1){
|
|
| 464 |
$lokalTS['fields.']['images.']['stdWrap.']['typolink.'] = $typoLinkConf; |
|
| 465 |
} |
|
| 466 |
} |
|
| 467 | ||
| 457 | 468 |
$lokalTS = $this->addTypoLinkToTS($lokalTS,$typoLinkConf); |
| 458 | 469 |
|
| 459 | 470 |
|