Setting Up a 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 standard ANS feed is a platform level Arc XP feed block with configurable and customizable parameters.
Steps to configure the standard ANS feed.
ANS Configuration
The ANS feed has no customFields to configure.
Resolver Configuration
Each feed template needs to have a resolver applied. To Create A Resolver, you’ll want to configure these fields.
1. Resolver Name
Unique name given to the resolver
2. Resolver Priority
Number to indicate priority order (1 to 100). Lower numbers are evaluated first.
3. Regex Pattern
^/arc/outboundfeeds/ans/?$|^/arc/outboundfeeds/ans/category/(.*)/?$|^/arc/outboundfeeds/ans/author/(.*)/?$|^/arc/outboundfeeds/ans/keyword/(.*)/?$|^/arc/outboundfeeds/ans/tags/(.*)/?$|^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
4. URL Parameters
You can add optional parameters like from, size, etc.
5. Websites
all
6. Content Source
feeds-content-api
There are additional content sources available out-of-the-box, details here.
7. Patterns
These positions come from the regex pattern. There are a number of ways to pass a section (or author, keyword or tag) to the content source from the resolver. All of them use a grouping () in the regex.
Section - Pattern 1
^/arc/outboundfeeds/ans/?$|^/arc/outboundfeeds/ans/category/(.*)/?$|^/arc/outboundfeeds/ans/author/(.*)/?$|^/arc/outboundfeeds/ans/keyword/(.*)/?$|^/arc/outboundfeeds/ans/tags/(.*)/?$|^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
Author - Pattern 2
^/arc/outboundfeeds/ans/?$|^/arc/outboundfeeds/ans/category/(.*)/?$|^/arc/outboundfeeds/ans/author/(.*)/?$|^/arc/outboundfeeds/ans/keyword/(.*)/?$|^/arc/outboundfeeds/ans/tags/(.*)/?$|^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
Keywords - Pattern 3
^/arc/outboundfeeds/ans/?$|^/arc/outboundfeeds/ans/category/(.*)/?$|^/arc/outboundfeeds/ans/author/(.*)/?$|^/arc/outboundfeeds/ans/keyword/(.*)/?$|^/arc/outboundfeeds/ans/tags/(.*)/?$|^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
Tags - Text - Pattern 4
^/arc/outboundfeeds/ans/?$|^/arc/outboundfeeds/ans/category/(.*)/?$|^/arc/outboundfeeds/ans/author/(.*)/?$|^/arc/outboundfeeds/ans/keyword/(.*)/?$|^/arc/outboundfeeds/ans/tags/(.*)/?$|^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
Tags - Slug - Pattern 5
^/arc/outboundfeeds/ans/?$|^/arc/outboundfeeds/ans/category/(.*)/?$|^/arc/outboundfeeds/ans/author/(.*)/?$|^/arc/outboundfeeds/ans/keyword/(.*)/?$|^/arc/outboundfeeds/ans/tags/(.*)/?$|^/arc/outboundfeeds/ans/tags_slug/(.*)/?$
Include - Terms - Modify the query used by the content source. More information on queries can be found here.
Exclude - Terms - Modify the query used by the content source. More information on queries can be found here.
Exclude - Sections - A comma separated list of sections to exclude. For example premium,/paid-content
Feed - Size - Integer 1 to 100. Defaults to 100
. If you added a size URL parameter, select the parameter option and select size and enter a default value.
Feed - Offset - Integer. Defaults to 0
. If you added a from URL parameter, select the parameter option and select from and enter a default value.
Sort - last_updated_date:desc
If left blank it will default to publish_date:desc
. The format is date_field
+ :
+ sort order
(desc
or asc
). Valid date fields are created_date
, display_date
, first_publish_date
, last_updated_date
, or publish_date
.
Source-Exclude - A comma separated list of ANS fields to remove from the default list of ANS fields. See the default list here
Source-Include - A comma separated list of ANS fields to add to the default list of ANS fields. See the default list here
Include - Distributor - Name
If you only want content from a single distributor, enter the name here. You may only populate one distributor field.
Exclude - Distributor - Name
If you want to exclude content from a single distributor, enter the name here. You may only populate one distributor field.
Include - Distributor - Category
If you only want content from a single distributor category, enter the name here. You may only populate one distributor field.
Exclude - Distributor - Category
If you want to exclude content from a single distributor category, enter the name here. You may only populate one distributor field.
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/ans/?_website=CLIENTWEBSITE NAME
Additional Information
- Steps to create and manage Outbound Feeds.
- Optional Content Sources For OBF.
- More details on Resolvers.
- Regex Debugger.