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.
See How to set up and configure an Outbound Feed 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 must configure the fields on this section. This section details the fields to create 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
_idparameter. Note_idis an approved parameter. Only use approved URL parameters.
-
For
website_urldo not add any parameters. If you try to pass thewebsite_urlin a parameter it will get URL encoded and not work correctly.
5. Websites
all
6. Content Source
single-content
7. Patterns
-
For
_idadd the_idparameter.
-
For
website_urladd 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}