PHPackages                             blueways/bw-cache-uri - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. blueways/bw-cache-uri

ActiveTypo3-cms-extension[Parsing &amp; Serialization](/categories/parsing)

blueways/bw-cache-uri
=====================

TYPO3 extension to parse remote content and save to tt\_content element

v1.1.6(2y ago)0397MITPHP

Since Oct 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/maikschneider/bw_cache_uri)[ Packagist](https://packagist.org/packages/blueways/bw-cache-uri)[ RSS](/packages/blueways-bw-cache-uri/feed)WikiDiscussions development Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (10)Used By (0)

DOM Downloader
==============

[](#dom-downloader)

This TYPO3 extension extends the tt\_content element `HTML` for the functionality of loading and postprocessing remote content.

[![Example Image](https://camo.githubusercontent.com/0fd2b637e032f7f9d2e4886daaf516d5fc7af69f0aa28b066918a0d0a6426983/68747470733a2f2f6269746275636b65742e6f72672f626c7565776179732f62775f63616368655f7572692f7261772f6d61737465722f446f63756d656e746174696f6e2f496d616765732f6578616d706c65312e6a7067)](https://camo.githubusercontent.com/0fd2b637e032f7f9d2e4886daaf516d5fc7af69f0aa28b066918a0d0a6426983/68747470733a2f2f6269746275636b65742e6f72672f626c7565776179732f62775f63616368655f7572692f7261772f6d61737465722f446f63756d656e746174696f6e2f496d616765732f6578616d706c65312e6a7067)

Features
--------

[](#features)

- Load and save remote content from URL
- Filter saved DOM with [CSS selectors](https://symfony.com/doc/current/components/css_selector.html)
- Manipulate the content with custom post-processors (e.g. stripe tags, add wrap,..)
- Options for processors via TypoScript
- Scheduler task to refresh content

Install
-------

[](#install)

1. Install via composer

```
composer require blueways/bw-cache-uri
```

2. Include TypoScript template

Usage
-----

[](#usage)

Just create a new HTML-Content Element and add any URL in the parsing options. After saving, the remote content is fetched, processed and saved.

Scheduler
---------

[](#scheduler)

The DOM Downloader task will refresh the bodytext of all tt\_content elements that have a parsing uri set.

Post Processor
--------------

[](#post-processor)

After receiving the remote content, custom post processors can be applied to transform the content, e.g. to wrap or remove text. To register a new processor, add the following TypoScript:

```
plugin.tx_bwcacheuri.settings.postProcessors {
    Vendor\YourExt\Processor\MyFancyProcessor {
        label = Name in select box
        options {
            custom_setting = 2,4
            allowed_tags =
        }
    }
}

```

Your processor class must implement the **PostProcessorInterface**:

```
