Automatic publishing system in sections

Mohamed_Belmokh
Star Contributor
Star Contributor

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?

Thanks !

3 REPLIES 3

pibou_Bouvret
Elite Collaborator
Elite Collaborator

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.

Hi !

You should first retrieve the publish