From 6cb4bf26958141d132a570b343f6920a96333443 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Fri, 2 Nov 2018 11:41:31 +1100 Subject: [PATCH] Update configuration.md --- docs/get-started/configuration.md | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/docs/get-started/configuration.md b/docs/get-started/configuration.md index 01d31016..ee8c2e9b 100644 --- a/docs/get-started/configuration.md +++ b/docs/get-started/configuration.md @@ -1,30 +1,6 @@ # Configuration -Feed Me allows you to provide additional options through a configuration file. Create a file named `feedme.php` in your `craft/config` directory. As with any configuration option, this supports multi-environment options. - -```php -return array( - '*' => array( - 'curlOptions' => array( - CURLOPT_PROXY => 'username:password', - ), - 'checkExistingFieldData' => false, - 'skipUpdateFieldHandle' => 'skipFeedMeUpdate', - 'backupLimit' => 100, - ), -); -``` - -### Configuration options - -- `curlOptions` - an array of options for cURL when fetching your feed data. -- `checkExistingFieldData` - a boolean whether to compare against an existing element (if any) and each field's content. If your feed content and the existing field's content match exactly, Feed Me won't overwrite the existing content. This can be useful to enable for performance. -- `skipUpdateFieldHandle` - a custom field (preferably Lightswitch) to allow you to opt-out of updating elements. If switched on for an element, Feed Me will skip over updating it, but update other elements in the feed. -- `backupLimit` - when backup is switched on for a feed, you can set a limit for the number to keep. This will ensure your backups don't get out of control on your server. By default, this is set to 100. - -### Feed Me 3.x.x - -Configuration options are slightly different for Feed Me 3.x.x. Create a file named `feed-me.php` in your `config` directory. +Create a file named `feed-me.php` in your `config` directory. ```php return [ @@ -49,4 +25,4 @@ return [ 'dataDelimeter' => '|', ], ]; -``` \ No newline at end of file +```