Forum Discussion
mfeltscher - What exactly you want to know, the template names?
This is for the blog article
<component id="article"/>
this is for comment:
<component id="comments"/>
But it will not render the content in a page which is out of context.
- mfeltscher10 years agoExpert
VarunGrazitti Thank you for your fast reply.
First of all I wanted to ask, how I can find all available template names.
The thing is, that we want to use this outside the context you described (for example inside a custom REST endpoint). Is this somehow possible?
- VarunGrazitti10 years agoBoss
To know the names of the components, you'd need to switch to the XML view in studio page tab. It'll show you the names of all the components on that page.
As long as you use that custom REST endpoint in the context of the page, rather on the same page where the default component is being used, you should be fine. E.g. if you use a blog page component on home page, you'll get an exception.- mfeltscher10 years agoExpert
Thanks for the hint with the XML view!
The custom REST endpoint is getting used outside of the Lithium application itself, so I guess this would mean it doesn't work?
Related Content
- 4 years agoInactive User