https://discord.umbraco.com
Join Discord
v13 Best way to transform External Index properties
h

Hooky

about 1 year 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
  • 194
How to redirect azurewebsites.net domain when hosting as an Azure Web app?
t

TackleMcClean πŸ…

over 1 year ago
Setting up a .NET web app on Azure nets you an automatic `projectname.azurewebsites.net`domain. But you might also opt for setting up a custom domain. Doing so you probably want all your traffic to go to the custom domain, effectively redirecting all requests to the automatically assigned azurewebsites domain to your custom domain. How would you go about setting this up? Years ago one would use the web.config file. Is this possible to use in modern .NET Core contexts? My limited knowledge on this says that web.config is for IIS servers, while newer solutions - inlucing Umbraco - use the Kestrel server.
t
m
+3
  • 5
  • 14
  • 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
[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
  • 193
SQL Timeout's & Locks
i

Ian Houghton

10 months ago
We have both a V8 & V13 website running on Azure appservice which is Plan S1 and Azure SQL Server S0 / 10 DTU's. The site has about 50k+ nodes in the tree. We're seeing a huge amount of SQL timeouts and locks, which we're trying to resolve. What specification of appservice & SQL database's do other people use? The database is setup with DTU based pricing, should we be using a v-core based database? We've followed the recommended Azure setup here: https://docs.umbraco.com/umbraco-cms/13.latest/fundamentals/setup/server-setup/azure-web-apps
i
k
+6
  • 8
  • 33
  • 192
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
  • 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
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
  • 188
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
  • 187
Previous131415Next

Umbraco

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

Powered by