Copied to clipboard

Flag this post as spam?

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


  • suzyb 476 posts 934 karma points
    Jul 07, 2016 @ 12:12
    suzyb
    0

    Problem with View Path

    I have the following in the grid.editors.config.js so I can add a slider on a home page. I have the problem that the custom viewPath isn't being picked up however, it is set to "/Views/Partials/Grid/Editors/DocTypeGridEditor/". The preview path works however the actual view path does not.

    Does anyone know why the viewPath would not be getting picked up.

    My config is as follows

    {
      "name": "Home Slider",
      "alias": "homeSlider",
      "view": "/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.html",
      "render": "/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml",
      "icon": "icon-item-arrangement",
      "config": {
          "allowedDocTypes": ["HomeSlider"],
          "nameTemplate": "",
          "enablePreview": true,
          "viewPath": "/Views/Partials/Home/",
          "previewViewPath": "/Views/Partials/Home/Preview/",
          "previewCssFilePath": "",
          "previewJsFilePath": ""
      }
    

    }

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jul 07, 2016 @ 13:42
    Lee Kelleher
    100

    Hi Suzy,

    Just to check, have you restarted the website's app-pool? (e.g. touched the web.config)

    It might be that the only values are still cached in memory.

    Cheers,
    - Lee

  • suzyb 476 posts 934 karma points
    Jul 07, 2016 @ 14:28
    suzyb
    0

    It looks like it was cached. I touched the web.config several times as I usually do when something doesn't update yet it didn't fix the problem. However after coming back to the site after working on something else for a couple of hours it works.

    The cache strikes again :(

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Jul 07, 2016 @ 14:33
    Lee Kelleher
    0

    Frustrating that it didn't clear the cache initially, but glad to hear it worked eventually.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies