https://discord.umbraco.com
Join Discord
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
  • 173
Not sure how to use umb-table
m

mz10ah

over 1 year ago
Hi, I am wondering how to get the select all box working as by default, its marked and I can't even get it unchecked. Also the sorting/unsorting isn't working either. Now I am sure I need more code than what I have copied from the API doc but if anyone could guide me a bit here, that would be appreciated. Here is my code:
html
<umb-table
                  ng-if="vm.items"
                  items="vm.items"
                  item-properties="vm.options.includeProperties"
                  allow-select-all="vm.allowSelectAll"
                  on-select="vm.onSelect"
                  on-click="vm.onClick"
                  on-select-all="vm.selectAll"
                  on-selected-all="vm.onSelectedAll"
                  on-sorting-direction="vm.onSortDirection"
                  on-sort="vm.onSort"
               >
               </umb-table>
js
vm.onSelect = onSelect;
      vm.onClick = onClick;
      vm.selectAll = selectAll;
      vm.onSelectedAll = onSelectedAll;
      vm.onSortDirection = onSortDirection;
      vm.allowSelectAll = true;
      vm.onSort = onSort;

      function selectAll($event) {
         alert('select all');
      }

      function onSelectedAll() {
         return true;
      }

      function onClick(item) {
         console.log('clicked', item);
         alert('click node');
      }

      function onSelect(selectedItem, $index, $event) {
         alert('select node');
      }

      function onSortDirection(col, direction) {}

      function onSort(field, allow, isSystem) {}
https://cdn.discordapp.com/attachments/1194969651894026330/1194969652032454696/0.png?ex=65b24936&is=659fd436&hm=94008e1a22d39aaa6f174c0e44d1e42cb625daacaafafae0e336b475fc233165&
m
j
  • 2
  • 8
  • 172
How do i use a custom model in an Umbraco page?
t

TigerMan

over 1 year 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
  • 172
βœ… Image focal points - how do they actually work?
j

jacksorjacksor (Richard Jackson)

almost 2 years ago
Morning all! In the Media section you can [set image focal points](https://docs.umbraco.com/umbraco-cms/tutorials/editors-manual/media-management/cropping-images) which set the center point for image resizing, to my current understanding πŸͺ„ by magic πŸͺ„ How does this actually work? Where is the x/y co-ordinates of this property being set? How does this property then work with the CSS to define what parts of the image should be viewed? The reasoning behind this question, aside from wanting to understand the magic, is that I wanted a full viewport height image (Snippet 1) to display on a page which adhered to this focal point. However, using the
background-image
style of a
div
ignores this focal point. Snippet 1: full viewport height image, ignores focal point
<div class="bg-image" style="background-image: url('@imgUrl'); height: 100vh"></div>
I spent a short while looking in the database to find where the focal co-ordinates would be stored, more for my own interest, but couldn't find them. TIA! Rich
j
d
s
  • 3
  • 10
  • 171
Retrieving multiple content types with the delivery api (newbie question)
u

_tommadden

about 1 year ago
TLDR; is there a content delivery api cheatsheet (not the docs) like Seb did back in the Razor days? I'm struggling how to find the best way to get a page and it's children (for a listing page) in a single api call. I can see how to get the children on their own. In my case I have a content type for the listing page and one for the child types, so I thought I'd try that way, but I can't figure out how to pass in multiple types. I've tried reading the docs and tried several ways to do this in Swagger, but with no success. My last resort will be to get all content and restrict the fields I return, but I thought I'd check for a 'better' way of doing this. Thanks
u
s
b
  • 3
  • 3
  • 169
cron expression support for background tasks in Umbraco
j

Jason

about 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
  • 169
Get ID's of all published pages?
b

Bodie

over 1 year ago
In Umbraco 13, is there an way, (possibly via the Content API?) to get a list of all published nodes? For example (1003,1008,1018,1019) etc.
b
s
c
  • 3
  • 7
  • 169
How to get current culture?
h

Holm76

about 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
  • 167
[Solved] PDF Generator
c

Craig100

about 1 year ago
Is there a decent PDF generator for Umbraco that works with V13? I've tried the WebWonders one but it won't install and looks like it hasn't been updated in a long while.
c
d
+5
  • 7
  • 83
  • 166
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
  • 166
Previous121314Next

Umbraco

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

Powered by