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.10.2007, 02:26
Andrew Davis
Gast
 
Beiträge: n/a
Standard [TYPO3-shop] default message when products is empty

is there a way to have a LIST view show a message if the target record
folder is empty?

I have a client that wanted to put the site us asap, but not all product
categories are filled with records. some are empty. So if you goto the
front end, it jst shows blank.

I want it to say "There are no products in this category".

Any hints?

Thanks,
Andrew Davis
_______________________________________________
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.10.2007, 07:31
Franz Holzinger
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-shop] default message when products is empty

Hello Andrew,

> is there a way to have a LIST view show a message if the target record
> folder is empty?
>
> I have a client that wanted to put the site us asap, but not all product
> categories are filled with records. some are empty. So if you goto the
> front end, it jst shows blank.
>
> I want it to say "There are no products in this category".


You must adapt the code for this.

tt_products/view/class.tx_ttproducts_list_view.php:

function &printView( ...
....
if ($theCode != 'SEARCH' || ($theCode == 'SEARCH' && $sword)) {
....
}
if ($out) {
....
} elseif ($sword && $allowedItems!='0' && $theCode=='SEARCH') {
....
} else {
// *** new code for the case where no products are listed ***
$content = 'no products are listed';
}


return $conten

}




_______________________________________________
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] Empty Basket with Version 2.5.2 Tobias Vollmer typo3-project-tt-products@lists.netfielders.de 3 25.04.2008 18:05
[TYPO3-shop] noImageAvailable for products Unai Aizpurua typo3-project-tt-products@lists.netfielders.de 2 18.10.2007 16:26
[TYPO3-shop] Can fe users add products? Jogvan Olsen typo3-project-tt-products@lists.netfielders.de 1 02.10.2007 14:19
Re: [TYPO3-shop] ordering of products Andrew Davis typo3-project-tt-products@lists.netfielders.de 1 27.09.2007 20:23
[TYPO3-shop] Different dicounts for different products ? Gunnar Jonsson typo3-project-tt-products@lists.netfielders.de 0 09.02.2007 20:49


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:47 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