How pipes work
A pipe is one import job. It reads a source, changes what it read, and saves the result into Joomla. Every pipe has three kinds of parts.
Engine: where the content comes from
The engine connects to the source and returns a list of items. Each item has output fields, shown in the pipe editor as Engine Output [oe]. The RSS Reader engine, for example, gives every feed item the fields title, link, description, content, author, date, category and enclosures.
A pipe has exactly one engine. See the list of engines.
Processors: what happens to each item
Processors take one or more fields of the item as input, do one job, and add new output fields to the item. For example:
- Get Fulltext takes the item's
link, opens the page and outputsfulltext. - Get Images takes that
fulltext, saves the images on your server and outputsimagesand thehtmlwith the new image addresses. - Strip Tags takes the
htmland outputs it without the tags you named.
Processors run in the order you list them, and each one can use the outputs of the processors above it. A pipe can have no processor, or many. Some processors are filters: Keywords Filter and Duplicate stop an item, so it is not saved.
See Processors.
Adapter: where the content goes
The adapter saves each item into Joomla or another extension. It has input fields, shown as Adapter Input [ia]: for Joomla articles these are title, alias, introtext, fulltext, images, tags, publish_up and more, plus your article custom fields.
You fill each adapter field by mapping it to an engine field or a processor output. Fields you don't map stay empty or get Joomla's default. See Field mapping.
A pipe has exactly one adapter.
What happens when a pipe runs
- The engine reads the source and stores the items it found.
- For each item, the processors run in order. If a filter stops the item, it is skipped.
- The adapter checks whether the item already exists, by title, alias or another field. It then skips it, updates it, or creates a duplicate, as you set it.
- The adapter saves the new item.
- The run is written to the log.
A pipe runs when you click Manual Post, or when the schedule says it is due.
Example
| Step | Part | Result |
|---|---|---|
| 1 | RSSReader engine | 20 feed items with title, link, description |
| 2 | Get Fulltext on link |
fulltext with the whole article |
| 3 | Get Images on fulltext |
Images saved under images/joomgrabber, new html |
| 4 | Keywords Filter on html |
12 items left |
| 5 | Content adapter | 12 articles: title ← title, introtext ← description, fulltext ← Get Images html |