All Questions
420
questions
0
votes
1
answer
68
views
Loop through a subset then the main set C#, Razor, linq, Umbraco
I am trying to add a featured items feature to my page in umbraco where people can add the pages they want to highlight and then compare those IDs with the search results and output the featured items ...
0
votes
1
answer
124
views
Umbraco 10 : Detection of browser / userAgent on localhost
I have installed an instance V12 locally.
I'm trying to check for mobile and other devices
The error message im getting is this one:
An error occurred during the compilation of a resource required to ...
1
vote
1
answer
952
views
Umbraco 11 get current page in block grid item component
I am creating a component to add to a block grid so I have the following razor page cshtml
@using Umbraco.Extensions
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models....
1
vote
1
answer
254
views
Using OR operator in Razor view
Let me explain my scenarios. I'm building a multi site umbraco site. I got two type of homepage content type alias. (Assume XXXX and YYYY). I'm using var homePage in my common NavMain.cshtml partial ...
1
vote
1
answer
57
views
Sorting string with number in Umbraco Razor
In a Umbraco site I have an address in a string, so that string will contain a number, like: Street Road 2, Street Road 14, Street Road 22b etc.
I am sorting the list by address (among other values)
...
1
vote
1
answer
60
views
ASP.NET MVC redirect - how to open in new window
I have the following template which redirects the user which works fine, how can I get it so it opens up in a new window?
@{
Layout = "Master.cshtml";
var links = Model.Value<...
1
vote
2
answers
2k
views
Using Blazor components (Telerik / MudBlazor) in Razor ASP.NET Core MVC
I have tried (unsuccessfully) using Telerik and / or MudBlazor components in Umbraco - ASP.NET Core 6 MVC razor view application (running razor components on razor views - hence Blazor components, ...
0
votes
1
answer
590
views
Umbraco v9 Convert IEnumerable<IPublishedContent> search result (examine) to strongly typed models
I have created a ViewComponent, where it gets the search string parameter to search through Umbraco content. I have implemented the search and the possible results are of IEnumerable. This part is ...
1
vote
2
answers
141
views
Umbraco Sitemap - error CS1525: Invalid expression term '<'
Umbraco newbie here. I'm following the documentation below to create a sitemap in Umbraco 8.1:
https://our.umbraco.com/documentation/tutorials/Creating-an-XML-Site-Map/
Everything seems fine but when ...
0
votes
1
answer
512
views
Configuration Error - Sections must only appear once per config file
I'm getting he following exception
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and ...
0
votes
1
answer
334
views
Issue with a href link
I know it might look like a silly question but I am asking after spending a lot of time to figure it out.
I am trying to figure out from where the following link opening a window to download files
<...
0
votes
1
answer
192
views
The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Media(params int[])' and 'Umbraco.Web.UmbracoHelper
I tried recently to upgrade my website from U7.15.6 to U8. I just copied /bin /umbraco /config to my current website using FileZilla
When I tried to roll back to U7.15.6 I got the following error:
...
0
votes
1
answer
411
views
Umbraco 8 how to render pdf's first page as an image thumbnail on my site?
I am currently using Umbraco Version: 8.5.3 and I have used media picker to select the pdf file and it displays the link on the site.
What I want now is to get the first page of the pdf and display it ...
1
vote
0
answers
119
views
Search content based on Parent node id or the current id of the page in Umbraco
I would like to implement a search functionality, but not the entire site search. Instead, search contents based on the node id .
for example the below is search code
@inherits Umbraco.Web.Mvc....
1
vote
0
answers
58
views
Why does Model validation works differently on my local vs on the live server?
I have a website (Umbraco based) with a simple form. This form contains a file upload field.
My model has this property:
[MaxFileSize(5242880, ErrorMessage = "File to big. Max: {0} bytes"...