To get the hang of using XPath mappings, it’s always best to create a new importer as a sandbox rather than editing an existing feed type (and potentially losing XPath mappings).įor more on using XPath, see the RC Language Guide. The process of setting up an importer seems rather intimidating, but through a bit of trial and error you’ll soon get how it works. Manage display - controls the UI of the importer, which would be useful for periodic imports and the like.Manage form display - simply configures how information about the importer itself is captured in the database and displayed.Manage fields - can be used to add a new field to the import.Each target label is listed alongside its XPath mapping. Custom sources - this is an extremely useful tab that displays all your XPath configurations in a single place and allows you to edit them.You can also use this functionality to, for instance, force the importer to import content with a specific node as parent content (as is necessary, for example, when importing mapping data). An example of a simple tamper used on most importers is a filter to enforce contextual links, stripping the base domain from all imported RC links to set it up, simply add the “Find replace” plugin, set it to find, and leave the replacement field blank (which will simply delete the “found” text). Simply select “Add plugin” under the appropriate mapping target. Tamper - for each mapping target, you can set a “tamper” from this page that will alter or change the behavior of the imported content.To configure XPath sources, you’ll likely need the RC Language Guide. Under configuration, you can tell the parser to treat a field’s value as unique (the title will always be unique) set how to reference, or “tie together,” fields (usually by Title) and set whether entities should be autocreated (which could be useful if importing taxonomy terms, for instance). For new sources, you’ll need to “Configure new XML XPath source” this is how the parser knows how to find a piece of content by an XML/HTML tag within the imported document. For each target field, you can configure a “Source” from the imported file(s). Set a “Context” for the base query, then select a “Target” field (the choice of fields is determined by the set content type). Mapping - controls the behavior of the parser via Xpath.Under “Processor settings,” almost certainly you’ll want to “Insert new content items” and to “Update existing content items.” Under “Fetcher Settings,” ensure you set the importer to accept the type of file you’re importing and, if appropriate, point it to the right upload directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |