Skip to content

Commit

Permalink
Merge pull request #1 from kohld/feature/nullable-relations
Browse files Browse the repository at this point in the history
Feature: Nullable relations and README adjustments
  • Loading branch information
christophluehr authored Oct 8, 2020
2 parents 42c9bc3 + a97fefd commit 470e955
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 63 deletions.
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,27 @@ to stdout, a file or an pimcore asset.

If enabled, exports can be made available via a REST API, too.

Table of contents
=================

<!--ts-->
* [Basilicom Xml Tool bundle for Pimcore](#basilicom-xml-tool-bundle-for-pimcore)
* [License](#license)
* [Requirements](#requirements)
* [Installation](#installation)
* [Configuration](#configuration)
* [Console Usage](#console-usage)
* [Usage: REST API](#usage-rest-api)
* [Limitations](#limitations)
<!--te-->

## License

GPLv3 - see: LICENSE

## Requirements

* PHP >= 7.1
* Pimcore >= 5.0.0
* XSL PHP extension for --xslt option support

Expand All @@ -38,11 +53,11 @@ the Object tree, example for path ```/foo```:

Example output:

Note: The Object tree ```/``` contains in the example a single Object of
Note: The Object tree ```/foo``` contains in the example a single Object of
the Object Class ```Bar``` with a single Input property of ```name```.

```
Exporting tree of Objects starting at /
Exporting tree of Objects starting at /foo
<?xml version="1.0"?>
<root id="1" type="folder" key="" class="Folder">
<:children>
Expand Down Expand Up @@ -101,8 +116,8 @@ basilicom_xml_tool:
endpoints:
test1:
token: secrettoken0815
root: Products
path: /export/products
root: Products # Root name of the exported XML file
path: /export/products # Path to the exporting objects
xslt: ../sample.xsl
include_variants: true
omit_relation_object_fields: true
Expand All @@ -126,8 +141,11 @@ Only a few field types are supported for now:
* date
* datetime
* ManyToManyObjectRelation
* color
* rgbaColor
* localizedFields
To extend the supported types, implement a
```getForType*``` method in ```ExportCommand.php```.
```getForType*``` method in ```Service/Xml.php```.


Loading

0 comments on commit 470e955

Please sign in to comment.