Search the FirstSpirit Knowledge Base
I want a format template that just displays an image. I have the image in the media store under a folder called images (name is sample_logo).
When I create the format template, I need something like this:
<img src="??" alt="Sample Text" height="42" width="42">
What goes in the src, I figure something like this $CMS_VALUE(SOMETHING)$...
Is format template the best way to use an image? This is eventually going to be used in a text block, where the user can type some text and insert this image wherever they want.
Hi...
It should work using the propper configuration of $CMS_REF(...)$
We have a working picture implemented like shown in the following source where "bit_logo" is the reference name of the image.
<img src="$CMS_REF(media:"bit_logo")$" alt="bridgingIT-Logo">
Greetings
Sandro
Hi Leland,
try $CMS_REF(...)$ this should be what you are looking for.
For a detailed information just take a look inside the documentaion. (http://www.e-spirit.com/odfs52/vorlagenentwick/vorlagensyntax/anweisungen/cms_ref/)
Best Gegards
Sandro
I tried and it did not work, image is coming up blank.
Hi...
It should work using the propper configuration of $CMS_REF(...)$
We have a working picture implemented like shown in the following source where "bit_logo" is the reference name of the image.
<img src="$CMS_REF(media:"bit_logo")$" alt="bridgingIT-Logo">
Greetings
Sandro
I will try it like your example and see if that works.
Thanks.