Skip to content

[FEATURE] "Create element: {CType name}" button #171

Description

@stigfaerch

Would be nice if it was possible replace the "Create new content" button with links to the defined allowed CTypes.
For example:

allowed {
  CType = text
  createButtons = true
}

Then instead of the "Create new content" buttons which open new content element wizard, it is replace by:
"Create element: Regular Text Element"

I think this should be possible by overriding:
EXT:backend/Resources/Private/Partials/PageLayout/ActionControls.html
And adding af link like this:

<be:link.newRecord table="tt_content" defaultValues="{tt_content: {CType: 'text', colPos: item.record.colPos}}" uid="-{item.record.uid}">Create element: {ctype.name}</be:link.newRecord>

This would require a custom viewHelper to know when to display these buttons instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions