https://discord.umbraco.com
Join Discord
How do i use a custom model in an Umbraco page?
t

TigerMan

almost 2 years ago
I have an Umbraco Document Type and a template with the same name. I create a page in Umbraco and can view the page with the details entered. On this page i now would like to build a form so it can be submitted. As soon as i declare the model in the top of my cshtml file, i get an error about the ViewData (ViewDataDictionary) is of type X but this method requires Y. How am i supposed to set this up so both the content from Umbraco work and my custom form would work?
t
a
s
  • 3
  • 2
  • 185
v13 Best way to transform External Index properties
h

Hooky

12 months ago
Hi all 👋 I'm currently migrating a solution up to v13 from v8. It previously had a custom index for dealing with some products which had some custom values in that index. We're trying to remove this custom index and just rely on the ExternalIndex as is recommended however we would still like to include/transform the custom values. What/how/where is the best place to do this? Can I just create an IndexPopulator and amend the external index that way and if so is this just a composer I'd need to register in order for it to work or should it be attached to a Notification handler for example. How does a custom index populator behave in relation to the default OOTB one (will it run after)? Any help or advice would be great
h
d
j
  • 3
  • 11
  • 184
Examine - Field $facets was not indexed with SortedSetDocValues
b

Bram

over 1 year ago
I'm currently using the newest beta version of Examine to use faceting in an Umbraco13 site. After adding a new language (added Dutch to the already existing English) I get the error: 'field "$facets" was not indexed with SortedSetDocValues' Is anyone familiair with this? It seems to be something going on withing Examine since I do not specify a field called '$facets"
b
n
r
  • 3
  • 17
  • 183
TailwindCSS Block Grid views
d

David Peck (Peck Tech)

over 1 year ago
To be totally honest, I'm hoping someone more cleverest than me has already created views to render the Block Grid using Tailwind classes, and is also generous enough to share them? We had a go and have found it really hard. I can offer lots of positive energy in return. 🤗
d
p
d
  • 3
  • 9
  • 183
How to get current culture?
h

Holm76

over 1 year ago
Our site currently has two languages with some parts of the site displaying prices in localized currencies. How to detect if site is domain.com or domain.com/da? And get the current culture of the site?
h
s
+2
  • 4
  • 4
  • 182
Session variables in server side- Umbraco 12
r

Ramya Devendiran

almost 2 years ago
I am working on COMPARE function in a product listing page. I created a UmbracoAPIController to maintain the session variables. I do a AJAXCALL to set, get and delete session variables. It is working fine in localhost. But it is not working in live website. Is my solution to use UmbracoAPIController correct? If not , please suggest an alternative solution.
r
r
+2
  • 4
  • 5
  • 182
Images not displaying in frontend but available in backoffice
p

PascalEugster

about 1 year ago
We've got a problem that the images are not displaying in the frontend but are available in the backoffice so the file is there and you can view it. In the console there is the following error. An unhandled exception has occurred while executing the request. SixLabors.ImageSharp.UnknownImageFormatException: Image cannot be loaded. Available decoders: - TIFF : TiffDecoder - BMP : BmpDecoder - TGA : TgaDecoder - QOI : QoiDecoder - GIF : GifDecoder - PBM : PbmDecoder - Webp : WebpDecoder - JPEG : JpegDecoder - PNG : PngDecoder I think it has something todo with the cache because we usynced these images from staging to localhost
p
d
s
  • 3
  • 17
  • 181
Skybrud Redirects (Umbraco v13) - static file / media based redirect rules not triggering
n

Nik

about 1 year ago
Has anyone seen static file redirects not triggering with SkyBrud? Working on a site that has been migrated to v13 (originally v7 => v8, now v13). Skyrbud was installed back in the v8 days and has a large amount of redirects in it, however all of the ones that seem to be for static files / media items (i.e. end in a file extension) are not triggering, If the file extension is removed in the redirect rule and from the requested URL they trigger. I'm not really sure where to start my investigation with this, so looking for some pointers.
n
j
a
  • 3
  • 8
  • 180
cron expression support for background tasks in Umbraco
j

Jason

over 1 year ago
Going to nerd snipe @Andrew McKaskill and @Sebastiaan for this 😁 I'm looking at getting an alternative to
IRecurringBackgroundJob
up and running that supports cron expressions (human time) rather than delay/period timespans (machine time). Do either of you know if anyone's working on cron support? I can see there's already a cron parser library in there but it's only used for first delay internally.
j
h
+3
  • 5
  • 28
  • 179
Forms Header issue
c

Craig100

over 1 year ago
V13.2.2 + UF V13.1.1 I have an Umbraco Form embedded in a page which itself receives a form post from another page to populate some of it's content. When the form is submitted and the page is reloaded to show the "Thank you" message, I get an exception of : "InvalidOperationException: This request does not have a Content-Type header. Forms are available from requests with bodies like POSTs and a form Content-Type of either application/x-www-form-urlencoded or multipart/form-data." I'm happy to do without the originally posted info, but can't work out how to detect "if(no content-type header){}" and let the rest of the page load. If there is a way to have UF pass on the info or a Content-Type header I'd be very pleased to hear it. I doubt ViewData etc, would work in this instance. Any thought? Thanks.
c
s
  • 2
  • 6
  • 178
Previous131415Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by