Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • vipin 13 posts 83 karma points
    Sep 06, 2023 @ 07:02
    vipin
    0

    Disable the past date in umbraco date picker

    Hi all,

    It would be possible to disable in a date picker the past dates. I mean for example, today is 06/09/2023 so when the content editor, so the document don't allow the editor to set date in past

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 06, 2023 @ 11:35
    Huw Reddick
    0

    I think you will need to create your own custom property editor to do this.

  • vipin 13 posts 83 karma points
    Sep 07, 2023 @ 05:32
    vipin
    0

    How to create a custom property sir, in backoffice itself or through code, is there any reference to do this, please share me

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 07, 2023 @ 06:12
  • vipin 13 posts 83 karma points
    Sep 07, 2023 @ 06:31
    vipin
    0

    Thank You sir, And another doubt, is it possible to use regex for restrict past dates in datepicker editor custom validation on umbraco itself

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 07, 2023 @ 06:54
    Huw Reddick
    0

    No, regex has no concept of time.

  • vipin 13 posts 83 karma points
    Sep 07, 2023 @ 09:16
    vipin
    0

    Okay, sir. If I create the files according to the Umbraco documentation in the solution, where can I set the restriction to disable past dates in the date picker?

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 07, 2023 @ 14:57
    Huw Reddick
    0

    This is the umbraco src for the datepicker.

    https://github.com/umbraco/Umbraco-CMS/tree/6d4809132815b41a6e048904d0769c042abde1cc/src/Umbraco.Web.UI.Client/src/views/propertyeditors/datepicker

    You could use these as the template for your own DatePicker and add a check either in the onValueChanged or SetDate functions

  • vipin 13 posts 83 karma points
    Sep 08, 2023 @ 09:23
    vipin
    0

    Hi sir, i have create custom editor by the use of umbraco document https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/tutorials/creating-a-property-editor i added all the files , which is mentioned in this document, but the property are not showned in the backoffice Did i miss anything in this. enter image description here

    enter image description here

    enter image description here

    Please help me to rectify this sir.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 08, 2023 @ 12:05
    Huw Reddick
    0

    Where in your project structure have you placed the files?

  • vipin 13 posts 83 karma points
    Sep 08, 2023 @ 12:45
    vipin
    0

    I have created a "App_Plugins" folder in project like this in pictureenter image description here

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 08, 2023 @ 12:47
    Huw Reddick
    0

    the package.manifest.json should just be package.manifest

  • vipin 13 posts 83 karma points
    Sep 08, 2023 @ 12:56
    vipin
    0

    Sir i have create package.manifest by using json file, is it ok to use that?

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 08, 2023 @ 12:58
    Huw Reddick
    0

    yes, you just need to remove the .json extension otherwise Umbraco will not find it.

  • vipin 13 posts 83 karma points
    Sep 11, 2023 @ 06:22
    vipin
    0

    Yes, I tried this, still the editor didn't displayed in Backoffice sir.

    enter image description here

  • vipin 13 posts 83 karma points
    Sep 13, 2023 @ 10:00
    vipin
    0

    Hi, sir. I am currently working on an Umbraco migration. If you are aware of this, please help me clear this why we need to upgrade 8 to umbraco 8 latest version before umbraco 10 migration?

  • vipin 13 posts 83 karma points
    Sep 15, 2023 @ 08:09
    vipin
    0

    Hi sir, am using umbraco 10, even after installed, am keep getting installation screen while run the project, I didn't change any packages and DB configuration in appsettings file.

    Please help me to rectify this.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Sep 15, 2023 @ 09:10
    Huw Reddick
    0

    Hi Vipin,

    It would be better to start a new thread about your specific issues

Please Sign in or register to post replies

Write your reply to:

Draft