FeedLinks-Talk
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Comments
Transferred from the recipe's page when it was refactored:
Version 0.2Δ updates:
If you want to use pagefeed.php, set
$EnablePageLink = 1; # 1 = write the link, default is 0 = don't write the link.
before you include
include_once("$FarmD/cookbook/feedlinks.php");
in your config.php
You can now use $FeedLinkUrlVariables in config.php to extend the url.
Set this before you include the feedlinks.php.
I use par example
$FeedLinkUrlVariables = '&setlang=$Lang&FFVersion=8';
The href of pagelink does not use the $FeedLinkSourcePath. It is fixed to $Group/$Name.
The $FeedLinkTitleGroup used in the title= defaults to ' : $Group/$Name -'
Transferred from the recipe's page when it was refactored:
SteP 2009-09-14: I think the code needs changing to support setting feed source and title on a per-group basis. Replace these two lines
$FeedLinkSourcePath = '$[$Group/RecentChanges]'; $FeedLinkTitleGroup = ' : $[$Group] -';
with
SDV($FeedLinkSourcePath, '$[$Group/RecentChanges]'); SDV($FeedLinkTitleGroup, ' : $[$Group] -');
Unfortunately, this causes the run-multiple-times feature to break!
But there is a solution that lets you do both (set-per-group and run-multiple-times); I've uploaded a version with that fix (v0.1).
Said Achmiz November 04, 2017, at 01:38 AM
Enhancement request: It would be nice to be able to specify more than one feed in $FeedLinkSourcePath!
--Tom, 18-Mar-2006
Tom, Try the new version, which you can run more than once. Just change the variable(s) in between.
## Enable the feedlinks recipe; Site.AllRecentChanges and Main.AllRecentchanges feeds ## "autodiscovery" of the site's Atom and/or RSS web feeds. include("$FarmD/cookbook/feedlinks.php"); $FeedLinkSourcePath = 'Main/AllRecentChanges'; include("$FarmD/cookbook/feedlinks.php");
It's also easy to have both site-wide and by-group links now.
## Enable the feedlinks recipe, which adds HTML header links that enable ## "autodiscovery" of the site's Atom and/or RSS web feeds. include("$FarmD/cookbook/feedlinks.php"); # Site-wide $EnableSitewideFeed = 0; include("$FarmD/cookbook/feedlinks.php"); # Per-group
--Hagan 2006-03-19