Sitecore Asked by Gautam Aneja on August 23, 2021
I have made a custom processor to add custom code to General Link Field and Rich Text Field.
But in the (RenderFieldArgs args) I am only getting rich text field, the General Link Field is not coming. The config is correct as the Rich text field is coming but General Link Field and other fields are missing.
public class CustomExpandLinks
{
public void Process(RenderFieldArgs args)
{
Assert.ArgumentNotNull((object)args, nameof(args));
if (Context.PageMode.IsExperienceEditorEditing)
return;
args.Result.FirstPart = ExpandUrlsInCustomWay(args.Result.FirstPart, UrlOptions.DefaultOptions);
args.Result.LastPart = ExpandUrlsInCustomWay(args.Result.LastPart, UrlOptions.DefaultOptions);
Please help what I am missing in this to get the General Link field
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP