Zen TYPO3 Forum
Our TYPO3 forum is available for freelancers, professionals and clients new to TYPO3 to discuss Basic TYPO3 templating, Typoscript, extension installation, administration and help with subscription templates. Please register for an account to post.
Total Posts: 8 - Pages (1): [1]
jensop sent me this solution.
I haven't had time to test yet but it is certainly worth including in the next release
Constants for setup:
Setup:
Greg
----
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990
I haven't had time to test yet but it is certainly worth including in the next release
Constants for setup:
# Provide a link to the RSS feed for news. This should be discoverable by browsers such as Firefox and Safari
page.headerData.500 = TEXT
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="siteUrl/index.xml" />
page.headerData.500 = TEXT
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="siteUrl/index.xml" />
Setup:
# Generate RSS feed
#######################################
plugin.tt_news {
displayXML {
xmlTitle = Your-domain.com: Latest News
xmlLink = siteUrl
xmlDesc = {$plugin.tt_news.displayXML.xmlDesc}
xmlIcon = typo3conf/ext/tt_news/ext_icon.gif
}
}
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$plugin.tt_news.pid_list}
10.singlePid = {$plugin.tt_news.singlePid}
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
pid_list = 85
singlePid = 84
}
#Make rss-links readable
xmlnews.10 {
useHRDatesSingle = 1
dontUseBackPid = 1
useHRDates = 1
useHRDatesSingleWithoutDay = 1
}
#######################################
plugin.tt_news {
displayXML {
xmlTitle = Your-domain.com: Latest News
xmlLink = siteUrl
xmlDesc = {$plugin.tt_news.displayXML.xmlDesc}
xmlIcon = typo3conf/ext/tt_news/ext_icon.gif
}
}
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$plugin.tt_news.pid_list}
10.singlePid = {$plugin.tt_news.singlePid}
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
pid_list = 85
singlePid = 84
}
#Make rss-links readable
xmlnews.10 {
useHRDatesSingle = 1
dontUseBackPid = 1
useHRDates = 1
useHRDatesSingleWithoutDay = 1
}
Greg
----
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990
I got the rss feed to work. There are still some bugs that may need to be addressed, but for the most part, this works for one type of rss feed (rss2.0), but can be modifed to work as rss, rss091, rss2, rdf, atom1, or atom2. Here is how I did it:
1) Included the "News-feed (RSS, RDF, ATOM) (tt_news)" static extension (at end of list) to the "+Blog ext" template record of the "Blog" page.
2) Include the following typo-script into the plugin.tt_news { } object in the page "+Blog ext" template record of the "Blog" page:
plugin.tt_news {
....
displaySingle { .......
displayList { .....
# enable rss feeding, rss specific
#######################################
displayXML {
#rss091_tmplFile = EXT:tt_news/res/rss_0_91.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
rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
#possibile values: rss091 / rss2 / rdf / atom03 / atom1
xmlFormat = rss2
xmlTitle = rimamkt.com: Latest News
xmlLink = http://www.example.com/
xmlDesc = Latest News from ABC company
xmlLang = en
xmlIcon = fileadmin/tt_news_article.gif #Can modify this if you wish
title_stdWrap.htmlSpecialChars = 1
title_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.stripHtml = 1
subheader_stdWrap.htmlSpecialChars = 1
subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.crop = 100 | ... | 1
subheader_stdWrap.ifEmpty.field = bodytext
xmlLastBuildDate = 1
} #end displayXML
......
} # end plugin.tt_news
3) Next, we need to activate the proper display of a rss feed page i.e. typeNum = 100+. Right after the plugin.tt_news { } code, add:
# Create rss feed page object
#######################################
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = 269
10.singlePid = 273
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}
## Additional RSS 0.9 feed, RealURL activated!
rss091 = PAGE
rss091 < xmlnews
rss091 {
10.displayXML.xmlFormat = rss091
10.displayXML.xmlIcon = fileadmin/feed_icon_88x31.gif
typeNum = 101
}
## Additional RDF feed
rdffeed = PAGE
rdffeed < xmlnews
rdffeed {
10.displayXML.xmlFormat = rdf
typeNum = 102
}
## Additional Atom feed
atomfeed = PAGE
atomfeed < xmlnews
atomfeed {
10.displayXML.xmlFormat = atom1
typeNum = 103
}
4) And finally, we would like for browsers to display the RSS (orange) icon. Add the following right after the lines of code noted above:
# Include additional header data
#######################################
page.headerData.10 = TEXT
page.headerData.10.value (
<link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://www.example.com/blog/rss.xml">
)
**Note: what is interesting here is that we can use RealURL to activate the same page for a blog feed. For example, the example.com/blog/rss.xml URL will render example.com/index.php?id=6&type=100, same thing! the same goes for type=101, 102, and 103.
I have been able to successfully add the blog feed to 2 yahoo accounts with no problems while using this current configuration. Hope this helps others who may need this!
Here is the link below from my findings:
http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.0/view/1/7/#id2939753
1) Included the "News-feed (RSS, RDF, ATOM) (tt_news)" static extension (at end of list) to the "+Blog ext" template record of the "Blog" page.
2) Include the following typo-script into the plugin.tt_news { } object in the page "+Blog ext" template record of the "Blog" page:
plugin.tt_news {
....
displaySingle { .......
displayList { .....
# enable rss feeding, rss specific
#######################################
displayXML {
#rss091_tmplFile = EXT:tt_news/res/rss_0_91.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
rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
#possibile values: rss091 / rss2 / rdf / atom03 / atom1
xmlFormat = rss2
xmlTitle = rimamkt.com: Latest News
xmlLink = http://www.example.com/
xmlDesc = Latest News from ABC company
xmlLang = en
xmlIcon = fileadmin/tt_news_article.gif #Can modify this if you wish
title_stdWrap.htmlSpecialChars = 1
title_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.stripHtml = 1
subheader_stdWrap.htmlSpecialChars = 1
subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.crop = 100 | ... | 1
subheader_stdWrap.ifEmpty.field = bodytext
xmlLastBuildDate = 1
} #end displayXML
......
} # end plugin.tt_news
3) Next, we need to activate the proper display of a rss feed page i.e. typeNum = 100+. Right after the plugin.tt_news { } code, add:
# Create rss feed page object
#######################################
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = 269
10.singlePid = 273
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}
## Additional RSS 0.9 feed, RealURL activated!
rss091 = PAGE
rss091 < xmlnews
rss091 {
10.displayXML.xmlFormat = rss091
10.displayXML.xmlIcon = fileadmin/feed_icon_88x31.gif
typeNum = 101
}
## Additional RDF feed
rdffeed = PAGE
rdffeed < xmlnews
rdffeed {
10.displayXML.xmlFormat = rdf
typeNum = 102
}
## Additional Atom feed
atomfeed = PAGE
atomfeed < xmlnews
atomfeed {
10.displayXML.xmlFormat = atom1
typeNum = 103
}
4) And finally, we would like for browsers to display the RSS (orange) icon. Add the following right after the lines of code noted above:
# Include additional header data
#######################################
page.headerData.10 = TEXT
page.headerData.10.value (
<link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://www.example.com/blog/rss.xml">
)
**Note: what is interesting here is that we can use RealURL to activate the same page for a blog feed. For example, the example.com/blog/rss.xml URL will render example.com/index.php?id=6&type=100, same thing! the same goes for type=101, 102, and 103.
I have been able to successfully add the blog feed to 2 yahoo accounts with no problems while using this current configuration. Hope this helps others who may need this!
Here is the link below from my findings:
http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.0/view/1/7/#id2939753
Hey Gregg,
It would be nice to be able to provide rss feeds (via .xml file) for the timtab extension. Any ideas?
It would be nice to be able to provide rss feeds (via .xml file) for the timtab extension. Any ideas?
Sounds good, Greg!!!
Jens Gammelgaard
Optimon - www.optimon.dk
Skype: optimon
http://www.mediatech.net/typo3-partners.html
Jens Gammelgaard
Optimon - www.optimon.dk
Skype: optimon
http://www.mediatech.net/typo3-partners.html
Hi Sebastian,
Thank you. The templates started out as a way to teach myself CSS and TYPO3 in 2003 and they're still pretty simple to use. tt_news and TIMTAB are included in Zen Micro which gets released just as soon there is more free time or get another client project to sponsor it.
I'll send 3 beta versions of Zen Micro to subscribers of Zen Wireframe this weekend. You too Jens
Best,
Greg
---
Mediatech Consulting
web: http://www.mediatech.net . Skype: gremington
Phone: +1 (760) 525-1770 . Fax: +1 (760) 542-1990
Thank you. The templates started out as a way to teach myself CSS and TYPO3 in 2003 and they're still pretty simple to use. tt_news and TIMTAB are included in Zen Micro which gets released just as soon there is more free time or get another client project to sponsor it.
I'll send 3 beta versions of Zen Micro to subscribers of Zen Wireframe this weekend. You too Jens
Best,
Greg
---
Mediatech Consulting
web: http://www.mediatech.net . Skype: gremington
Phone: +1 (760) 525-1770 . Fax: +1 (760) 542-1990
Hi Greg,
you did a great job with the templates!
It would be cool to have tt_news implemented in the default-installation, as this extension is one of the most powerful and flexible ones. You can implement lots of features with just a few clicks.
The second thing would be a lightbox eg. Georg's smoothgallery for click-enlarge, as this is a bit more state of the art...
Please let me know, what you think!
Kind regards from UK,
Sebastian
you did a great job with the templates!
It would be cool to have tt_news implemented in the default-installation, as this extension is one of the most powerful and flexible ones. You can implement lots of features with just a few clicks.
The second thing would be a lightbox eg. Georg's smoothgallery for click-enlarge, as this is a bit more state of the art...
Please let me know, what you think!
Kind regards from UK,
Sebastian
I received an email from one of our subscribers requesting the addition of mc_googlesitemap for Zen Wireframe 2.0. If you think there needs to be other basic additions to make this product more useful for the standard small website project, please let me know.
The purpose of Zen Wireframe is to keep it as simple and tight as possible for kickstarting smaller commercial projects. As our project requirements grow then Zen Microsite Light, Pro, etc, may be more appropriate. If you have any requests for Zen Micro Light and larger project starters please post them here.
The success of Zen T3D binaries and templates are based on both client and subscriber input. Zen Wireframe 2.0 is the result of over 10 commercial projects. Your ideas, suggestions and input will help this product become the best that it can be for all of us using it for commercial projects.
Gregory Remington
Mediatech Consulting
web: http://www.mediatech.net . Skype: gremington
Phone: +1 (760) 525-1770 . Fax: +1 (760) 542-1990
The purpose of Zen Wireframe is to keep it as simple and tight as possible for kickstarting smaller commercial projects. As our project requirements grow then Zen Microsite Light, Pro, etc, may be more appropriate. If you have any requests for Zen Micro Light and larger project starters please post them here.
The success of Zen T3D binaries and templates are based on both client and subscriber input. Zen Wireframe 2.0 is the result of over 10 commercial projects. Your ideas, suggestions and input will help this product become the best that it can be for all of us using it for commercial projects.
Gregory Remington
Mediatech Consulting
web: http://www.mediatech.net . Skype: gremington
Phone: +1 (760) 525-1770 . Fax: +1 (760) 542-1990
Total Posts: 8 - Pages (1): [1]
CHC Forum provided by Cast Iron Coding