Guides and Tutorials

Implement the News Document

In this section, we will:

  • Create the News document type,
  • Create the content template with News Folder,
  • Add a button dedicated to news creation.

For this section, it is recommended to take a look at the how-tos for a step-by-step approach:

Create the News Document Type

  1. Create a new document type called News that extends the "Document" type.
  2. On the Definition tab, set Document as the Container Type.

    A document type must have a container. However if you do not want your document type to be displayed in the available document list window, you can select Document type as the container.

  3. On the Schema tab:
    • Add the files schema (necessary so that pictures that are uploaded with HTML widget are stored)
    • Add a field body of type String
  4. Create the layouts of the document:
    • Creation form metadata: dc:title as text widget, news:body as HTML widget.
    • Edit form metadata: import Creation layout (it is the same).
    • View form metadata: import Creation layout and add dc:valid as DateTime widget on a third row.

The News document type is now created. However, there is no way to access the creation form for now.

Create the Structure Template for News Folder to Be Available Automatically

  1. Create a new Structure Template:
    • ID: Workspace
    • Target Document Type: Workspace
  2. Add a new built-in type: Folder
    • Node Name: NewsFolder
    • Title: News Folder

Now, every time a workspace is created, a folder called "News Folder" will automatically be created in it by the system.

Add the News Creation Button

Here are the steps to create the button to create news from a Workspace into the News Folder:

  1. Create a new User Action. Its properties:
    • ID: CreateNewsButton
    • Label: Create news
    • Category: Folder toolbar
  2. Activation conditions:
    • User has permission : <span style="font-family: monospace;"><span style="font-size: 14.0px;line-height: 12.6px;background-color: rgb(248,248,248);">Edit</span></span>
    • Current document has type : Workspace
  3. Create new operation chain CreateNewsChain:

    Step Operation Parameter
    1 Fetch > Document Value: ./NewsFolder
    2 User Interface > Navigate to Document  
    3 User Interface > Show Create Document Page Value: News

    You should end up with something like this:

4 months ago manonlumeau Relocated assets to fit new URL structure for 710 - fix
3 years ago Manon Lumeau 17 | ix Studio menu label
4 years ago Solen Guitter 16 | Update Schema tab step
4 years ago Manon Lumeau 15 | replace "Write" by "Edit"
4 years ago Manon Lumeau 14
4 years ago Manon Lumeau 13
4 years ago Manon Lumeau 12
4 years ago Manon Lumeau 11
5 years ago Alain Escaffre 10
9 years ago Solen Guitter 8 | updated reference howtos
9 years ago Solen Guitter 9
9 years ago Solen Guitter 7
9 years ago Solen Guitter 6
9 years ago Solen Guitter 5 | moving workspace content view section
9 years ago Solen Guitter 4 | added all content type and structure instructions
9 years ago Alain Escaffre 2
9 years ago Alain Escaffre 3
9 years ago Alain Escaffre 1
History: Created by Alain Escaffre

We'd love to hear your thoughts!

All fields required