Content-Length: 268134 | pFad | http://github.com/sulu/SuluArticleBundle/blob/2.6/Resources/doc/article-types.md

E8 SuluArticleBundle/Resources/doc/article-types.md at 2.6 · sulu/SuluArticleBundle · GitHub
Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.57 KB

article-types.md

File metadata and controls

43 lines (29 loc) · 1.57 KB

Article Types

The SuluArticleBundle provides an additional way to divide different types of templates and group articles in the Sulu-Admin. The article type of a template is set with the sulu_article.type tag.

This has following impacts:

  • The article list in the Sulu-Admin will be extended by a tab-navigation to filter for article-types.
  • Permissions in the settings area of the Sulu-Admin are managed separately for each article type.
  • When changing the template of an article, you can only choose templates with the same article-type.

To allow users to see a newly added article type, you need to add the permissions for the article to the respective user roles

The article-type can also be used for querying the elastic-search index, it is stored in the field type.

Sulu-Admin translations

To translate the name of the type in the Sulu-Admin UI you can use the following configuration snippet:

sulu_article:
    types:
        my_article_type:
            translation_key: "app.article_types.my_article_type"

This key can the be used to translate the key by adding a Translation File translations/admin.en.json.

Usage in Content-Types

Smart-Content

The type can also be used to predefine a filter for the smart-content provider for articles. You can simply add the following param to the template definition:

<property name="articles" type="smart_content">
    <params>
        <param name="types" value="my_article_type,my_custom_article_type"/>
    </params>
</property>

This will filter the smart-content for the given two types of articles.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sulu/SuluArticleBundle/blob/2.6/Resources/doc/article-types.md

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy