https://discord.umbraco.com
Join Discord
Retrieving multiple content types with the delivery api (newbie question)
u

_tommadden

over 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
  • 195
Programmatically creating block list items, and saving to page
l

Lewis Heaton

over 1 year ago
I have a page in Umbraco 13, i'm trying to create a few block list items, then save this to the page. The page is being generated fine when i comment out the setValue for setting the block list item. I found a our.umbraco post from 2020, which pointed to https://github.com/umbraco/UmbracoDocs/blob/e64ec0e5b28b4e5a37b7865691621e45dd82701f/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Block-List-Editor/index.md which is what i followed. Any docs / suggestions on how to get this working?
l
d
  • 2
  • 7
  • 195
[SOLVED] Multiple External Member Login Providers in .Net Core (v12)
a

andyc

over 2 years ago
I've been trying to get a v12 site working with multiple Azure AD accounts (something that's been running fine for years on v7) but I've hit a wall. Works fine with one and I can trigger the SSO process for more than one but the postback from the provider always fails for any provider but the first one. I suspect this is something to do registering the schemes in a certain way but can't find any helpful documentation. I know this is possible I just seem to be missing something. Among other things, I've tried adding multiple
builder.AddMemberExternalLogins()
and also multiple
memberAuthenticationBuilder.AddOpenIdConnect
within that and they both throw
Exception: Unable to unprotect the message.State
Any ideas?
a
d
  • 2
  • 9
  • 195
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
  • 194
Get ID's of all published pages?
b

Bodie

almost 2 years 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
  • 194
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
  • 193
Not sure how to use umb-table
m

mz10ah

almost 2 years 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
  • 193
How to minify and compress Assets (css,js) when publish front-end umbraco cms?
m

moondoan

about 1 year ago
I want to automatically minify the CSS and JS files in the assets folder when publishing. Is that possible?
m
s
+3
  • 5
  • 6
  • 191
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
  • 190
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
  • 189
Previous131415Next

Umbraco

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

Powered by