Views
The standard views will give you nice and neat RSS and Atom feeds.
Customising views
But if you want to customise the output, you can publish the views, and Feedamic will use yours instead:
1php artisan vendor:publish --tag=feedamic-views
These will publish to your resources/views/vendor/mitydigital/feedamic
folder.
Feedamic's views are all written in Blade, not Antlers.
Feed-specific views
You can also create additional custom views for use with specific feeds since v2.3.
The simplest way is to:
Create a template in a views subfolder (such as
/resources/views/feeds/your_feed_name_rss.blade.php
)To start, publish the views (see above), or get the source from
/vendor/mitydigital/feedamic/resources/views/
, and copy this in to your template and change as you need.Update your Feedamic Configuration, updating the
view
property for your feed.
Adding new fields
Feedamic has its own model for each Entry that gets included in the Blade templates.
One of the properties is entry
: this gives you access to Statamic's entry
model, and you can access any of your Blueprint's fields - let's say you have a field with the handle "company":
1$entry->entry->company