Skip to content

Commit

Permalink
Fix refernce bundle paragraph spaces (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed May 22, 2024
1 parent ef86dac commit beb04cc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bundles/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ and location in which an entity is utilized. Presently, the ReferenceBundle is c
Media within PHPCR entities such as `pages` and `snippets`. These references are managed distinctly for the draft
state within the `admin context` and the live state within the `website context`.

|
The main reason we need this bundle is that, unlike traditional database references, our content management system
operates on an unstructured data model. Therefore, we cannot rely solely on database references, which are usually preferred.
It is essential to note that the ReferenceBundle should only be used for unstructured data, where database relations are
not feasible.

|
Content maintainers are able to see the references to a specific entity in the `Insights` tab of an entity like `Snippet`.

.. figure:: ../img/snippet-insights.png
Expand All @@ -34,7 +30,6 @@ references by executing the `bin/console sulu:references:refresh` command. This
bin/console sulu:references:refresh <resource-key>
.. note::

Please note that references are only refreshed for the current context. To refresh the references for both the
Expand All @@ -47,8 +42,6 @@ To integrate the ReferenceBundle for custom content-types, you need to implement
content-type class. The interface requires you to implement the `getReferences` method. The method already receives the
`ReferenceCollector` which you can use to add references to the collector.

|
Example implementation for a custom content-type:

.. code-block:: php
Expand All @@ -65,4 +58,4 @@ Example implementation for a custom content-type:
(string) $data['id'],
$propertyPrefix . $property->getName()
);
}
}

0 comments on commit beb04cc

Please sign in to comment.