Skip to content

Commit

Permalink
Fix PR issues
Browse files Browse the repository at this point in the history
  • Loading branch information
anaelChardan committed Mar 13, 2017
1 parent 27ccf99 commit 551b6b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions cookbook/import_export/create-connector.rst
Expand Up @@ -151,7 +151,7 @@ We need to provide a form name to the frontend to be able to render it properly.
:linenos:
:lines: 1-6

If you want to go further, you can create your own form and re-use common parts provided by default. Here is an example of a full form configuration (config/form_extensions/acme_job_instance_csv_base_import.yml):
If you want to go further, you can create your own form and re-use common parts provided by default. Here is an example of a full form configuration :download: `Resources/config/form_extensions/acme_job_instance_csv_base_import.yml <../../src/Acme/Bundle/DummyConnectorBundle/Resources/config/form_extensions.yml>`:

.. literalinclude:: ../../src/Acme/Bundle/DummyConnectorBundle/Resources/config/form_extensions.yml
:language: yaml
Expand Down Expand Up @@ -186,13 +186,13 @@ First, you will have to create a controller (with a conform routing configuratio
}
}
Then configure a fetcher
Then configure a fetcher:

.. literalinclude:: ../../src/Acme/Bundle/DummyConnectorBundle/Resources/config/requirejs.yml
:language: yaml
:linenos:

The JS module itself
The JS module itself:

.. code-block:: javascript
Expand Down
Expand Up @@ -331,12 +331,12 @@ extensions:
# Resources/config/form_extensions/acme_job_instance_csv_base_import.yml

acme-job-instance-csv-base-import-show-properties-my-custom-list:
module: %THE_NAME_OF_YOUR_FECTHER%
module: "%THE_NAME_OF_YOUR_FECTHER%"
parent: acme-job-instance-csv-base-import-show-properties
position: 155
targetZone: global-settings
config:
fieldCode: configuration.myCustomList
readOnly: false
label: %your_label_translation_key%
tooltip: %your_tooltip_translation_key%
label: "%your_label_translation_key%"
tooltip: "%your_tooltip_translation_key%"
20 changes: 10 additions & 10 deletions src/Acme/Bundle/DummyConnectorBundle/Resources/config/requirejs.yml
@@ -1,13 +1,13 @@
# Resources/config/requirejs.yml

config:
paths:
%THE_NAME_OF_YOUR_FECTHER% : %the_path_of_your_fetcher% #For example -> mycustomfetcher: mycustombundle/js/my-custom-choices-list
config:
pim/fetcher-registry:
fetchers:
%THE_NAME_OF_YOUR_FECTHER% :
module: pim/base-fetcher
options:
urls:
list: %the_route_name_of_your_controller_action%
paths:
"%THE_NAME_OF_YOUR_FECTHER%" : "%the_path_of_your_fetcher%" #For example -> mycustomfetcher: mycustombundle/js/my-custom-choices-list
config:
pim/fetcher-registry:
fetchers:
"%THE_NAME_OF_YOUR_FECTHER%":
module: pim/base-fetcher
options:
urls:
list: "%the_route_name_of_your_controller_action%"

0 comments on commit 551b6b7

Please sign in to comment.