Copied to clipboard

Flag this post as spam?

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


  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Jul 31, 2012 @ 21:19
    Jesper Ordrup
    1

    A bit more description?

    Thanks for sharing. Could you update the project page with a bit more description on what to expect. Alternative preview - in what way?

    Best
    Jesper

  • Chriztian Steinmeier 2798 posts 8787 karma points MVP 7x admin c-trib
    Jul 31, 2012 @ 23:57
    Chriztian Steinmeier
    1

    - Was thinking the exact same thing, Jesper :-)

    For this kind of project screenshots would be very good - maybe even a screencast?

    /Chriztian

  • Justin Yoo 16 posts 39 karma points
    Aug 01, 2012 @ 03:38
    Justin Yoo
    0

    Hi, Jesper and Chriztian.

    Thanks for your advice. I've put some screenshots on the project home page. HTH

  • Justin Yoo 16 posts 39 karma points
    Aug 01, 2012 @ 03:40
    Justin Yoo
    0

    And you guys gave me an insight how users can easily manage the configuration values without manually handling the EnhancedPreviewConfiguration.config file. Thanks!

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Aug 01, 2012 @ 03:58
    Jesper Ordrup
    0

    Hi Justin,

    Thanks for info. You describe in many details how the package is installed and but never what it actually does? I still dont know how the preview is enhanced. So the biggest question of them all is - what does this package actually do?

    Best
    Jesper

     

  • Justin Yoo 16 posts 39 karma points
    Aug 01, 2012 @ 04:58
    Justin Yoo
    0

    Hi, Jesper.

    As far as I understand, the logic what /umbraco/dialogs/Preview.aspx is:

    1. saving the preview information into a cookie and
    2. redirecting the page with the URL format of /[nodeId].aspx

    If the node having that nodeId doesn't have a template assigned, especially for content nodes that are shared within a website, the preview will display the Umbraco built-in 404 error page. That is a real pain for content editors who can't confirm what they have changed before publishing.

    So, this extension appends an AltTemplate parameter to the preview URL, that is /[nodeId].aspx?AltTemplate=[templateAlias]. By appending the AltTemplate parameter, the shared contents can be previewed before publishing. Templates used for AltTemplate can be either existing one or a new one.

    So, existing preview function won't be affected with this extension. Only assigned document types will be using this extension.

    For example, there are Product A, Product B, Product C, Component X, and Component Y. Each product has different component combination like:

    • Product A (id 1111) - Component X (id 8888) and Component Y (id 9999)
    • Product B (id 2222) - Component X (id 8888)
    • Product C (id 33333) - Component Y (id 9999)

    Each product has a document type of Product, its own URL - /products/product-a, /products/product-b, and /product/product-c, and template - ProductPage.master. But components having their document type of Component don't have a template as they are shared contents.

    In the product content panel, you can preview the product page. The preview URL for Product A will be /1111.aspx.

    If a content editor updates Component X, both pages for Product A and Product B will be affected. However, the content editor can't use the preview page on the Component X content panel.

    This extension actually assignes the Component document type to the ProductPage template so that the component preview page can use the template by AltTemplate parameter. The preview URL for the Component X will be /8888.aspx?AltTemplate=ProductPage. Component Y will be using the preview URL of /9999.asxp?AltTemplate=ProductPage.

    This assignment is done in the EnhancedPreviewConfiguration.config file. Of course the products aren't put into the .config file, the product pages will use its own prevew URL, /1111.aspx, /2222.aspx and /3333.aspx.

    Hope this will be enough explanation.

     

    Cheers,

    Justin

  • Chriztian Steinmeier 2798 posts 8787 karma points MVP 7x admin c-trib
    Aug 01, 2012 @ 10:03
    Chriztian Steinmeier
    0

    Hi Justin,

    Thanks for clearing that up - it makes good sense now. I've had this problem a couple of times with clients, so I'll definitely try this next time it pops up.

    /Chriztian

  • Justin Yoo 16 posts 39 karma points
    Aug 01, 2012 @ 15:46
    Justin Yoo
    0

    Thanks, Chriztian. Once you apply this extension to your project successfully, please let me know. I'd like to know how this is working in other projects than mine.

     

    Cheers,

    Justin

Please Sign in or register to post replies

Write your reply to:

Draft