Ich habe ich es zwar geschafft die T3Blog Extension zum Laufen zu bringen, und Posts und Kommentare zu erstellen.
Allerdings stehe ich vor demselben Problem, das doch einige haben:
DOPPELTE Einträge
...nur finde ich dazu nirgends eine Lösung...
Vielleicht kann mir ja doch jemand helfen:
mein TS Setup der BLOG-Seite sieht so aus:
page = PAGE
page.includeCSS {
file1 = fileadmin/css/class.css
file1.media = screen,print,projection
file2 = fileadmin/css/class_blog.css
file2.media = screen,print,projection
}
page.typeNum = 0
page.bodyTag = <body bgcolor="#000000">
page.10 = TEMPLATE
page.10{
template = FILE
template.file = fileadmin/templates/blog.tpl.htm
workOnSubpart = DOKUMENT
marks {
MENU = HMENU
MENU {
wrap = <div id="menu"> | </div>
entryLevel = 0
1 = TMENU
1 {
expAll=1
wrap = <ul class="adxm"> | </style></ul>
NO {
wrapItemAndSub = <li> | </li>
}
ACT=1
ACT {
wrapItemAndSub = <li class="aadxm"> | </li>
}
}
2 = TMENU
2 {
expAll=1
wrap = <ul class="adxm"> | </ul>
NO {
wrapItemAndSub = <li class="aadxm"> | </li>
}
}
}
}
}
# BLOG einbinden
# BLOG CSS modifizieren in static/t3blog/styling/setup.txt
# Template modifizieren in template/setup.txt
# Widgets ergänzen static/t3blog/pi1/setup.txt
page.10.marks.CONTENT.includeJS {
10 = EXT:t3blog/static/js/mootools/mootools.js
}
page.headerData.1000 = COA
page.headerData.1000 {
# load the .js for the blog
10 = TEXT
10 {
value = <script type="text/javascript" src="typo3conf/ext/t3blog/static/js/globalFuncs.js"></script>
}
}
xmlnews = PAGE
xmlnews {
typeNum = 100
config {
disableAllHeaderCode = 1
additioalHeaders = Content-type:text/xml
linkVars = L
no_cache = 1
xhtml_cleaning = 0
admPanel = 0
}
10 = USER
10 {
# Call the user function
userFunc = tx_t3blog_pi1->main
widget.rss < plugin.tx_t3blog_pi1.rss
# Load "design" of the RSS-stuff
# Attention! This will only work, when you are
# using the static template "T3BLOG Layout".
# The static template has included the full design of
# a blog (position of widgets and much more)t
template =< plugin.tx_t3blog_pi1.layoutBlog.40.80
}
}
# global t3blog template handles the inclusion of the setup of each widget
# include the widget templates/configurations
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/latestCommentsNav/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/latestPostNav/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/blogList/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/calendar/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/categories/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/blogrollList/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/archive/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/rss/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/rss/static/setup.txt">
# <INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/socialBookmarks/setup.txt">
# <INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/tagCloud/setup.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3blog/pi1/widgets/searchBox/setup.txt">
plugin.tx_t3blog_pi1 {
global {
pageBrowser = TEXT
pageBrowser {
wrap = <ul class="pageBrowser">|</ul>
field = pbitems
}
pageBrowserElement = COA
pageBrowserElement {
5 = TEXT
5 {
wrap = <li class="|">
field = pbitemclass
}
10 = TEXT
10 {
wrap = |</li>
field = link
}
}
}
myblog = USER
myblog {
userFunc = tx_t3blog_pi1->main
widget.blogList < plugin.tx_t3blog_pi1.blogList
widget.calendar < plugin.tx_t3blog_pi1.calendar
widget.categories < plugin.tx_t3blog_pi1.categories
widget.feed < plugin.tx_t3blog_pi1.feed
widget.latestPostNav < plugin.tx_t3blog_pi1.latestPostNav
# widget.blogrollList < plugin.tx_t3blog_pi1.blogrollList
widget.latestCommentsNav < plugin.tx_t3blog_pi1.latestCommentsNav
widget.archive < plugin.tx_t3blog_pi1.archive
# widget.rss < plugin.tx_t3blog_pi1.rss
# widget.socialBookmarks < plugin.tx_t3blog_pi1.socialBookmarks
# widget.tagCloud < plugin.tx_t3blog_pi1.tagCloud
widget.searchBox < plugin.tx_t3blog_pi1.searchBox
# Load design
# Attention! This will only work, when you are
# using the static template "T3BLOG Layout".
# The static template has included the full design of
# a blog (position of widgets and much more)
template =< plugin.tx_t3blog_pi1.layoutBlog
}
}
# BLOG layout
plugin.tx_t3blog_pi1.layoutBlog = COA
plugin.tx_t3blog_pi1.layoutBlog {
wrap = <div class="t3blog">|<div class="clear"><!-- --></div></div>
#right Content
40 = COA
40 {
stdWrap {
wrap = <div id="col3">|</div>
required = 1
}
5 = TEXT
5 {
field = searchBox
}
10 = TEXT
10 {
field = feed
}
20 = TEXT
20 {
field = calendar
}
30 = TEXT
30 {
field = latestPostNav
}
40 = TEXT
40 {
field = categories
}
50 = TEXT
50 {
field = blogrollList
}
60 = TEXT
60 {
field = latestCommentsNav
}
70 = TEXT
70 {
field = archive
}
80 = TEXT
80 {
field = rss
}
90 = TEXT
90 {
field = socialBookmarks
}
}
#footer
}
page.10.marks.CENTER < plugin.tx_t3blog_pi1.myblog
..und alle T3Blog Templates sind auf der BLOG Seite eingebunden, zusätzlich zu ccs styled.
Die Posts und Widgets erscheinen dann am Marker, wie gewünscht.
Aber wie gesagt alle Posts sind leider doppelt in der Liste...