sluggi icon indicating copy to clipboard operation
sluggi copied to clipboard

[FEATURE] Support for Content Blocks

Open nhovratov opened this issue 7 months ago • 2 comments

Content Blocks uses a custom palette content_blocks_titleonly for the title and slug. It would be nice to add this in the TCA overrides as well so users don't have to add the sluggi fields by their own.

nhovratov avatar May 26 '25 08:05 nhovratov

@nhovratov You mean I should include this in the standard configuration in ext_conf_template.txt? What would that look like? As you have Content Blocks in use, send me a working configuration and I can change that.

# cat=basic; type=string; label=Use the following page fields for slug generation (valid JSON array!)
pages_fields=[["nav_title","title", "content_blocks_titleonly"]]

🤷

wazum avatar May 28 '25 12:05 wazum

No, I mean include the Palette here in addition:

https://github.com/wazum/sluggi/blob/d859466959fecdf34aca26ec8c04def737bdef58/Configuration/TCA/Overrides/pages.php#L97-L102

nhovratov avatar May 28 '25 12:05 nhovratov