Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add directly tt-content #671

Open
RZivaralam opened this issue Feb 17, 2025 · 3 comments
Open

add directly tt-content #671

RZivaralam opened this issue Feb 17, 2025 · 3 comments
Labels

Comments

@RZivaralam
Copy link

RZivaralam commented Feb 17, 2025

hey,
I wanted to have a link to add tt-content directly to my mask, so we didn't need to go to edit and then add new tt-content.
I added a link into the template backend mask to add new records like below:

<a href="{be:uri.newRecord( pid: my pid, table: 'tt_content', defaultValues: { tt_content: { colPos: mycol tx_mask_content_parent_uid: uid, tx_mask_content_role: 'my grid', tx_mask_content_tablenames: 'my table name', tx_mask_conf_layout: 'my layout' } } )}"> new </a>

Image

Unfortunately, it didn't save tx_mask_content_parent_uid and tx_mask_content_tablenames and tx_mask_content_role in SQL, and because of that, I could not add new content directly. I added these fields manually in the mask. and after that, it works and saves the fields in SQL correctly. but is it any way to add automatically these fields in the mask???

Image

@nhovratov
Copy link
Collaborator

This is out of scope for this extension. Please use proper Container Extensions like b13/container for such tasks. Editing however is no problem from within the preview.

@RZivaralam
Copy link
Author

I didn't have any problem editing the mask manually but I wonder why it does not automatically add the fields in the mask

@nhovratov
Copy link
Collaborator

It probably does not work for passthrough fields like these. But not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants