Structured Page type with Template box

Mohamad Ramadan asked on March 29, 2021 09:55

Hi we have a structured page type called articles with predefined fields like (title, body, image), each article has a parent category

we need to have a dynamics section called "information box" this box would contain custom fields based on the article category like sports articles would have (club, image, date) politics articles would have (text, image, occasion)

this information box needs to be created as templates and predefined by the admin on each category

is there a way to implement this scenario

Recent Answers


Juraj Ondrus answered on March 29, 2021 11:23

How many categories you will have? Wouldn't it be better to create one base page type with common fields and then create new page type for each category, inherit the common fields from the base page type and then add just the different fields to each category page type?

0 votesVote for this answer Mark as a Correct answer

Mohamad Ramadan answered on March 29, 2021 11:52 (last edited on March 29, 2021 12:00)

The categories are not known to us, those defined in the client environment by content editors

the information box as well we need it to be dynamically defined by the content admin

sample scenario I think is

  • On the article page the user would select article type from a drop-down (sport - religion - nature)
  • and then predefined custom fields for each type would appear on the form for the user to fill

is there a way to implement this scenario or a similar one with a different approach, we were thinking of using page builder with the structured page but not sure if that would help

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 29, 2021 12:01

Well, there are no settings for this custom need. You would need to either create a custom form control which will handle all the logic (e.g. maybe something similar as this one) or, create a fully custom editing page for the Content tab where you will handle all the logic in the code on your own.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.