Footer

Footer

Footer defines the bottom navigation configuration for pages.

Props

id
string
required

Footer id in the CMS.

userId
string
required

Owner/creator identifier. Set automatically on create. Read-only afterwards.

name
string
required

Internal label used in the CMS UI.

sectionsrequired

Relationship to footer sections.

sectionsOrder
string[]
required

Ordered list of FooterSection ids. Source of truth for section ordering.

theme

Optional theme override for the footer.

logo

Optional logo image shown in the footer.

links

Links rendered at the very bottom of the footer (e.g. social links).

Ordering behavior

sectionsOrder and sections are kept in sync:

  • If sectionsOrder is explicitly set:
  • sections is overwritten to match that order (connect on create, set on update).
  • If sectionsOrder is untouched but sections changes:
  • set replaces the full order
  • disconnectAll clears the order
  • disconnect removes ids from the order
  • connect appends new ids to the end

FooterSection

FooterSection is a section inside a footer, typically rendered as a titled link list.

Props

id
string
required

Footer section id in the CMS.

userId
string
required

Owner/creator identifier. Set automatically on create. Read-only afterwards.

footer

Back-reference to footers using this section.

title
string
required

Section title.

links

Links belonging to this section.

Deletion cleanup

On delete, the removed section id is purged from every Footer.sectionsOrder.