Publishing at multiple locations
The content structure of eZ Publish makes it possible to publish the same object at different locations in the tree. This means that you can for example have the same news article appear at different places on your site. Please note that this feature only works with single nodes. If you add a new location for a folder that contains several news articles, the system will only make a new location for the folder itself but not the articles.
You can either add a new location to an object that has already been published or you can publish an object at multiple locations at the same time. Please note that the first approach requires that the information has already been published. The second approach does not have this requirement because you can control the locations where the information should be published from the edit interface. The following text explains both approaches.
Adding a new location to a published object
This approach allows you to publish an already published object at a new location in the tree. For example, if you have a news article that you also wish to make available somewhere else on the site, you can simply add a new location (a node) to the object that contains the article. For this to work, you'll need to enable the "Locations" window. This can be done by clicking on the "Locations" button in the toolbar located in the top/middle of the main area. The following image shows how this window looks like.
![Locations window.](../../../../var/doc/storage/images/ez_publish/user_manual/3_10/images/content_structure_locations/30324-1-eng-GB/content_structure_locations_doc.png)
Locations window.
The following text explains how you can add new locations.
- Navigate the node tree until you find the node (page) that you wish to make available at an alternate location. Make sure that you're actually looking at the node.
- Click the "Add locations" button in the "Locations" window. The system will bring up the browse interface.
- Use the browse interface to select the alternate location(s) where the object should be published.
- Click OK - the object will be published at the selected location(s) and thus it should appear at different locations in the tree.
Controlling the locations before publishing
First of all, you'll need to enable the "Locations" window. This can be done by clicking the "On" link for "Locations" in the "Edit mode settings" window displayed when the "My account" tab is selected.
![Edit mode settings.](../../../../var/doc/storage/images/ez_publish/user_manual/3_10/images/daily_tasks/edit_mode_settings/71699-2-eng-GB/edit_mode_settings_doc.png)
Edit mode settings.
When done, the object edit interface will contain an additional window at the bottom. This window will allow you to control where the object that is being edited should be published. The following image shows how this window looks like.
You can use this window control where the object should be published and how it should be published (sorting settings, visibility status and so on.).
In order to avoid possible conflicts when an object is edited by multiple users at the same time, the system will no longer allow to change locations via the object edit interface except the first object's version. This means that you can control locations when creating a new object but not when editing an existing one. However, it is still possible to modify location(s) of existing objects using the locations window that is displayed when viewing an object.
Balazs Halasy (08/02/2006 12:07 pm)
Julia Shymova (17/04/2007 2:19 pm)
Comments
Differently named content in multiple locations
Thursday 19 August 2010 2:22:54 am
Russell Michell
This would be very useful when you have the same content appear in >1 location(s), but where you'd like it to have a slightly different clickable link when the item's name/title appears in a menu for example.
At the moment, the same name/title is used in every location the content is cloned in/at.