Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Other TYPO3 Extensions > News Extention ~ Subscriptions?
Total Posts: 20 - Pages (2): [1] 2
user picture Author: Mary Beth Maidment
Posted: Jan 30 2008 - 03:53 PM
Subject: News Extention ~ Subscriptions?
msn
I have been under the impression from conversations I've had with various people, that it is possible to set up the tt news extension so that users may subscribe to it.

I haven't seen any documentation on how to set this up, however, and haven't seen anything in the plug-in itself to that effect.

If this usability IS possible, would someone please direct me to documentation for it?

Thank you!
user picture Author: Christoph Koehler
Posted: Jan 31 2008 - 05:19 PM
Subject: re: News Extention ~ Subscriptions?
Mary Beth,

They section in the manual is called "XML feeds from tt_news," they are also called RSS feeds. Here's the link to the manual:
http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.0/view/1/7/#id2939753

Hope that helps!

Christoph
user picture Author: Mary Beth Maidment
Posted: Feb 01 2008 - 04:10 PM
Subject: re: News Extention ~ Subscriptions?
msn
Thank you...that is helpful...

I've tried setting the XML Format to rss091 and rss2... and each time I get an error
message in IE that says "This feed contains a DTD (Document Type Definition). DTDs are used to define a structure of a webpage. Internet Explorer does not support DTDs in feeds." when I try to subscribe via the RSS button...

Any ideas?
user picture Author: Christoph Koehler
Posted: Feb 02 2008 - 10:23 AM
Subject: re: News Extention ~ Subscriptions?
Mary Beth,

This is the TS setup for one of the sites I set up. There is probably some stuff in there you don't need, but it may help as an example. The feed works in IE7. The relevant stuff seems to be in the 'config' section.

CODE:

plugin.tt_news {
   pid_list = 65
   singlePid = 63
   dontUseBackPid = 1
   backPid = 58
   useHRDates = 1
   archiveTypoLink.parameter = 62
   templateFile = fileadmin/templates/tt_news/bsu_news.html
   displayXML {
     rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
     xmlFormat = rss2
     xmlTitle = BSU @ OU : Announcements
     xmlLink = http://www.oubsu.org
     xmlDesc = Announcements from the Baptist Student Union @ OU
     xmlLang = en
     #xmlIcon = fileadmin/unicc/images/rss.jpg
     xmlLimit = 100
     xmlCaching = 0
     
     
     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
   }
}
   ## This enables the xml news feed
   xmlnews = PAGE
   xmlnews {
     typeNum = 100
     10 < plugin.tt_news
     10.pid_list >
     10.pid_list =  65
     10.singlePid = 63
     10.categorySelection = 2
     10.categoryMode = 1
     10.defaultCode = XML
      config {
        disableAllHeaderCode = 1
        additionalHeaders = Content-type:application/xml
        xhtml_cleaning = 0
        admPanel = 0
     }
   }


Christoph
user picture Author: Mary Beth Maidment
Posted: Feb 04 2008 - 12:27 PM
Subject: re: News Extention ~ Subscriptions?
msn
I saw similar TS in the Extension manual (link you previously provided, pg 70) and I inserted that in the page typoScript (page properties). Am wondering if there is a better place to put it e.g. Constant Editor? or edit in TypoScript Object Browser?

It's not really clear to me WHERE this type of code should be put...

Am also looking at specific lines in your code such as :
templateFile = fileadmin/templates/tt_news/bsu_news.html - is this a file/folder you created?
#xmlIcon = fileadmin/unicc/images/rss.jpg - Is this an image you created?

I have looked through the files for tt_news in the Extension Manager... and I don't find any icons for the rss.jpg...

I am wondering if we need to create some kind of xml file separately from the tt_news plugin so that the rss feed will work? (i.e. similar to what we do for podcast?) If so, then what's the point of using the tt_news plugin?




user picture Author: Christoph Koehler
Posted: Feb 04 2008 - 01:53 PM
Subject: re: News Extention ~ Subscriptions?
Mary Beth,

It should go into the site's root page, into the TS Setup inside the template on that page.

The templateFile I am using is simply the tt_news template I was using for the site. You can omit that and it should use the default one, or point it to your changed template if you have one. Same for the icon, don't think you need it, it would just show up empty if it didn't exist.

Make sure you also include the static templates on the root page template for the tt_news RSS stuff. You shouldn't have to create any XML files.

Let me know if that helped. I could also take a look myself if you wanted to create an admin account and email it to me. My email is in my forum profile.


Christoph
user picture Author: Mary Beth Maidment
Posted: Feb 04 2008 - 02:40 PM
Subject: re: News Extention ~ Subscriptions?
msn
Thank you... I will try this ... as soon as our server is back up... we've had some attacks lately and the server is being 'worked on'... will keep you posted.
user picture Author: Mary Beth Maidment
Posted: Feb 08 2008 - 01:07 PM
Subject: re: News Extention ~ Subscriptions?
msn
Okay... I've tried this and still am having issues with the DTD message... also I can't seem to locate the proper xml file to link to (referenced in the script)... I sent email to you, Christoph...with passwords etc. Please let me know if you received it....
user picture Author: Mary Beth Maidment
Posted: Feb 08 2008 - 05:22 PM
Subject: re: News Extention ~ Subscriptions?
msn
Okay... I've tried this and still am having issues with the DTD message... also I can't seem to locate the proper xml file to link to (referenced in the script)... I sent email to you, Christoph...with passwords etc. Please let me know if you received it....
user picture Author: Christoph Koehler
Posted: Feb 10 2008 - 10:56 PM
Subject: re: News Extention ~ Subscriptions?
Mary Beth,

I did, just haven't had a chance to look at it. Will take a look tomorrow and let you know!

Christoph
Total Posts: 20 - Pages (2): [1] 2
You must login to post a message to this conference.