Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
I want to show the thumbnail image which is added via CMS in the same line as the ExcerptHTML. However the image gets added a line above. My code to add the image and the text is:

<cms:excerptHTML count='75'><img id="newspostthmb" src="<cms:show my_image_thumb />" /><cms:show newspage_content /></cms:excerptHTML>

Please advice.

Note: I have purchased the commercial license to Couch. Do I get any sort of support where my queries will be answered quickly?
Hi,

cms:excerptHTML has no control over what HTML it produces as it simply extracts 'n' number of words from the given contents and outputs them. How the image gets displayed will depend on our original HTML.

Regarding your specific use-case, I think we can use cms:excerptHTML with just the text and output image separately. Something like this -
Code: Select all
<img id="newspostthmb" src="<cms:show my_image_thumb />" />
<cms:excerptHTML count='75'><cms:show newspage_content /></cms:excerptHTML>

This way, if needed you can add further CSS rules to both the blocks to fine-tune their display.

Code: Select all
Note: I have purchased the commercial license to Couch. Do I get any sort of support where my queries will be answered quickly?
You can choose to PM me or email me directly.
2 posts Page 1 of 1
cron