Split other options in post editor
- This topic has 3 replies, 2 voices, and was last updated 9 months, 3 weeks ago by .
- AuthorPosts
- April 21, 2020 at 9:40 am#2538
rjcpereira
Split the Other Options of a post configs in blocks/tabs, like the Custom Configs in Themes tab.
May 4, 2020 at 9:48 pm#2630Tomasz Dziuda
ModeratorHi,
Can you clarify if I correctly understand – do you suggest to split “Other options” to two sections “Post options” (for the post options only) and “Custom options” (for custom options added by theme/future plugins)?
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!May 5, 2020 at 8:11 am#2643rjcpereira
My suggestion would be something like this:
"postConfig": [...], //renders to actual group: Other options "additionalConfig": [{ //renders to a new group, in this case: Source "name": "sourceUrl", "label": "Source URL", "group": "Source", "type": "text" }, { //renders to a new group, in this case: Store "name": "storeLocation", "label": "Store Location", "group": "Store", "type": "text" }]
or something like this:
"postConfig": [...], //renders to actual group: Other options "additionalConfig": [{ //renders to a new group, in this case: Source "label": "Source", "icon": "link", "fields": [{ "name": "sourceUrl", "label": "Source URL", "type": "text" }] }, { //renders to a new group, in this case: Store "label": "Store", "icon": "market", "fields": [{ "name": "storeLocation", "label": "Store Location", "type": "text" }] }]
Just to split some important template config, in order to don’t have a gigant “Other options” section, that’s my case right now, I’m splitting with separator type.
May 5, 2020 at 8:15 am#2644rjcpereira
This is one my theme config
Attachments:
You must be logged in to access attached files.
- AuthorPosts
- You must be logged in to reply to this topic.