Richard Seal
Moderator
  • Member for 5 years, 4 months
  • Last seen this week
Manage different css folder for one sxa site
1 votes

You can do this by creating a Page Design and choosing a different theme for that Page Design, then you can select the new Page Design for your page, or associate your page template with that new Page ...

View answer
Implement custom session-like cache in Sitecore
1 votes

I have done something similar, although not exactly a custom cache that is the equivalent of a Session State. In my project we used couchbase although the principles could easily be applied to Redis ...

View answer
DisableWebEdit in a Scriban template
Accepted answer
1 votes

Instead of using {{i_item.Title }} you can use the raw value of the field, that will only render the fields contents and will not add the experience editor ability: {{i_item.Title.Raw }} This will ...

View answer
How to add Javascript methods in MVC view when jquery will load later
2 votes

The easiest method would be to remove your dependency on jQuery and just write vanilla JS. There are a lot of benefits to this, while jQuery used to be really useful, there is very little reason to ...

View answer
Css not reflecting in sitecore modal window
1 votes

The way you have the code setup, you are bypassing Sitecore and just rendering an MVC View using @Url.Action in a new window. If you want to take that approach, you would need to add a reference to ...

View answer
How to go about multiple inheritance for code
2 votes

So if you want to match exactly your template inheritance, then your SpecificProduct should derive from BaseProduct as you have it already. There are a couple of principles you should follow here tho: ...

View answer
LinkManager.ResolveTargetSite is obsolete - what is the replacement
Accepted answer
2 votes

I think its a typo in the obsolete message and they want you to use the IItemSiteResolver instead. If you follow the LinkManager.ResolveTargetSite code through, eventually it gets to this method: [...

View answer
Was Asset Optimizer's optimized.min having multiple language version intentional?
0 votes

I don't think there was an intention to have this effect, it sounds just like a side effect of the CSS file being an Item in Sitecore. Unless you have language fallback enabled, trying to request any ...

View answer
How can we hide the "publish all" button from the work-box?
2 votes

In short, you can't only hide the Publish (All) button. You would have to hide both the Publish (Selected) and Publish (All) buttons. The Publish (Selected/All) button, is an action available when ...

View answer
Update Class of Iframe by Rich Text Editor
3 votes

The Below Answer, while answering the main question, is NOT recommended! The short answer here is that OOTB no, you cannot and should not do this via the RichTextEditor. To be able to modify html/css ...

View answer
How can I render a "stub" one-line div for renderings hidden by personalization rules instead of having them completely removed from the DOM?
2 votes

You don't need to modify any piplines to do this. Create your component that renders the non-visible div, and then in your personalization, create a rule that runs only when your component is hidden. ...

View answer
What is the Edit Mode Panel component?
Accepted answer
1 votes

According to the documentation, the Edit Mode Panel creates a placeholder to embed other renderings that are visible to authors in Edit mode only. So a use case might be where you want some fields on ...

View answer
Can I have one external MVC solution in Sitecore Solution
1 votes

If its a separate application that is not connected to Sitecore in anyway, then you can use a virtual folder or application in IIS to set it up, and then you simply need to add that folder name to the ...

View answer
A public action method 'ReusableIndex' was not found on controller after 9.3 Upgrade
1 votes

It looks like this is due to a breaking change somewhere between SXA 1.8.1 and SXA 9.3. In 1.8.1 the RichTextController looks like this: public class RichTextController : VariantsController { ...

View answer
page template and his base template instance items
Accepted answer
2 votes

I think there is some confusion here about how the template inheritance works in Sitecore. Let's say you have Template B with Field BB, and Template A that has Field AA. Template A also inherits ...

View answer
Getting new cumulative Sitecore Support packages into DevOps
1 votes

I would recommend that you exclude the Sitecore binaries from your deployment. This would prevent them from overwriting any existing Sitecore binaries, any Sitecore patch/hotfix binaries and also it ...

View answer
When to use Sitecore.Context.Items and why?
Accepted answer
12 votes

Sitecore.Context.Items is a collection that exists for the lifetime of the http request. I use that collection for times when I need to store some data as part of a request where I will need that ...

View answer
Is it possible to show custom version label instead of regular Modified by label in version selector?
Accepted answer
2 votes

It is possible, but not simple. The dialog in your screenshot is located here: {webroot}/sitecore/shell/Applications/Content Manager/Galleries/Versions/Gallery Versions.xml And the code beside is: ...

View answer
Publishing/Deploying with Helix Publishing Pipeline
Accepted answer
3 votes

My guess is that you have added the HPP Website project to your Helix Projects folder, and so its trying to add a reference to itself and getting into a Circular reference. When I use HPP I set my ...

View answer
Why is Display Name and the Item Name in the URL resolving to the same item
Accepted answer
4 votes

This is how Sitecore works with item resolving. It will resolve via Item Name or Display Name. Setting the useDisplayNames in the LinkProvider will have zero effect on how Sitecore resolves the item ...

View answer
Clone SXA OOB component javascript
Accepted answer
1 votes

The way I do this is to create a copy of the JavaScript file, in this case component-search-results-count.js and add that to my theme, or create a custom base theme. As for the base theme, I ...

View answer
Best practices - Sitecore website in Prod - local or remote Sitecore databases?
Accepted answer
3 votes

No this is not a suggested or common approach... at least I hope it is not. SIM is for local development environments only, it is not to be used for installing Sitecore in QA/Production environments. ...

View answer
How to find errors that referenced in Error logs?
3 votes

You could do this with the Broken Links report in Sitecore PowerShell Extensions. Install the latest version of Sitecore PowerShell Extensions In the reporting menu, find the Broken Links report: ...

View answer
Azure Search queries including too many results due to extra wildcard in fullpath_1 query with space
Accepted answer
2 votes

Rather than use the string based full path, use the IEnumerable<ID> Paths property: var filterPredicate = PredicateBuilder.True<SearchResultItem>(); filterPredicate.And(x => x.Paths....

View answer
SXA differences between Partial Design and Metadata Partial Design
Accepted answer
2 votes

The main difference is how the components are rendered in the experience editor when editing the partial. When editing a Meta Partial Design, it uses a special Metadata Snipped Layout.cshtml. This ...

View answer
How to serialize a parent item and some of it's child items as new Item only
Accepted answer
2 votes

You will need 2 configurations for this as the evaluator works per configuration. Your first configuration should serialize the parent and exclude children. Your second configuration can include the ...

View answer
Is there a pipeline/processor or way to have dynamic Field Titles for fields shared across multiple templates?
1 votes

The short answer is, no there is not a place you can hook into for this. As for other options, a general good practice would be to not inherit that field for every single derived template and have ...

View answer
Customising FXM beacon tracking
Accepted answer
3 votes

Looking at the Sitecore.FXM.Bundle.config shows that the beacon is constructed via a processor in the preprocessRequest pipeline: <preprocessRequest> <!-- **** Bundles registered when ...

View answer
Adding custom component into experience editor throwing error
Accepted answer
1 votes

It looks like you are missing a using statement: Message: c:\inetpub\wwwroot\sc92sc.dev.local\Views\SimpleComponent\Title.cshtml(3): error CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a ...

View answer
Sitecore personalization based on at least two pages visited from set of pages
Accepted answer
3 votes

Mahendra almost has it right, but for the rule that should be triggered if 2 or more pages have been visited, you would need to use a combination of Profiles and Values. Create a Profile Card for ...

View answer
1
2
3 4 5
12