Kategorie im newsList Template

Bitte in den Beiträgen keine externe Bilder einbinden, sondern nur die Dateianhänge verwenden.
Vielen dank.
  • unknown method 'getCategories'

    Es geht übrigens um das alte News-System, für das wcf2.1 - nur falls nicht klar ^^


    Ich habe mal mit {@$news|var_dump} geschaut und die Kategorie taucht dort als ["title"]=> string(7) "YouTube" auf.


    Hier mal die Ausgabe bis zur (ersten) Kategorie:

    Code
    object(news\data\news\ViewableNews)#1613 (5) { ["userProfile":protected]=> NULL ["effectiveVisitTime":protected]=> int(1529000384) ["logEntry":protected]=> NULL ["object":protected]=> object(news\data\news\News)#1614 (6) { ["categoryIDs":protected]=> array(3) { [0]=> int(221) [1]=> int(224) [2]=> int(225) } ["categories":protected]=> array(3) { [221]=> object(news\data\category\NewsCategory)#1617 (8) { ["permissions":protected]=> NULL ["newsCount":protected]=> NULL ["newsUnreadCount":protected]=> NULL ["childCategories":protected]=> NULL ["parentCategories":protected]=> NULL ["parentCategory":protected]=> NULL ["object":protected]=> object(wcf\data\category\Category)#1548 (8) { ["childCategories":protected]=> NULL ["parentCategories":protected]=> NULL ["parentCategory":protected]=> NULL ["permissions":protected]=> NULL ["userPermissions":protected]=> array(0) { } ["defaultPermission":protected]=> bool(false) ["processor":protected]=> NULL ["data":protected]=> array(10) { ["objectType"]=> string(22) "de.wbb-elite.news.news" ["categoryID"]=> int(221) ["objectTypeID"]=> int(437) ["parentCategoryID"]=> int(0) ["title"]=> string(7) "YouTube"


    Aber wie komme ich da dran? :|


    Vor Allem weil es ja auch durchaus mehrere Kategorien pro News sein können - hatte ich zuerst gar nicht bedacht.

  • Cyperghost

    Hat das Thema geschlossen.
  • Cyperghost

    Hat das Thema geschlossen.