I have a maven project where in I added asset share commons dependencies. I created details-page template by refferring asset share commons details template type then I added structure policies, allowed componentsI added Asset Share Commons - Details components.
Then I tried to drag details components on page level but its throwing error.
In logs I found this error
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Vani1012,
This is expected behavior, base on a the fact how details page works. You will get exactly the same result on original Asset Details template that you get with Asset Share Commons packages. Have a look on below screen that is presenting Asset Details template from Asset Share Commons.
The main reason of above issue is because Asset Details page strongly relys on specific asset context. Asset context is passed using suffix set in URL. Obviously, you do not have this information on template level, this is why you see the error. You can experiment and add path to some sample asset and observer the result. Here is an example, for Asset Details template from Asset Share Commons - I have added additional title component during this test, and used link to one of demo assets provided by Asset Share Commons package.
My URL looks like this:
and the result:
As you can see after adding proper suffix, there is no error, and apart of that all available metadata from the asset are shown.
Here is link to the documentation that describes Asset Details page concept:
You can also raise an issue to Asset Share Commons development team via GitHub
Hi @Vani1012,
This is expected behavior, base on a the fact how details page works. You will get exactly the same result on original Asset Details template that you get with Asset Share Commons packages. Have a look on below screen that is presenting Asset Details template from Asset Share Commons.
The main reason of above issue is because Asset Details page strongly relys on specific asset context. Asset context is passed using suffix set in URL. Obviously, you do not have this information on template level, this is why you see the error. You can experiment and add path to some sample asset and observer the result. Here is an example, for Asset Details template from Asset Share Commons - I have added additional title component during this test, and used link to one of demo assets provided by Asset Share Commons package.
My URL looks like this:
and the result:
As you can see after adding proper suffix, there is no error, and apart of that all available metadata from the asset are shown.
Here is link to the documentation that describes Asset Details page concept:
You can also raise an issue to Asset Share Commons development team via GitHub
Views
Likes
Replies
Views
Likes
Replies