browneandrae
6 years agoExpert
Componet to embed a message anywhere
Looking to see if there is a message component where can grab a message similar to the topic message component and just use the argument like lia-message:env to show. Below is a list of elements I was told about but did not know existed. Is there a list that has all the possible components that could be used? We want to embed the topic message at the top of every forum topic page, even the 2nd and 3rd pages so seeing if a component exist before writing the component myself?
- <component id="message-list-detail-with-inline-editors" />
- This component is only available on the ForumTopicPage
- <component id="messages.form.reply-inline" message="lia-message:env" />
- The "message" parameter requires a message to be passed to tell the component which message the component will use to reply to. In this case we use "lia-message:env" which will attempt to grab the message from the environment. On the ForumTopicPage it will use the message for the page. This will break on pages that do not have the context of a message on them.
- <component id="messages.form.reply-inline" message="lia-message:env" />
- Same comment as above for the "message" parameter.