[TYPO3-timtab] timtab and rss-feeds

sven checkadelic.zulu at gmx.de
Tue Sep 19 20:14:48 CEST 2006


hi you guys, I just subscribed to this list and already get a question
for you (which is actually the reason why I subscribed :) ).

here it goes:
we are developing a website for our free radio and are using timtab in
order to provide single blog pages for each radiogroup
and each existing program. each of the blogs are subpages within the
pagetree of our webseite. on the main page, we are just
using tt_news functionality as no blog is needed there and template
voila gets also applied which doesnt "cooperate" with timtab.
our main page already supports the different feed types provided by tt_news.

ok, now comes the reason for my post:
each of the blog subpages shall also provide news feeds(just for the
blog posts not for comments). When analyuing the TS
Object Browser of our first (test) blog page, we can see all objects
with correct values necessary for running the page with rss-feed.
but when opening the test blogpage with typeNum = 100 we always get the
message that the xml-file is corrupt:



<p class="postmetadata">Posted in musikredaktion &middot redaktion3
<strong>|</strong> <a
href="index.php?id=88&amp;tx_ttnews[year]=2006&amp;tx_ttnews[month]=08&amp;tx_ttnews[day]=26&amp;tx_ttnews[tt_news]=14&amp;tx_ttnews[backPid]=43&amp;cHash=3619ed5f08" 


title="second blog post">8 Comments</a></p>



when taking a look at the files source code we dont see the expected xml
file but just a list with the HTML elements that hold
the blog posts like this:


begin------------------------------------------------------------------------

<div class="post">
    <h2><a
href="index.php?id=88&amp;tx_ttnews[year]=2006&amp;tx_ttnews[month]=08&amp;tx_ttnews[day]=26&amp;tx_ttnews[tt_news]=14&amp;tx_ttnews[backPid]=43&amp;cHash=3619ed5f08" 


title="second blog post">second blog post</a></h2>
    <small>August 26, 2006</small>

    <div class="entry">
    <p class="bodytext">Drum'n'Bass live gespielt - da kommt einem
direkt London Electricity (mehrfache Gewinner der future-music.net
Awards) in den Kopf. Lianne Carrol, MC Wrec, Jungle Drummer und Mr.
Elekricity Tony Colman selbst spielten vor ?ber...</p>
    </div>

    <p class="postmetadata">Posted in musikredaktion &middot redaktion3
<strong>|</strong> <a
href="index.php?id=88&amp;tx_ttnews[year]=2006&amp;tx_ttnews[month]=08&amp;tx_ttnews[day]=26&amp;tx_ttnews[tt_news]=14&amp;tx_ttnews[backPid]=43&amp;cHash=3619ed5f08" 


title="second blog post">8 Comments</a></p>

</div>

<div class="post">
    <h2><a
href="index.php?id=88&amp;tx_ttnews[year]=2006&amp;tx_ttnews[month]=08&amp;tx_ttnews[day]=24&amp;tx_ttnews[tt_news]=13&amp;tx_ttnews[backPid]=43&amp;cHash=2a600b895d" 


title="test blog post">test blog post</a></h2>
    <small>August 24, 2006</small>

    <div class="entry">
    <p class="bodytext">If you want to modify some global values of the
TypoScript configuration, used for the news display, take a look at the
&quot;Constant Editor&quot;. To open it, click on
&quot;Web/Template&quot; in the left-frame menu, choose the page with
the...</p>

    </div>

    <p class="postmetadata">Posted in fsk &middot redaktionen &middot
anbieterinnen &middot radiogruppen &middot redaktion3 &middot
musikredaktion &middot studiof &middot gutzki &middot statt_teile_radio
&middot loretta <strong>|</strong> <a
href="index.php?id=88&amp;tx_ttnews[year]=2006&amp;tx_ttnews[month]=08&amp;tx_ttnews[day]=24&amp;tx_ttnews[tt_news]=13&amp;tx_ttnews[backPid]=43&amp;cHash=2a600b895d" 


title="test blog post">4 Comments</a></p>

</div>

end------------------------------------------------------------------------


of course it is no wonder if plain html gets written instead of xml but
what can be the reason for this behaviour. as already said, the
tt_news/timtab configuration looks correct. here is a (incomplete)
snapshot of the configuration of our test blog page( page id == 43 ):

[xmlnews]=PAGE

[10]=USER
[userFunc]=tx_ttnews->main_news
[templateFile]=typo3conf/ext/timtab/res/kubrick/kubrick_tt_news.tmpl
[singlePid]=88
[archiveTypoLink]
[recursive]=2
[allowCaching]=1
[limit]=10
[latestLimit]=3
[backPid]=43
.........................................................
[displayXML]
[rss091_tmplFile]=EXT:tt_news/res/rss_0_91.tmpl
[rss2_tmplFile]=EXT:tt_news/res/rss_2.tmpl
[rdf_tmplFile]=EXT:tt_news/res/rdf.tmpl
[atom03_tmplFile]=EXT:tt_news/res/atom_0_3.tmpl
[atom1_tmplFile]=EXT:tt_news/res/atom_1_0.tmpl
[xmlFormat]=rss2
[xmlTitle]=Redaktion 3
[xmlLink]=http://fsk-hh.org
[xmlDesc]=Latest News From Redaktion 3 Universe
[xmlLang]=en
[xmlIcon]=EXT:tt_news/ext_icon.gif
[xmlLimit]=10
[xmlCaching]=1
[title_stdWrap]
[subheader_stdWrap]
[xmlLastBuildDate]=1
[dontUseBackPid]=0
[useHRDatesSingle]=1
[catSelectorTargetPid]=53
[code]=LIST
[useParagraphAsPagebreak]=1 #
[appendSViewPBtoContent]=1 #
[pid_list]=93
[defaultCode]=XML
[typeNum]=100
.........................................................
[config]
[disableAllHeaderCode]=1
[additionalHeaders]=Content-type:text/xml
[xhtml_cleaning]=0
[admPanel]=0
[no_cache]=1



Do you have any idea why no xml file gets created? one thing may be of
interest. as already mentioned, we are using plain tt_news on our main
page. for this news posts we are using a seperate sysfolder for posts
and a seperate single view. for each of the blog pages we are using
seperate sysfolders for posts. that means that we currently got the
following


sysfolder MainNews ID == 54
single page ID        == 86

sysfolder BlogPost ID == 93
single page ID       == 88

but all news and blogs share the same category sysfolder

sysfolder Categoriy ID == 53



and here is a more or less accurate graphical version of our page layout

main(id==21) (uses template voila and tt_news among others)
|
|
|- SingleViewNews(id==86)
|- SingleViewBlog(id==88)
|
|- Redaktionen
|  |
|  |-Redaktion 3(id==43) (just uses timtab, no TV)
|  |-...
|  |-...
|
Sysfolder News
|
|-Sysfolder Posts(id==54)
|-...
|
Sysfolder Blog
|
|-Sysfolder Posts(id==93)
|-Sysfolder Comments(id==91)
|-...



On the main page, tt_news is adjusted for the "news sys-folder" to look
for all news entries, the blog subpages are adjusted in seperate
extension templates for the "blog sys-folder". can this be part of our
problem? Hope that my description is clear enough :) tell me if you need
more informations.

Hope to hear form you, greetings, sven






More information about the TYPO3-project-timtab mailing list