[TYPO3-shop] [Typo3-shop] LISTOFFERS: own template
Alexander
master_nhg at mail.ru
Sun Dec 3 12:40:54 CET 2006
Simon Tuck пишет:
> Joern Bock wrote:
>
>> Yes Simon, I had such a workaround with two different template files
>> in mind. But to be honest, a solutions as described by Franz would be
>> a much more tailor-made solution, don't you think?
>
> Hi Joern,
> Well, of course: If you are implementing a shop for a client then I
> expect it to be tailored to the customers needs. But I see no advantage
> in modifying the extension code when a couple of lines of TS will
> achieve the same result.
>
> However, if you still want to modify the code, then you should do as
> follows:
> In class.tx_ttproducts_list_view.php go to the method printView.
> Where it says:
>
> // Getting various subparts we're going to use here:
> $area = '';
> if ($memoItems != '') {
> $area = '###MEMO_TEMPLATE###';
> } else if ($theCode=='LISTGIFTS') {
> $area = '###ITEM_LIST_GIFTS_TEMPLATE###';
> } else {
> $area = '###ITEM_LIST_TEMPLATE###';
> }
>
> Modify the code to read:
>
> // Getting various subparts we're going to use here:
> $area = '';
> if ($memoItems != '') {
> $area = '###MEMO_TEMPLATE###';
> } else if ($theCode=='LISTGIFTS') {
> $area = '###ITEM_LIST_GIFTS_TEMPLATE###';
> } else if ($theCode=='LISTOFFERS') {
> $area = '###ITEM_LISTOFFERS_TEMPLATE###';
> } else {
> $area = '###ITEM_LIST_TEMPLATE###';
> }
>
> That ought to do the trick...
> Cheers,
> Simon
>
Hello Simon
Ca you post here more code modifications parts, becouse provided code
doesn't work. Or can you send me modified file by e-mail?
Alex
More information about the TYPO3-project-tt-products
mailing list