User tests: Successful: Unsuccessful:
Pull Request resolves #41445
This is the same PR as #47756 just against 6.2 instead of 5.4
Modified the category feed view to respect the Show Intro Text article parameter when Include in Feed = Full Text is selected.
File changed: components/com_content/views/category/FeedView.php (line 60)
Before:
$item->description .= ($params->get('feed_summary', 0) ? $item->introtext . $item->fulltext : $item->introtext);After:
$item->description .= $item->params->get('show_intro', 1) ? $item->introtext : '';
$item->description .= $params->get('feed_summary', 0) ? $item->fulltext : '';Previously, the feed ignored the Show Intro Text = Hide setting and always included intro text when Full Text was selected. Now the feed checks the article's show_intro parameter and only includes intro text when it is set to Show.
Prerequisites:
Step 1: Configure Article Options
Step 2: Create an article with Read More
Step 3: Access the RSS feed
Use the URL of your category blog menu item with feed parameters, for example:
http://localhost/your-category-alias?format=feed&type=rss
Or use the direct route:
http://localhost/index.php?option=com_content&view=category&id=YOUR_CATEGORY_ID&format=feed&type=rss
Step 4: Observe the feed output
Look at the <description> tag of your article in the feed.
<description><![CDATA[<p>AA</p>
<p>BB</p>]]></description>Both intro text (AA) and full text (BB) appear, even though Show Intro Text = Hide is selected.
<description><![CDATA[<p>BB</p>]]></description>Only the full text (BB) appears. The intro text (AA) is correctly hidden.
Please select:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content |
My interpretation from the help/documentation that it should be either Intro Text or Full Text and not Intro Text concatenate with Full Text or Intro Text as it is now. Therefore, the Intro Text setting to Hide or Show should not be considered in the feed.
Include in Feed.
- Intro Text: Only the article's intro text will show in the feed.
- Full Text: The entire text of the article will show in the feed.
My interpretation from the help/documentation that it should be either
Intro TextorFull Textand notIntro Textconcatenate withFull TextorIntro Textas it is now. Therefore, theIntro Textsetting toHideorShowshould not be considered in the feed.