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
2 answers
35 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 ...
user avatar
0 votes
0 answers
21 views

Show Subcategories based on user selected Category [closed]

I have one component requirement where on page load it show some categories. Based on category selected by user on front end I want to show sub category and go back option. how to implement that in ...
user avatar
  • 1
0 votes
0 answers
34 views

Purpose of sitecore.mvc.prefetchedtypes.config and sitecore.services.prefetchedtypes.config files

In the process of upgrading from SC 8.2 to 10.2 and had a lot of versions to update for various assemblies in web.config. During the process, I stumbled upon two config files, sitecore.mvc....
user avatar
0 votes
1 answer
58 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 ...
user avatar
0 votes
0 answers
62 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 ...
user avatar
  • 31
0 votes
1 answer
223 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 ...
user avatar
0 votes
2 answers
391 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 ...
user avatar
  • 2,573
0 votes
2 answers
352 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 ...
user avatar
  • 369