Adding/altering metadata properties/values to centralise shared Gnav content #1269
Replies: 3 comments 1 reply
-
Method 1 seems much cleaner and author friendly. Should it instead be:
or possibly still use the source properties:
I could still see a use for a |
Beta Was this translation helpful? Give feedback.
-
I realised that having the So I will give up on that idea for now and go on the new metadata property or updating an exiting one path. |
Beta Was this translation helpful? Give feedback.
-
This is proving to be a no-go for now, we're looking into better centralisation options, discussion can be found under https://github.com/orgs/adobecom/discussions/1388 |
Beta Was this translation helpful? Give feedback.
-
Based on author requirements from another thread and JIRA, we need to enable centralisation for Global Navigation content in order to keep shared resources in sync, such as the cloud menus or footer content.
Existing implementation for a similar requirement
A need for centralised 404 pages has been identified and implemented in #845. An author would need to add a new metadata field to their page(s) (or metadata.xlsx file) to specify that the 404 content should be fetched from a centralised location:
Possible approaches for Global Navigation
We're mostly focused on centralising the footer content through a new metadata property or value, but since the logic would be almost identical for the Gnav, we'd like to future-proof it an take both use-cases into consideration.
1) The 404 way
Have a brand new metadata property specifying whether header, footer or both need to be fetched from a centralised location. Property name is TBD:
2) The
#_
wayKeep the existing
gnav-source
andfooter-source
metadata properties without adding a new one, but change how their values are defined. By appending#_raw
(naming TBD), we would ensure that the metadata content is not altered in any way, this might prove useful for others in the future too.This will require a change in the
decorateMeta
method from utils.js to skip content manipulation if this hash is set.Beta Was this translation helpful? Give feedback.
All reactions