I'm a newbie with confluence.
Currently, I want to create a confluence page through API. My page will include page tree macro. However when i set @home/@self and another into the value, it always throw error as above:
Hi @Tu Ho
Hi - I hope that you are Doing good !!
This is all about - the ClassCastException error
Kindly replace @home with the appropriate page title if you intend to link to a different page
It seems like the error is occurring due to the formatting of the root parameter in the page tree macro.
The @home and @self values should not have spaces before them.
Additionally, you need to provide the correct type for the root parameter, which is a link to the page
@home is wrapped with <ri:page ri:content-title=\"@home\"/>, indicating a link to the homepage.
There are no spaces before @home.
The representation remains 'storage' as it targets that the content is provided in Confluence Storage Format.
Referenced and researched a few from other communities
Hope this helps and happy to assist further !!
Thank you very much and have a fantastic day!
Warm regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.