Skip to main content
added 23 characters in body
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

In publicationPublication properties  ,changed I changed the value for Images PathImages Path and Images URLImages URL to \media\mysite\media\mysite and /media/mysite//media/mysite/

While publishin gpublishing the image, it is stored in brokerthe Broker database by appending tcmid to the image name

I am able to access it, if iI append publication idPublication ID to the path
http://{domain}/media/mysite/{image-name}_tcmxx-xx.jpg. http://{domain}/media/mysite/{image-name}_tcmxx-xx.jpg

But i dontI don't want tcm idTCM URI appended to the images name ex: http://{domain}/media/mysite/{image-name}.png http://{domain}/media/mysite/{image-name}.png.

Actually we also tried writing customcustom code  (TBB)  ,in db in DB it is storing in proper format but when iI am retrieving the image it is appending with ./index./index at the end.

Please help on this.Is Is there any other alternatives without TCM idURI appending?

In publication properties  ,changed the value for Images Path and Images URL to \media\mysite and /media/mysite/

While publishin g the image it is stored in broker database by appending tcmid to the image name

I am able to access if i append publication id to the path
http://{domain}/media/mysite/{image-name}_tcmxx-xx.jpg.

But i dont want tcm id appended to the images name ex: http://{domain}/media/mysite/{image-name}.png.

Actually we also tried writing custom code(TBB)  ,in db it is storing in proper format but when i am retrieving the image it is appending with ./index at the end

Please help on this.Is there any other alternatives without TCM id appending?

In Publication properties, I changed the value for Images Path and Images URL to \media\mysite and /media/mysite/

While publishing the image, it is stored in the Broker database by appending tcmid to the image name

I am able to access it, if I append Publication ID to the path http://{domain}/media/mysite/{image-name}_tcmxx-xx.jpg

But I don't want TCM URI appended to the images name ex: http://{domain}/media/mysite/{image-name}.png.

Actually we also tried writing custom code  (TBB), in DB it is storing in proper format but when I am retrieving the image it is appending with ./index at the end.

Please help on this. Is there any other alternatives without TCM URI appending?

Source Link

Path for assets in DXA 1.7 . Do not want tcm id appended to the image while accessing it

In publication properties ,changed the value for Images Path and Images URL to \media\mysite and /media/mysite/

While publishin g the image it is stored in broker database by appending tcmid to the image name

I am able to access if i append publication id to the path
http://{domain}/media/mysite/{image-name}_tcmxx-xx.jpg.

But i dont want tcm id appended to the images name ex: http://{domain}/media/mysite/{image-name}.png.

Actually we also tried writing custom code(TBB) ,in db it is storing in proper format but when i am retrieving the image it is appending with ./index at the end

Please help on this.Is there any other alternatives without TCM id appending?