Setting Up Standard ANS Block with Outbound Feeds
The standard ANS block is an out-of-the-box template that uses no custom fields to quickly and easily set up, configure and manage your feed.
Feed Setup
The ANS Article feed returns a single JSON object using either the items _id
or website_url
. It shares the standard ANS feed template, but uses two new resolvers, one for _id
and one for website_url
.
Steps to configure the standard ANS feed if one does not already exist.
ANS Configuration
The ANS feed has no customFields to configure.
Resolver Configuration
Each feed template needs to have a resolver applied, but can have multiple resolvers. To Create A Resolver, you’ll want to configure these fields. This will document creating two resolvers, one for searching by _id
and a second one to search by website_url
. Where values differ between the two resolvers, they will be called out with 1 for _id
and 2 for website_url
.
1. Resolver Name
- Article by
_id
- Article by
website_url
2. Resolver Priority
- Article by
_id
: 10 - Article by
website_url
: 9
3. Regex Pattern
^/arc/outboundfeeds/article/$
^/arc/outboundfeeds/article(/.*/)$
4. URL Parameters
-
Add a required
_id
parameter. Note_id
is an approved parameter. Only use Approved Parameters. -
For
website_url
do not add any parameters. If you try to pass thewebsite_url
in a parameter it will get URL encoded and not work correctly.
5. Websites
all
6. Content Source
single-content
7. Patterns
-
For
_id
add the_id
parameter. -
For
website_url
add the first pattern towebsite_url
.
8. Default Template
Select the ANS template you just created to use with this resolver.
9. Default output type
Select json
.
10. Content Mapped Template
blank
ANS URL
To preview your ANS json, modify the URL below with the your client org and website name.
https://Outboundfeeds.CLIENTORG.Arcpublishing.Com/Pf/Arc/Outboundfeeds/Artilce/?_website=CLIENTWEBSITE&_id=CONTENT_ID
https://Outboundfeeds.CLIENTORG.Arcpublishing.Com/Pf/Arc/Outboundfeeds/Artilce/Url/?_website=CLIENTWEBSITE
Additional Information
- Steps to create and manage Outbound Feeds.
- Optional Content Sources For OBF.
- More details on Resolvers.
- Regex Debugger.