https://discord.umbraco.com
Join Discord
RTE in custom property editor Umbraco 10 -> 13
w

Wiggy

over 1 year ago
I have a custom property editor in Umbraco 10 which renders a lovely RTE:
html
<div ng-controller="HotspotEditor.HotspotRTE.Controller" class="">
  <form>
    <umb-property-editor class="umb-property-editor umb-rte" model="RichtTextEditor" />
  </form>
</div>
js
$scope.RichtTextEditor = {
        label: 'bodyText',
        description: '',
        view: '/umbraco/views/propertyeditors/rte/rte.html',
        config: {
            editor: {
                toolbar: ["ace", "undo", "redo", "cut", "styleselect", "bold", "italic", "alignleft", "aligncenter", "alignright", "bullist", "numlist", "link", "unlink"],
                stylesheets: ["rte"],
                dimensions: {},
                mode: "classic"
            }
        },
        value: $scope.model.value.hiddenContent
    };
I have migrated the application to Umbraco 13 and the RTE no longer renders. The rest of my custom property editor is fine. Does anybody know if something would have changed between 10 -> 13? I can't find any documentation or examples anywhere of how to use backoffice UI elements for v13. Should I be looking in the Umbraco src code or existing packages for this? Any help of where to start looking would be really appreciated!
w
j
  • 2
  • 9
  • 203
How to make working automatic converting of all images to webp in Umbraco 13?
m

Marian

over 1 year ago
Hello. Under Umbraco 13 project, I have tried to add the following line: app.UseImageSharp(); to startup app code. Than I have added a test Document Type with Media picker property and a cshtml View to show it. Created a node of that document type, uploaded a jpg or png file to its media picker and published the page. Then I run the project, opened this page containing images (jpg or png) locally in Chrome browser and saw that for some reason the images are NOT receiving as webp (in Type column of Chrome's Network tab). Type column shows original jpeg or png type, and not webp as expected. NOTE: Earlier I used exactly the same flow under Umbraco 12 (added the same single line of code, without any additional settings) - and there it worked, so all the images are receiving as webp type (in Type column of Chrome's Network tab). Could you please advice how to achieve the same behavior under Umbraco 13 (with as less efforts as possible)? Thanks.
m
c
+6
  • 8
  • 24
  • 203
Get document of a specific type
g

gregor.tusar

9 months ago
I created a document of a specific type that contains a configuration for some component. What is the best way to get this document out of the content tree? Checking the docs here: https://docs.umbraco.com/umbraco-cms/reference/querying left me confused a bit. For now I went with the following apporach:
var config = umbracoHelper.ContentAtRoot().DescendantsOrSelfOfType(MySpecialConfiguration.ModelTypeAlias).FirstOrDefault() as MySpecialConfiguration;
I know that there is only one config of this type so
FirstOrDefault()
is not problematic here. Is traversing the tree like that very consuming? Is it the correct way of getting the config ?
g
r
+3
  • 5
  • 14
  • 202
[Solved] How to get an IMedia from a MediaPicker in a POC controller
c

Craig100

almost 2 years ago
Umb 10.6.1 In a controller, I'm deleting a content node and need to delete it's associated image held in a single image media picker. If I've got
var eventImage = eventItem.GetValue("eventImage")
giving me a key and a mediaKey as guids, I'm guessing that's the reference to the media picker. How do I get from there to an IMedia that I can use in mediaService.MoveToRecycleBin(IMedia, int32)? Thanks.
c
a
  • 2
  • 13
  • 200
Umbraco 13 deploy to IIS failes.
a

Abradolf Lincler

over 1 year ago
Hey, i have issues deploying app to the server. I'm frustreted cause i've been doing it for 7 hours now. I've played with all the settings' variations as well as with connection string and in some scenarios it shows "Umbraco boot failed" in other "error 500.30" and "403 forbidden". I've noticed that after publishing there's no ASP.NET section in my app. Only IIS and Managmeent whereas in other app there's section ASP.NET. Has anyone got any experience with deploying umbraco 13? https://cdn.discordapp.com/attachments/1252588067865493514/1252588068255436830/MicrosoftTeams-image_1.png?ex=6672c30b&is=6671718b&hm=d1b911af13f45af7e8587ca54066a1cc652a4e899811eb24ae8557b5cb1610ce& https://cdn.discordapp.com/attachments/1252588067865493514/1252588068805021816/MicrosoftTeams-image.png?ex=6672c30b&is=6671718b&hm=f3f6c9ac40c8dd19b65929871f11e680c1ce57fb10c7ad7e73530194128b28c6&
a
s
+2
  • 4
  • 9
  • 199
How to Opt-Out Serilog and Use Azure Monitor OpenTelemetry instead?
k

Khattab

9 months ago
I want to see Umbraco application's logs in Application Insights. I'm using the following packages: Azure.Monitor.OpenTelemetry.AspNetCore Serilog.Sinks.OpenTelemetry
builder.Services.AddOpenTelemetry().UseAzureMonitor()
The issue is with the app inights Serilog Sink I am loosing a lot of telemetry and I have my whole setup built arounf OTEL standards and OTEL exporters, which Azure monitor provides, and with Serilog I think it kills all exporters, On my custom dotnet application I used Serilog flag
writeToProviders
so I'd have both logger in action, but for Umbraco I do not know what is the best way to do so
services.AddSerilog((loggerConfiguration) =>
 {
     loggerConfiguration.MinimalConfiguration(configuration)
                        .ReadFrom.Configuration(configuration);
 }, writeToProviders: true);
k
  • 1
  • 1
  • 197
Recommended plugin for cookie managment?
m

Matthew Alexandros

over 1 year ago
I live in the US but am looking to run google adsense ads on my site and my understanding is they require me to be GDPR and CCPA compliant which means I need some way to let users op-in to the google cookies. I don't know much about these things so I was wondering what is a good, free, plugin for Umbraco 13 people are using to handle cookie compliance? Idealy it would work with UmbForms too as I will need to make a contact page some day.
m
d
+3
  • 5
  • 19
  • 197
MediaWithCrops does not contain a definition for URL
t

TigerMan

over 1 year ago
Hi I don't know what I'm doing wrong for a simple task. I created a composition with a property for an image. Select Media picker as the type. I create a home page which has a master page listed and all the properties data come through fine when I do @Model.PageName But as soon as I use @Model.PageImage.Url() Or .GetCropUrl("cropName") I get the error "MediaWithCrops does not contain a definition for GetCropUrl and no accessible extension method accepting a first argument of type 'MediaWithCrops' could be found. I've checked versions and all versions are the same for Umbraco 13 but I don't why this is happening?
t
s
  • 2
  • 1
  • 196
Headless preview in Core
a

Andrew McKaskill

11 months ago
I've been trying to get preview with NextJS working over the last day, and while I have seen Kenn's lovely post about how to get the NextJS side working, I can't for the life of me find anything about how to turn the "Save and Preview" button into something I can use that automatically opens the site and triggers the NextJS preview api. I tried searching for "preview" in the docs but it only produces the article about using ContentSendingNotification, which doesn't work in 14/15 anyway. Am I missing something or are we missing documentation somewhere? (In which case sounds like I need to write it up as a blog post once I've got it working 😁 )
a
s
+3
  • 5
  • 11
  • 194
[SOLVED] Implementing forgot password in login screen in v13
b

Bishal Tim

over 1 year ago
i want to implement a forget password feature in umbraco login screen.im thinking i need to setup a middleware? but dont know where to start https://cdn.discordapp.com/attachments/1260274650613813299/1260275557162156082/Screenshot_2024-07-09_222311.png?ex=668eba93&is=668d6913&hm=6ab838ca4ce55ed590dfb0106c599848e1a69313e9015213a4f22180f05614d1&
b
m
+6
  • 8
  • 49
  • 194
Previous111213Next

Umbraco

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

Powered by