Remove/disable Image Rendition Selection when adding a picture to a custom Content Type - sharepoint

Is it possible to remove/disable the selection of the Image Rendition when selecting a picture in a custom content type?
Any User/Contributer should not be able to choose the image Rendition because it happens programmatically in the Display Template. The Picture must always be choosen as Full Size Image!
Has anyone an idea how i can set this up?

As i remember Image Renditions are implemented using query string params so you can always ignore provided by user image rendition and override it in your display template.

I imported the picture in the Item_Custom.html Template (masterpages\Display Templates\Cotrol Web Parts\Item_Custom.html) like I did in the other Templates:
<mso:ManagedPropertyMapping msdt:dt="string">'Category Image'{Category Image}:'MyCategoryImageOWSIMGE',' .... </mso:ManagedPropertyMapping>
Then Set the JS Variable:
<!--#_
var CategoryImage = $getItemValue(ctx, "Category Image");
_#-->
And manually set the Rendition ID, no matter what was choosen by the user:
<img style="visibility: visible;" src="_#= CategoryImage =#_?RenditionID=7" id="CategoryImage" onload ... >

Related

Background media image in twig

We're using Media Library (Drupal8) and want to use an image as background with it's related image style
style="background-image: url('{{ file_url(content.field_header_image[0]['#markup'] ) }}');
This is the code we're using right now for field_image. It works great, prints the image as background with its image style associated
We want the same for field that is a reference to a Media Entity.
We don't want to manually render the Image Style with Twig Tweak, because that is already defined in Drupal Content Type, we don't want to be repeating information and making it harder to change in the future

I want to display a logo in PictureBox control irrespective of ImageURL in DevExpress Report control?, how could i do this?

There one Print i'm generating in DevExpress Report COntrol and I wanted to show Company logo in the print.
Someone please help me to show image as logo in XRPicturebox control without Database binding and without providing ImageURLi.e. irrespective of path...
Yes you can set Image via Image Property. Goto XRPictureBox properties and on the Image property click on ... symbol to browse and set the image.
Hope this helps

Typo3 FAL show file browser popup in backend module

I have a site which shows a teaser (image+text) on all pages.
This should be editable from admin, so I created a small backend module (a simple form) where the admin should set the image and the text and save them in Typo3's registry db table:
This is how I save the text:
$request = $this->controllerContext->getRequest();
$arguments = $request->getArguments();
$registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( 't3lib_Registry' );
$extKey = $request->getControllerExtensionKey();
$registry->set( $extKey, 'text', $arguments['settings']['text'] );
but I don't know how to add an "Add image" link to display the file browser and get the url/id of the selected file.
Any ideas?
Thanks.
In order to have a file picker you will need to have a TCA for a FAL field. A TCA is usually connected to a table and I wouldn't know of any implementation with the registry as a "storage backend".
This means you would have to create TCEForms yourself and then intercept the saving process. This is possible but rarely used and rather complicated, see an example here:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/TYPO3_4-5:/typo3/sysext/version/ws/workspaceforms.php
(for TYPO3 4.x, for 6.x the class names have to be adjusted)
So I would suggest that you extend the table pages with a field for text and a FAL field instead of trying to write an own backend module for this purpose.

Display image with Projection in Orchard 1.7

how to display image with with Projection in Orchard 1.7.
i have try but not able to get image its sow me ID with select html layout and custom display html.
can some on help me to get image with orchard projection/query
==Updated Post
I have one Query to select all company name (input text) , detail (input text) and company image, i want to show a list of all company name with image thumb on front site with projection and query ...list is coming but how to get image that is the problem.
thanks
If you're using ImagePart you should be able to access to MediaPart. MediaPart has FolderPath and FileName property. Just do something like this: Image.As.FolderPath to access to it in your shape.
If you are not using ImagePart, be more specific (e.g. showing some code)

Orchard CMS display image from MediaPicker using Projector

I have a content type with a MediaPicker field in it. The MediaPicker allows the contributor to select an image for the content type. I'm using Projector to develop a page that renders a list of this content type, but the image doesn't display. I modified the "Rewrite Results" in the layouts for the Projector to write the field to an image: <img src="{Text}"/>
But this produces: <img src="~/Media/.../picture.jpg"/> and doesn't convert the tilde ~/ to the correct path.
Can you tell me what I'm doing wrong? What is the best way to render an image using the Projector module?
Thanks!
I posted on my blog a solution that resolves this issue:
http://coderkelly.wordpress.com/2012/04/18/solved-projector-module-layout-to-display-media-picker-field-as-image/

Resources