Copied to clipboard

Flag this post as spam?

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


  • John Logan 24 posts 65 karma points
    Apr 28, 2022 @ 16:48
    John Logan
    0

    Getting it working with Umbraco 9 with custom config in appsettings.json

    Hi

    Umbraco 9.4.3 CMSImport 9.0

    I am trying to get this to work for but having trouble with a couple of issues.

    1. custom config
    2. rich text editor

    1. custom config - I found the v9 manual and used that as a ref to add the json to the appsettings.json and have purposely set the MediaImportLocation to a bad dir to force an errror.

    When I go through the wizard it just uses the default root of site path - any ideas how to fix this? I have tried restarting the site/app pool, republishing the site etc but no joy

    2. rich text editor - when I run the wizard the rte data type is not detected and is just seen as standard textfield - has this functionality been dropped in v9?

    Cheers John

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 02, 2022 @ 08:33
    Richard Soeteman
    0

    Hi John,

    Can you share your JSON snippet for issue 1 and RTE settings should work when you use the PRO version. No Settings button next to the field?

  • John Logan 24 posts 65 karma points
    May 02, 2022 @ 08:51
    John Logan
    0

    Hi Richard

    Thanks for the reply

    I have managed to get the rte working by installing the 9.1.0.beta 6 - the cog now shows up for the rtes which didnt happen for the stable 9.0 release - all good there since I dont need this when the site goes live just an initial data pull in

    for ref I also had to make a bin folder for the lic file since the v9 published dlls are in the root of the published files and it didnt like being there or in the wwwroot dir that the media etc is in - not sure if thats expected or not

    still no joy on the config - here is a sample

    {
      "$schema": "./umbraco/config/appsettings-schema.json",
      "Serilog": {
        "MinimumLevel": {
          "Default": "Information",
          "Override": {
            "Microsoft": "Warning",
            "Microsoft.Hosting.Lifetime": "Information",
            "System": "Warning"
          }
        }
      },
      "ConnectionStrings": {
        "umbracoDbDSN": "server=[server];database=[database];user id=[user id];password='[password]'"
      },
      "Umbraco": {
        "CMS": {
          "Global": {
            "VersionCheckPeriod": 0,
            "Id": "2fd63a98-d326-485f-863e-cd84ef3eb1b3"
          },
          "Hosting": {
            "Debug": true
          },
          "Content": {
            "ContentVersionCleanupPolicy": {
              "EnableCleanup": true
            }
          },
          "ModelsBuilder": {
            "ModelsMode": "SourceCodeAuto",
            "ModelsNamespace": "Gecko.Core.Content",
            "ModelsDirectory": "~/../Src/Gecko.Core/Models/Content",
            "AcceptUnsafeModelsDirectory": true
          }
        }
      },
      "GeckoSettings": {
        "WebsiteMode": "test",
        "AppStrings": {
          "Saved": "Saved.",
          "Failed": "Please try again."
        }
      },
      "CmsImportConfig": {
        "MediaConfig": {
          "MediaImportLocation": "/imported-media/",
          "AllowedFileExtensions": [
            ".doc",
            ".docx",
            ".pdf",
            ".ppt",
            ".pptx",
            ".rar",
            ".xls",
            ".xlsx",
            ".zip"
          ],
          "AllowedDomains": [
            "some domain to parse here"
          ],
          "MediaImportKeepFolderStructure": false,
          "MediaImportFileTypeAlias": "File",
          "MediaImportFolderTypeAlias": "Folder",
          "MediaImportImageTypeAlias": "Image"
        },
        "IgnoredPropertyAliasses": [
          "umbracoMemberFailedPasswordAttempts",
          "umbracoMemberLastLockoutDate",
          "umbracoMemberLastLogin",
          "umbracoMemberLastPasswordChangeDate",
          "umbracoMemberFailedPasswordAttempts"
        ],
        "LogDebugInfo": false
      },
      "LoginCredentialsMailConfig": {
        "FromAddress": "[email protected]",
        "Subject": "Your account is ready",
        "ViewLocation": "~/App_Plugins/cmsimport/config/loginmail.cshtml"
      },
      "ScheduledTaskMailConfig": {
        "FromAddress": "[email protected]",
        "Subject": "Scheduled task executed",
        "ViewLocation": "~/App_Plugins/cmsimport/config/scheduledtaskmail.cshtml"
      }
    
    }
    

    Cheers J

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 12, 2022 @ 12:39
    Richard Soeteman
    0

    Hi Sorry for the late reply,

    This is fixed in the 9.1 release from this week. Mail configs are wrong in the JSON. If you use the following it should work

    "CmsImportConfig": {
    "MediaConfig": {
      "MediaImportLocation": "/imported-media/",
      "AllowedFileExtensions": [
        ".doc",
        ".docx",
        ".pdf",
        ".ppt",
        ".pptx",
        ".rar",
        ".xls",
        ".xlsx",
        ".zip"
      ],
      "AllowedDomains": [
        "some domain to parse here"
      ],
      "MediaImportKeepFolderStructure": false,
      "MediaImportFileTypeAlias": "File",
      "MediaImportFolderTypeAlias": "Folder",
      "MediaImportImageTypeAlias": "Image"
    },
    "IgnoredPropertyAliasses": [
      "umbracoMemberFailedPasswordAttempts",
      "umbracoMemberLastLockoutDate",
      "umbracoMemberLastLogin",
      "umbracoMemberLastPasswordChangeDate",
      "umbracoMemberFailedPasswordAttempts"
    ],
    "LogDebugInfo": false,
    "LoginCredentialsMailConfig": {
      "FromAddress": "[email protected]",
      "Subject": "Your account is ready",
      "ViewLocation": "~/App_Plugins/cmsimport/config/loginmail.cshtml"
    },
    "ScheduledTaskMailConfig": {
      "FromAddress": "[email protected]",
      "Subject": "Scheduled task executed",
      "ViewLocation": "~/App_Plugins/cmsimport/config/scheduledtaskmail.cshtml"
    }
    

    }

    Hope this helps,

    Richard

  • John Logan 24 posts 65 karma points
    May 12, 2022 @ 15:32
    John Logan
    0

    Hi Richard

    Thanks for the update - that config works for me Cheers J

  • Chester Campbell 98 posts 209 karma points
    May 05, 2022 @ 19:00
    Chester Campbell
    0

    Where did you find the version 9 manual for CMSImport??

    All I can find online is version 3.

  • John Logan 24 posts 65 karma points
    May 06, 2022 @ 13:29
    John Logan
    0

    Hi Chester

    You can find it on the at the bottom of https://soetemansoftware.nl/cmsimport/downloads

    some of the other links that point to downloads actually point to an older version https://soetemansoftware.nl/cmsimport/downloadsv7

    The direct link is https://soetemansoftware.nl/media/92532/cmsimport-manual.pdf

    Cheers J

  • Chester Campbell 98 posts 209 karma points
    May 11, 2022 @ 15:59
    Chester Campbell
    0

    Thank you so much! I looked at that downloads page dozens of times and completely overlooked that link.

Please Sign in or register to post replies

Write your reply to:

Draft