![]() ![]() Next, create the content type(s) on the destination. Once you have confirmed that your XML service is working correctly, you can switch to the destination. ![]() You can see the output as xml by going to, as json by going to, etc. When editing the field, set up a custom value key with the name you want to use for this value in the xml field, keeping in mind that you want to be sure that each value is unique in the feed. Then add each field that you want to move to the Destination to the list of fields in the display. On the Services display, use the style option to create an unformatted list of fields. Instead of creating a page display, create a ‘Services’ display. Ĭreate a view of the content you want to syndicate. The Rest Server requires that you add spyc.php to sites/all/modules/services/server/lib. Set up Services on the SourceĮnable the following modules on the source site: ![]() If the content needs to have references to other content, use the EntityReference module to create the reference fields (). Modules needed on the Sourceįirst, create the content type(s) and content on the source. The Destination will consume the content using Feeds. The Source will share its content using Services and Services Views. One of them contains content that can be shared (we call that the ‘Source’) and the other needs to consume that content (we call this the ‘Destination’). In this recipe we have two different Drupal sites. Services and Feeds are two very powerful and interesting modules, but sometimes they can be confusing to configure, and a step-by-step illustration may make it more clear. Those who aren’t trying to solve this particular problem may still find it interesting to see an example of how to configure and use Services, Views, and Feeds together. The result is a general recipe that we hope will be widely useful, rather than an exact description of the way they ended up using these tools. We made the example a little more generic, so it would apply to other situations, and focused on ways that you can accomplish this without code. Highlights wanted to share the recipe for doing this with the community, and I pulled the details together into this article. The idea of solving this problem using Services and Feeds was a good fit for their requirements, so we worked through the details of how to get this accomplished. They are building a suite of Drupal sites that need a way to consume content from a central Drupal source. The development team at Highlights for Children is diving into Drupal in a big way, and Lullabot has been helping them. But it’s also possible to do this using Services and Views on the content source and Feeds on the consuming sites. There are several ways to set a system like that up, perhaps using the Migrate or Deploy modules. I have run into a number of clients that want to create a system to syndicate content to multiple sites. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |