Lee

My feedback

  1. 92 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Kentico Product Ideas  ·  Flag idea as inappropriate…  ·  Admin →
    Lee supported this idea  · 
  2. 12 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  Kentico Product Ideas » Platform  ·  Flag idea as inappropriate…  ·  Admin →
    Lee commented  · 

    I've found a slightly simpler solution to this than was given in the ticket.

    The key to the whole thing was this method, derived from the code Kentico sent me...

    private static bool IsKenticoEmbeddedView(string viewName)
    {
    return (viewName.StartsWith("~/", StringComparison.Ordinal))
    && viewName.IndexOf("Kentico/", StringComparison.OrdinalIgnoreCase) >= 0;
    }

    Once I knew that the issue was with the "embedded" views and what constituted a Kentico "embedded" view I just needed to have my custom View Engine (which inherits directly from RazorViewEngine) return an empty result for those cases - which allows MVC to fall back to the next view engine in line - Kentico's - for those requests.

    My working custom view engine can be seen here: https://pastebin.com/kXWqDYC7

    To allow the fallback to Kentico's view engine to work properly, it must be registered in Global.asax after the Kentico features "Use" methods have been called. Possibly also after the CmsRegistrationSource has been registered with DI too, I've not tested that bit.

    This method means that we're not fully overriding the Kentico view engine, just popping our own in front of it in the view resolution process. This should minimise the possibility of any future updates causing problems providing the above IsKenticoEmbeddedView rules don't change.

    Lee shared this idea  · 
  3. 21 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Kentico Product Ideas » On-line Marketing  ·  Flag idea as inappropriate…  ·  Admin →
    Lee shared this idea  · 
  4. 25 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    4 comments  ·  Kentico Product Ideas  ·  Flag idea as inappropriate…  ·  Admin →

    Hi,

    thanks for the suggestion! Based on the feedback we received, we are exploring this addition to the Page builder. Can you please share how important the following features are to you?

    1. The possibility to specify allowed sections per editable area
    2. The possibility to specify the number of sections that can be added to an editable area
    3. The possibility to specify allowed widgets per section

    Thanks

    David

    Lee commented  · 

    As an addition to this, also restrict whether additional sections can be added.

    Lee supported this idea  · 
  5. 51 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    5 comments  ·  Kentico Product Ideas » Content Management  ·  Flag idea as inappropriate…  ·  Admin →
    Lee supported this idea  · 
  6. 56 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Share your thoughts  ·  10 comments  ·  Kentico Product Ideas » Platform  ·  Flag idea as inappropriate…  ·  Admin →
    Lee supported this idea  · 
  7. 72 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Lee supported this idea  · 
  8. 326 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Lee supported this idea  · 

Feedback and Knowledge Base