DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Installation¶
What does the FGC extension do? | Installation | Changelog
- Installation:
- Include the static typoscript “fgc” within your template
- copy the FLUID template from the extension to your fileadmin directory
- set the corresponding path in the constants [plugin.tx_fgc.view.templateRootPath]
Plugin configuration:
Fields | Description | Possible values | default |
---|---|---|---|
Protocol | The protocol | http/https | http |
URL | Main URL | www.domain.com | |
DOM Selector | jQuery syntax | h1.header | |
Key | Array key | 0-99, -1 (last) | |
HSC | Htmlspecialchars | 1 | |
Scheduler | Get content from Scheduler | 0 |
- Example for selectors:
- h1#myid .class
- http://simplehtmldom.sourceforge.net/manual.htm#section_find
Task: When using the "scheduler task", it is best practice to check the configuration in the plugin before, as you'll get a direct response!
Use your email address in the "scheduler task" to let "fgc" send you an infomail with the contents afterwards.
The PID field connects your fgc-grabbing with the page you'll need it for. So that you can use distinctive grabbings for different pages. The plugin itself searches for PID "0" when no PID has been given in the task. The queries are timestamp sorted.
Task configuration:
Fields | Description | Possible values | default |
---|---|---|---|
Protocol | The protocol | http/https | http |
URL | Main URL | www.domain.com | |
DOM Selector | jQuery syntax | h1.header | |
Key | Array key | 0-99, -1 (last) | |
HSC | Htmlspecialchars | (bool) | 1 |
Storage PID | Save content in this page id | (int) | 0 |
Infomail | Send content to this mail | Email address |