https://discord.umbraco.com
Join Discord
Block Grid: Reusable layout template file
a

Abra

over 1 year ago
I'm experimenting with the Block Grid feature and trying to understand how to set up various layouts. Currently, we use a Document Type Grid Editor that allows for a grid layout with four distinct column configurations: Two columns with a 66% / 33% split Two columns with an 83% / 16% split Four columns, each 25% width A single full-width column I've created an element type for the layout and defined the Areas within the Block Grid settings. Additionally, I've made a corresponding .cshtml file for the element type that contains the following line: @await Html.GetBlockGridItemAreasHtmlAsync(Model) However, when I attempt to add another Block using the same element type to specify a different area layout, the option is disabled. I guess it is becuase I have already added that element type. Do I need to create a separate element type and associated template file for each of my layout definitions, even though the template only includes the line @await Html.GetBlockGridItemAreasHtmlAsync(Model)? Ideally, I'd like to be able to reuse the template for different layouts. Is this possible?
a
d
  • 2
  • 4
  • 66
Search for multiple fields
p

PascalEugster

over 1 year ago
Hey everyone 🙂 I've wanted to ask if there is a possibility to search for multiple fields with the Query Builder. We've did it in the past with examine Raw Queries but it seems not to work with the query builder itself. This is what my code currently looks like
C#
        private IEnumerable<Glossary> DoIndexSearch(string query, int page, int pageSize, IIndex index,
            out long totalResults)
        {
            var results = index.Searcher
                .CreateQuery(IndexTypes.Content)
                .NodeTypeAlias(Glossary.ModelTypeAlias);
            
            if (!query.IsNullOrWhiteSpace())
            {
                var queryFields = new[] { "nodeName", "teaser" };
                results = results.And()
                    .GroupedOr(queryFields, query.MultipleCharacterWildcard());
            }

            var searchResults = results.Execute();

            if (searchResults == null) return DefaultSearchResult(out totalResults);

            totalResults = searchResults.TotalItemCount;
            var pagedResults = GetSearchResults(page, pageSize, searchResults);

            return pagedResults;
        }
p
d
  • 2
  • 3
  • 66
Upgraded umbraco results in "Unable to determine member password hashing algorithm"
m

m1k1ot1

almost 2 years ago
After we upgraded Umbraco from 7 to 11.1, users can't seem to log in with their passwords and they need to reset them. While checking password on logon, Umbraco logs following error for some members "Unable to determine member password hashing algorithm", and it returns negative result. Is there any way I could catch this error so I could automatically send them mail for resetting password? Or way to make these old passwords work again maybe? I'm open to suggestions if you have any. Thanks
m
j
  • 2
  • 7
  • 66
Issue with assigning Vary by culture to existing property (DocumentCultureVariationDto error)
c

Cesar

over 1 year ago
I'm struggling with the issue that is also described here: https://github.com/umbraco/Umbraco-CMS/issues/11771. When trying to apply Vary by Culture to an existing property on a document type with Vary by Culture enabled, I get an error that says "The existing DocumentCultureVariationDto was not found for node x and language y". This blocks us from using the property in different locales. Does anyone know a solution or work around? We could create a new property with vary by culture on as a replacement, copy the content over for all the sites and remove the old non-very by culture property, but this is a very cumbersome and undesirable approach. The project is using Umbraco 13.1.0. To reproduce: 1. Create a document type with Vary by culture enabled 2. Add a property that does not have Vary by culture enabled 3. Add a second language to the project 4. Create a node of the document type in the other, new language 5. Try to enable Vary by culture for the property 6. See the exception pop up when trying to save the document type https://cdn.discordapp.com/attachments/1256162148267069462/1256162148846141440/image.png?ex=667fc3aa&is=667e722a&hm=3597c16bd3e3fd3b2014135e0cd86eb8d67cb76e3614e274d6267f4f793c3f25&
c
  • 1
  • 1
  • 65
Unable to build stylesheet for your design
b

BucknerSanFrancisco

over 1 year ago
I apologize if this isn't the best place to ask this - I'm not sure if this is a uSkinned issue or Umbraco issue.. I keep getting this error when trying to save and publish any changes to my design theme using uSkinned 5.2.0 on Umbraco 12.3 Error logs show USN Error: Stylesheet generation - "The input string 'rg' was not in a correct format." SourceContext='USNSiteBuilder.Core.Helpers.Frontend.DesignStyleService' Umbraco.Cms.Web.BackOffice.Controllers.ContentController.PostSave (Umbraco.Web.BackOffice) Any advice? thanks!
b
j
  • 2
  • 2
  • 65
[Issue Opened] v13 weird timezone issue on SQL Server Express vs SQLite
o

Owain Jones

over 1 year ago
Hi, I just ran into this issue in v13.2.2, I created some code that shows the elapse time since a Node has been Published, by converting the Update Date to UTC and subtracting it's Ticks from DateTime.UtcNow.Ticks, to get the time difference in seconds. (can then convert that to minutes ago, hours ago, and days ago etc...) Whenever I work with DateTime calculations, I always convert to UTC to make sure the dates I'm manipulating match up. This all works fine, but the Create Date and Update Date that Umbraco returns, is different depending on if I run SQLite or SQL Server Express!
o
k
  • 2
  • 20
  • 65
Deploying upgrade from 10 to 13 on Umbraco Cloud
c

CodeSharePaul

over 1 year ago
Good morning. I have my first v10 to v13 upgrade for a cloud project today. I've done all of it locally and it works great. I just need to deploy it to Cloud now. Do I still need to delete the bin, obj and NuCache folders on cloud like i did locally and if I do, when do I do it timingwise?
c
s
+3
  • 5
  • 73
  • 65
Umbraco Cloud Project: Backoffice Invite to Client "Unauthorized for this back office, User locked"
t

Tom Chance

almost 2 years ago
Hey All, Just invited a user to an Umbraco Cloud project via the Projects backoffice. They signed up via the invite link but are seeing "The user was authenticated via Umbraco ID, but unauthorized for this back office." How would that be the case when they were sent the invite "from" the project they are meant to have access to? https://cdn.discordapp.com/attachments/1195373539902103552/1195373540086661210/image.png?ex=65b3c15c&is=65a14c5c&hm=08b776f6873a2c77993fbd18f10d100eed3792d9d5215d5b4ec545605a1eb3f2&
t
s
  • 2
  • 2
  • 65
Upgrade from 12 to 13?
j

jonroberts

almost 2 years ago
Hi - we have built a lot of custom CMS Block Grid controllers to set up the CMS styled blocks. in 12. If we finally upgrade the CMS to 13 (when it comes out) will we need to revisit these CMS blocks to replace the AngularJS or is AngularJS remaining in 13 +? Thanks
j
s
+2
  • 4
  • 12
  • 65
Is it possible to programmatically add several Media items to a mediapicker in Umbraco 13?
s

snekman

10 months ago
It's easy enough to do content.SetValue("mediapicker", media.GetUdi()) but how do you do it for multiple images?
s
j
+2
  • 4
  • 4
  • 64
Previous363738Next

Umbraco

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

Powered by