3

I setup image rendition on my farm. I add my custom image rendition item with a specific width and height. Now I would like to add the PublishingPageImage to a page layout and make it using the image rendition.

I found this tutorial

And I add these controls to my page layout to test it:

<PublishingWebControls:RichImageField runat="server" FieldName="PublishingPageImage" RenditionId="6"></PublishingWebControls:RichImageField>
<PublishingWebControls:RichImageField runat="server" FieldName="PublishingPageImage" RenditionId="5"></PublishingWebControls:RichImageField>
<PublishingWebControls:RichImageField runat="server" FieldName="PublishingPageImage" RenditionId="4"></PublishingWebControls:RichImageField>
<PublishingWebControls:RichImageField runat="server" FieldName="PublishingPageImage" RenditionId="3"></PublishingWebControls:RichImageField>

But I still see the same size of the picture. What I am doing wrong?

Like you see below I edit the news article page, add a picture and leave the image rendition. I save the page, check in and publish. I stil see the 4 pictures in my news article without image rendition. Do I need to do some crawl or something?

enter image description here

See below the device channels, there is only the default device channel:

enter image description here

0

Are you looking at the page through a difference device (ie an iPad or Windows Phone) or through a browser's developer console that is emulating a different device? You can also change the rules for the device channel through Site Settings > Device Channels.

  • I am just on my dev environment. Win Server 2013, IE 10, compatibility mode turned off. – Ola Apr 16 '15 at 8:09
  • What are the other device channels that you're trying to view it as? – Graham Apr 16 '15 at 8:10
  • see update for the printscreen of the device channels. There is only the default device channel. – Ola Apr 16 '15 at 8:14
  • 1) Since you're seeing all four at once and the tutorial you linked to was specifically about image renditions for device channels instead of in general, do you have these inside of a device channel panel? 2) You should name them differently in FieldName (PublishingPageImage, PublishingPageImage_big, The Primary Publishing Page Image, etc) – Graham Apr 16 '15 at 8:34
  • no I do not using device channels. I just add the image rendition parameter to my image control. So I just need to add one control each. 2 or more of the same controls is not possible. – Ola Apr 16 '15 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.