User tests: Successful: Unsuccessful:
Pull Request resolves #47757
This is the same PR as #47758 just against 6.2 instead of 5.4
Modified the featured feed view to respect the Show Intro Text article parameter when Include in Feed = Full Text is selected.
File changed: components/com_content/views/featured/FeedView.php (line 82)
Before:
$description .= ($params->get('feed_summary', 0) ? $row->introtext . $row->fulltext : $row->introtext);After:
$description .= $row->params->get('show_intro', 1) ? $row->introtext : '';
$description .= $params->get('feed_summary', 0) ? $row->fulltext : '';Previously, the featured 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 featured articles with Read More
Step 3: Create a Featured Articles menu item
Step 4: Access the RSS feed
Use the URL of your featured articles menu item with feed parameters:
http://localhost/featured-feed-test?format=feed&type=rss
Or use the direct route:
http://localhost/index.php?option=com_content&view=featured&format=feed&type=rss
Step 5: Observe the feed output
Look at the <description> tag of your featured articles in the feed.
<description><![CDATA[<div class="feed-description"><p>AA1</p>
<p>BB1</p></div>]]></description>Both intro text (AA1) and full text (BB1) appear, even though Show Intro Text = Hide is selected.
<description><![CDATA[<div class="feed-description"><p>BB1</p></div>]]></description>Only the full text (BB1) appears. The intro text (AA1) is correctly hidden.
Please select:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content |