Developer forum

Forum » Feature requests » News v2

Reply

Although you can force image width and height under Templates > News v2 for a particular template I would like to see that a tag was created (for instance News:Image.Clean or News:Image.Url) so that we can wrap this in an <img src and add classes/id/mouseover etc at will to this.

 

Not only for this reason, but also as the forced image size does not actually create a copy of the image in the forced size, it only sets a new width/height on the original image.

 

//David

 


Replies

 
Reply

I need the same functionality on several customer projects currently under development. Most of the pictures customers can publish are automatically scaled according to template width and height. The only place where this is not possible to do is when displaying a news item.

 

The built in width height for news images only sets the attributes and doesn't process the picture. A News:ImageClean tag would help when scaling news items with the .aspx image process solution.

 
Reply

Just a comment to the existing News:Image tag. It seems that when this tag is used in a news list template it produces only an image url, but when used in an item template it returns an <img> tag with the image in the source attribute. If a new News:ImageClean tag is introduced then you could fix the differencies in these templates. But I guess that existing solutions may render this difficult...

 

The solution could be to introduce a new name for News:Image tag and at a later stage fade out the old one (like a deferred html tag).