You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Internals/Overview.rst
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Entity & Event Listener Timing
9
9
10
10
We regularly use Entity and Event listeners to execute specific actions. It is critical that we create those actions in the right type of listener, so that they are able to modify the entity at the right sequence. Failure to execute your code could result in your changes not being persisted, or other dirty states that will create errors.
11
11
12
+
NOTE: we have customized Doctrine's UnitOfWork file to add custom listeners that were lacking, and this has not been accepted by Doctrine's team (yet).
13
+
12
14
Below is a summary of the timing and order of operations for the UnitOfWork.php (not real PHP code) to help you understand what order methods are executed for the Listeners:
Copy file name to clipboardExpand all lines: Overview/Content-Versioning.rst
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
##########
2
-
Versioning
3
-
##########
1
+
##################
2
+
Content Versioning
3
+
##################
4
4
5
5
Versioning allows an entity's revision history to be tracked. The best example of this in action is seen when editing content (i.e. pages or modules on a site). Whenever content is edited by a new user or if it's been more than a set period of time (e.g. 30 minutes) since the last time it was saved, then a new unpublished version of the content is created. The new version can be previewed on the site in "Preview" mode, but will not appear on the live site until the version is "Published".
Copy file name to clipboardExpand all lines: Overview/Features.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,6 @@ You can do advanced searches on one or more specific fields by using a special f
117
117
Customization
118
118
*************
119
119
120
-
The framework allows you to customize the generic PHP controller or Twig template for any content type by adding an identical file to the client's site ``/var/wwww/vhosts/{ID}/src/`` directory. Design Templates can also be customized in the same way by adding files to the ``Sitetheory/Template{TEMPLATE-NAME}Bundle/src/`` directory. Individual pages can have a unique controller only for that view ID by adding a similar file with the additional view ID appended to the name.
120
+
The framework allows you to customize the generic PHP controller or Twig template for any content type by adding an identical file to the client's site in the relevant version ``/var/wwww/vhosts/{ID}/v/1/0/src/`` directory. Design Templates can also be customized in the same way by adding files to the ``Sitetheory/Template{TEMPLATE-NAME}Bundle/src/`` directory. Individual pages can have a unique controller only for that view ID by adding a similar file with the additional view ID appended to the name.
121
121
122
122
Learn more about :doc:`File Customizations </1.0/Tutorials/How-To-Customize-Files>`.
@@ -348,13 +348,13 @@ If you are customizing a site and need to customize the vendor's custom Content
348
348
Client Site Files
349
349
*****************
350
350
351
-
Client Site files are located in the ``/var/www/vhosts/{ID}/src`` directory which mimics the exact structure of the core Sitetheory framework directory. To customize controllers or templates, just add the exact same file to the client’s site directory, e.g.
351
+
Client Site files are located in the relevant version directory ``/var/www/vhosts/{ID}/v/1/0/src`` which mimics the exact structure of the core Sitetheory framework directory. To customize controllers or templates, just add the exact same file to the client’s site directory, e.g.
0 commit comments