We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [renderfield]

For questions specifically related to Sitecore's renderField pipeline.

Filter by
Sorted by
Tagged with
0
votes
1answer
53 views

RenderingContext is null

I want to access the rendering context in the getLookupSourceItems pipeline. public void Process(GetLookupSourceItemsArgs args) { // var rc = Sitecore.Mvc.Presentation.RenderingContext....
0
votes
1answer
36 views

Retrieving item from Droplink Rendering Parameter

How can I get the referenced item from a droplink field in rendering parameters. What I tried: var model = new DFFVideoModel(); LookupField VideoItem = (LookupField)RenderingContext.Current....
2
votes
1answer
65 views

Date in rendering variants

I used template containing field from type DateTime and render time in Rendering Variant like that When I enter date only in field and time is empty, it render default value 12:00 AM so I need to ...
1
vote
0answers
275 views

Custom parameters in media URL query string - Sitecore render method/pipeline

I am using Sitecore's render method to construct the query strings for image assets, but I have a small challenge parsing custom parameters into the rendered query string in the HTML. It seems that ...
0
votes
1answer
351 views

Glass RenderLink not rendering right media url

Sitecore verison - 9.0.2 Glass version - 5.0.6.0 We are trying to use Glass @RenderLink to render a pdf media item, it's generating anchor tag with below path /sitecore/media-library/site-content/...
0
votes
1answer
536 views

FieldRenderer.Render for controller Rendering not “working”

I am trying to create a controller Rendering with the use of FieldRenderer.Render, but this does not work. The Controller public ActionResult PageImage() { return View(PageImageModelBuilder....
3
votes
1answer
140 views

Computed Index field as a rendering variant

How can I insert a computed index field in Solr as a rendering variant, I tried creating a field variant with the same name but it didn't work.
1
vote
1answer
292 views

How to get first child of an item in content tree?

I am trying to get only one item under a specific page in the content tree using a query in variant. I tried query:.//* but it gets all children under that item. I only need the first one. Any ideas?
3
votes
2answers
348 views

Image not rendering in SXA PageList variant

I need to create an image grid, like this (image and title) using Sitecore's SXA 1.6. I took the approach of using a Page list component to implement this and gave it a media folder as a data source. ...
1
vote
1answer
758 views

Rendering a Sitecore field in MVC with an enclosing tag and class

We effectively have an item with three fields. Text to display in a heading. Droplink with the type of heading to display the text in (h1, h2, ...). Droplink with the heading style that points to the ...
1
vote
1answer
348 views

How to pass data between renderings in sitecore 9.0.1?

For passing data between renderings I have seen this blog. Here they use below method to set data: ContextService.Get().GetCurrent().ViewData.Add("_SharedModel", viewModel); In Sitecore 9.0.1 I ...
0
votes
2answers
348 views

Make a field(RTE) disable(readonly) and enable(editable) on toggle of checkbox in Content Editor

I am trying to disable(readonly) and enable a RTE field on toggle of a checkbox in the Content Editor. The John west blogs tells to alter the "renderContentEditor" Pipeline which I guess will not be ...
2
votes
1answer
579 views

FieldRenderer not rendering an image

I am trying to render an Image in Sitecore 7.2 I am using following markup but it is showing text only, images is not being displayed. <div class="advisor-advertisement"> some text here ...
3
votes
2answers
1k views

Making field of type 'File' editable in Experience Editor with Glass Mapper

I am trying to make a file field editable in the Experience Editor. But neither @Html.Glass.Editable(field, f => f.File) nor the usage of an @Html.BeginEditFrame works. Is there a way with Glass ...
0
votes
1answer
51 views

Partial LinkField for Sitecore 8.1 rev. 160302

My issue is that I need to be able to allow a user to use the General Link FieldType and when the field is rendered I only want part of the text to be linkable. Example: Link Description: This is my ...
3
votes
1answer
539 views

Cascading Droplist field in Sitecore

I have item in sitecore which contains a field country and region. Now when I select the country I need to load the related region like cascading dropdown. Is there any possiblity of creating custom ...
7
votes
1answer
746 views

Adding Attributes to Rendered Link Programmatically

We need to apply attributes to rendered links conditionally. For example, if an internal link points to a specific template, add an attribute to the rendered anchor tag. Our initial efforts have ...