[TYPO3-german] tx_news (G. Ringer): Frage zu List und Detailansicht auf einer (mehrerer) Seite(n)

Martin martinstockffm at googlemail.com
Tue Aug 20 20:14:22 CEST 2013


> Hast du das Minimalbeispiel aus der Doku schon probiert?
> http://docs.typo3.org/typo3cms/extensions/news/Main/Tutorial/IntegrationWithTs/Index.html#list-and-detail-on-the-same-page-using-typoscript


Ja, das habe ich bereits auch mehrfach hier erwähnt und um diesen Code geht es meiner Meinung auch, wenn ich dies anpassen möchte. 


Folgenden Code habe ich aktuell im TS Setup:
# FE-Plugin configuration for EXT:news
# ==============================================
plugin.tx_news {
  mvc.callDefaultActionIfActionCantBeResolved = 1

  persistence {
    classes {
      Tx_News_Domain_Model_News {
        subclasses {
          0 = Tx_News_Domain_Model_NewsDefault
          1 = Tx_News_Domain_Model_NewsExternal
          2 = Tx_News_Domain_Model_NewsInternal
        }
      }


      Tx_News_Domain_Model_NewsDefault {
        mapping {
          recordType = 0
          tableName = tx_news_domain_model_news
        }
      }
      Tx_News_Domain_Model_NewsExternal {
        mapping {
          recordType = 1
          tableName = tx_news_domain_model_news
        }
      }

      Tx_News_Domain_Model_NewsInternal {
        mapping {
          recordType = 2
          tableName = tx_news_domain_model_news
        }
      }
    }
  }
  view {
    templateRootPath = fileadmin/templates/ext/news/Templates/
                partialRootPath = fileadmin/templates/ext/news/Partials/
                layoutRootPath = fileadmin/templates/ext/news/Layouts/
  }
  # Modify the translation
  _LOCAL_LANG {
    default {
      # read_more = more >>
    }
  }
settings {
  defaultDetailPid = 0
    dateField = datetime
  
  }
  
  
}
  
}
# Rendering of content elements in detail view
lib.tx_news.contentElementRendering = RECORDS
lib.tx_news.contentElementRendering {
  tables = tt_content
  source.current = 1
  dontCheckPid = 1
}
lib.news = USER
lib.news {
                userFunc = tx_extbase_core_bootstrap->run
                pluginName = Pi1
                extensionName = News
                controller = News
                settings =< plugin.tx_news.settings
                persistence =< plugin.tx_news.persistence
                view =< plugin.tx_news.view
}

lib.news_detail < lib.news
lib.news_detail {
                action = detail
                switchableControllerActions.News.1 = detail
}

lib.news_list < lib.news
lib.news_list {
                action = list
  
  switchableControllerActions {

    News {

      1 = list

    }

  }

  settings < plugin.tx_news.settings

  settings {

    categories = 2

    limit = 30

    detailPid = 

    startingpoint = 11
   

  }
  
   
}

[globalVar = GP:tx_news_pi1|news > 0]
        page.10.marks.content < lib.news_detail
[else]
        page.10.marks.content < lib.news_list
[end]

Jetzt benötige ich brauchbare Tipps und Hilfestellungen, um den Code so zu ändern, damit ich die jeweilige Kategorie angeben kann. 


More information about the TYPO3-german mailing list