Project

General

Profile

Actions

Bug #37246

closed

<link> tags in RSS feeds destroyed on cached pages

Added by Tobias Klepp over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2012-05-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I created an extension plugin, that produce a RSS feed output. My extension has 2 plugins with the same output. One plugin is from type USER and the other from type USER_INT. If I use the plugin with cache, the RSS feed output is invalid, because the <link> tags are broken. The code changes from <link>http://www.typo3.org&lt;/link> to <link />http://www.typo3.org&lt;/link&gt;. The link tag is closed in the first tag. The output was changed by the system caching mechanism. My plugin definitely produce the same output.

This is my TypoScript setup for the RSS feed page:

# define rss page type
rss = PAGE
rss.typeNum = 444
rss.config.disableAllHeaderCode = 1
rss.config.additionalHeaders = Content-type:text/xml

# configurate template
rss.1 = TEMPLATE
rss.1 {

  # include xml template
  template = FILE
  template.file = fileadmin/design1/templates/template_rss.xml

  # define work subpart
  workOnSubpart = DOCUMENT_BODY

  subparts.CONTENT < styles.content.get
}

# content configuartion
tt_content.stdWrap.innerWrap >
config.admPanel = 0

The template_rss.xml look linke this:

<!-- ###DOCUMENT_BODY### start --><?xml version="1.0" encoding="utf-8"?>
<!-- ###CONTENT### start -->
<!-- ###CONTENT### stop -->
<!-- ###DOCUMENT_BODY### stop -->

Files

T3X_ams_xmltest-0_0_0-z-201207191604.t3x (6.79 KB) T3X_ams_xmltest-0_0_0-z-201207191604.t3x XML test output extension Tobias Klepp, 2012-07-19 16:07
Actions

Also available in: Atom PDF