How can I share content-properties between templates

Patrick

I have different templates.

  • default
  • category
  • article
  • overview

They share some properties like the text-editor with it's settings.

<property name="article" type="text_editor">
    <meta>
        <title lang="de">Inhalt</title>
        <title lang="en">Content</title>
    </meta>
    <params>
        <param name="table" value="true"/>
        <param name="link" value="true"/>
        <param name="paste_from_word" value="true"/>
        <param name="height" value="200"/>
        <param name="max_height" value="2000"/>
        <!-- CKEditor Parameters examples: -->
        <param name="extra_allowed_content" value="img(*)[*]; span(*)[*]; div(*)[*]; iframe(*)[*]; script(*)[*]" />
    </params>
</property>

I don't want to duplicate the configuration and instead link it from somewhere? I did not find anything about it in the Sulu-Docs, but I'm sure there is a solution for this.

Daniel Rotter

We've already been thinking about some kind of import functionality, but we haven't implemented that yet, and it has not the highest priority, and would make certain things a bit more complex.

But what you could do until then, is to inherit from the TextEditor Content Type, put your default values in there, register it as a new content type, and use this one instead. Then you would at least save typing the parameters all the time.

If you like you might also be able to use Symfony's Bundle Inheritance feature.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I return differences between versions and access properties that changed?

From Dev

How can I share clover coverage data between maven and IntelliJ

From Dev

Share templates between Laravel and JavaScript

From Dev

How can I pass variables between DRY templates and ncludes in Jekyll

From Dev

How can I share a class between processes?

From Dev

How to Share content between Handlers on Netty?

From Dev

Handling different item templates that share the same content

From Dev

How can I share a struct with pointers between processes in C?

From Dev

How can I share sessions between Chrome and Paw?

From Dev

How can I move values between properties of an object in Ramda?

From Dev

How can I share similar properties between two entities in Symfony using Doctrine?

From Dev

How can I share my clipboard between two X servers?

From Dev

How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder?

From Dev

How can I share my clipboard between two X servers?

From Dev

How can I edit the content of .properties file?

From Dev

How can I share clover coverage data between maven and IntelliJ

From Dev

Android: How can I share the contents of a Couchbase database between devices? (And/or how to export Couchbase to XML)

From Dev

How can I share a monitor between two computers?

From Dev

Can I share entities between solutions?

From Dev

How to Share content between Handlers on Netty?

From Dev

How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder?

From Dev

How can I share assembly references between Autofac modules

From Dev

How can I share a ContextMenu between Components

From Dev

How can I share files between to routers connected by Ethernet

From Dev

How can I share Tampermonkey scripts between versions of Chrome?

From Dev

How can I share a PATH?

From Dev

How can I remove the nav between content and content?

From Dev

How can I share code between my application and my service?

From Dev

How can i share a serialport between 2 different processes in Python

Related Related

  1. 1

    How can I return differences between versions and access properties that changed?

  2. 2

    How can I share clover coverage data between maven and IntelliJ

  3. 3

    Share templates between Laravel and JavaScript

  4. 4

    How can I pass variables between DRY templates and ncludes in Jekyll

  5. 5

    How can I share a class between processes?

  6. 6

    How to Share content between Handlers on Netty?

  7. 7

    Handling different item templates that share the same content

  8. 8

    How can I share a struct with pointers between processes in C?

  9. 9

    How can I share sessions between Chrome and Paw?

  10. 10

    How can I move values between properties of an object in Ramda?

  11. 11

    How can I share similar properties between two entities in Symfony using Doctrine?

  12. 12

    How can I share my clipboard between two X servers?

  13. 13

    How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder?

  14. 14

    How can I share my clipboard between two X servers?

  15. 15

    How can I edit the content of .properties file?

  16. 16

    How can I share clover coverage data between maven and IntelliJ

  17. 17

    Android: How can I share the contents of a Couchbase database between devices? (And/or how to export Couchbase to XML)

  18. 18

    How can I share a monitor between two computers?

  19. 19

    Can I share entities between solutions?

  20. 20

    How to Share content between Handlers on Netty?

  21. 21

    How can I change the default location of content directories (eg Pictures, Templates, Music) in my home folder?

  22. 22

    How can I share assembly references between Autofac modules

  23. 23

    How can I share a ContextMenu between Components

  24. 24

    How can I share files between to routers connected by Ethernet

  25. 25

    How can I share Tampermonkey scripts between versions of Chrome?

  26. 26

    How can I share a PATH?

  27. 27

    How can I remove the nav between content and content?

  28. 28

    How can I share code between my application and my service?

  29. 29

    How can i share a serialport between 2 different processes in Python

HotTag

Archive