Automatic publishing system in sections
Good morning, everybody,
I am looking for an automatic publishing system in sections. Explanations: I have a root workspace in which I have several workspaces.
In one of them (which I called “IUT”), I created several sub-workspaces.
In addition, in sections, I have created exactly the same tree structure.
Finally, for each workspace in the tree structure, I have defined the corresponding section as a publication space.
Now, I want when someone deposits a document in the workspace, it is automatically published in the defined field.
Is it possible to do that? If not, is it possible to create a button in the studio to do it?
Maybe you could have a look at the Document.GetParent operation with type = Workspace
then retrieve its publish:sections field
and finally use one of the publishDocument / Document.PublishToSection / Document.PublishToSections operations
Whether the operation is automatic or initiated by the user does not really make a change : in the first case, your operation will be called by event listener, in the second case, by a user action.
I have allready tryed this but whithout success.
In studio, when I do :
Fetch > Context.FetchDocument Document > Document.PublishToSection
I have to define a target :
When I use the editor, I have no many options :