Questions tagged [sitecore-mvc]

Any question that are related to MVC pattern in context of Sitecore including controller and view rendering can make use of this pattern.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

Collection was modified; enumeration operation may not execute(while trying to install SXA for 9.2)

I am trying to install the SXA package for 9.2 in my local. After sometimes of loading it is showing this error. And ended up with package installation failed error. Collection was modified; ...
Bagavathi's user avatar
1 vote
0 answers
49 views

How to retain the session value in sitecore 10.2

How to retained the session, when i clicked the media url session is null. I have developed external based authentication, I stored value on session, When i clicked the media url or Pdf url(used ...
Hasanshali's user avatar
1 vote
2 answers
69 views

how to get rendering variant using c#

I have a list of renderings used in an item. I used below code Sitecore.Layouts.RenderingReference[] renderings = null; renderings = Sitecore.Context.Item.Visualization.GetRenderings(Sitecore.Context....
Vinesh's user avatar
  • 117
2 votes
1 answer
77 views

BundleTransformer: AssetTranslationException Could not find factory

I am using BundleTransformer for bundling the css and javascript. This is working fine with my Sitecore 9.3's MVC solution. I just upgraded sitecore to 10.3 and deployed the managed code. There is an ...
Yeshwanth's user avatar
0 votes
2 answers
91 views

How to get child items specific format

I need show the product and Version from the below folder structure. Please help to achieve on this. Requirement Screen Shot Sitecore Folder Structure So far I wrote some code for review var item = ...
Hasanshali's user avatar
1 vote
2 answers
250 views

This "Sitecore.Mvc.Analytics.Pipelines.Response.CustomizeRendering" is not found in Sitecore.Mvc.Analytics10.0.3

We are in the process of converting Sitecore 9.0.2 MVC project to Sitecore 10.0.3. The following code was used to convert the shorthand like site:$datafolder/Home/Banne to the absolute path in the ...
Eshu Kumar's user avatar
1 vote
1 answer
411 views

Unable to submit MVC form with Interface model type in Sitecore 9.3

Currently we're using view rendering for login form but as per new requirement we need to change to Controller rendering to perform some logic in backend during submission. This looks like as given ...
Sukhjeevan's user avatar
1 vote
4 answers
544 views

How to Remove Dependable Links when deleting item using item.Delete()

We are programmatically removing items using item.Delete() in C#. Deleted items that were linked to other items are appearing as broken link When manually deleting in Sitecore we get options like ...
Sylesh JL's user avatar
  • 169
0 votes
0 answers
117 views

Base URL is not coming correctly in AJAX call on landing page of sub site

My current Sitecore project has a multisite with URL structure as follows www.MainSite.com www.MainSite.com/SubSite Whenever I do an AJAX call from the subsite landing page the base URL is coming as ...
shahul's user avatar
  • 47
0 votes
1 answer
37 views

{virtualFolder} in route config is not taking full path defined on the site defnition file

My current Sitecore(9.0.2) project have multisite implementation with URL structure as follows Url: www.MainSite.com virtual folder:/ Url: www.MainSite.com/SubSite virtual folder:/SubSite Url: www....
shahul's user avatar
  • 47
1 vote
0 answers
46 views

Session from GetPageItemProcessor is null in Service layer

I am having a PageUnavailableProcessor, which extends GetPageItemProcessor. This Processor helps in redirecting to a user-defined Page for all 403 errors (we are tagging the pages by language and ...
Yeshwanth's user avatar
1 vote
1 answer
80 views

Sitecore: Foundation Project - Views Folder is not getting deployed during solution rebuild

During local solution rebuild or in Dev/QA deployments, one of my Foundation project's Views folder is not getting deployed to the webroot. Note: All the views folder from all the feature projects ...
Gajalakshmi Govindarajan's user avatar
2 votes
2 answers
94 views

Error when adding a layout and connecting it to host page (Sitecore Technical Training)

I keep receiving this error below. I am not sure if there is a dependency I am supposed to install. Currently using Sitecore rocks to my VScode and when I create a Sitecore view layout and try to tie ...
Guillermo Hernandez's user avatar
0 votes
1 answer
626 views

Server Error in '/' application. Parameter name: sessionStateBehaviorResolver - Sitecore 9.3

I am having issues with the connection of Sitecore after I tried to connect VS Studio 2019. The Solr is running and my server seems fine. Sitecore was running just fine until I tried to build a ...
Guillermo Hernandez's user avatar
0 votes
0 answers
88 views

HttpNotFound with custom 404

In one of our MVC controllers we have: public ActionResult Index() { return HttpNotFound(); } This HttpNotFound will set the StatusCode to 404. We would like to 'catch' this 404 status code and ...
Centiyo's user avatar
  • 31
0 votes
1 answer
659 views

Unpublish an item using Experience Editor Mode in Sitecore

I have a requirement to be able to unpublish an item using experience editor mode in Sitecore. It requires to either unpublish a module as a whole or to unpublish a particular item from that module(as ...
user7745's user avatar
0 votes
2 answers
1k views

How to add Javascript methods in MVC view when jquery will load later

I think Sitecore devs may have experienced this and hence posting here. I would like to add Javascript methods in a view. But jQuery is referred in the body tag at the end (moving to head is not an ...
sukesh's user avatar
  • 3,089
0 votes
2 answers
568 views

Dynamically generated PDF display on browser Issue with Sitecore MVC

I am trying to display PDF on the browser with Sitecore MVC. The PDF is generating dynamically from back-end. Below are approaches I tried and also given outcome. Approach 1: public ActionResult ...
venkat's user avatar
  • 398