Copied to clipboard

Flag this post as spam?

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


  • Heiko 2 posts 22 karma points
    Mar 02, 2011 @ 06:25
    Heiko
    0

    dynamic building blocks

    Hey all.

    What's the best practice to give editors the ability of dynamic building blocks within umbraco? They should be able to pick different layout pieces for the content area (3 columns, 2 columns, large image floating left or right) and combine them , move them up and down within the page - and of course edit the content in the layout piece (image, text, ...). It's roughly:

    <div id="content">

      <div class="content2Col">....content...</div>

      <div class="content3Col">....content...</div>

      <div class="content2Col">....content...</div>

      <div class="content2Col">....content...</div>

      .....

    </div>

     

    I was playing around with templates in the rich text editor which worked, but does not really support moving the templates up and down (as you can not select the surrounding div element) and probably gonna break the markup soon... any hints?

    cheers!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 02, 2011 @ 07:01
    Jan Skovgaard
    1

    Hi Heiko

    I think I would create three tabs on the document types called "Left content", "Center content" and "Right content".

    Then I would use a multipicker datatype to point at a content repository created in the content section.

    Then create the content you need to place around your pages here and then you can move it up and down and sort it as you like.

    Then you can have two templates, you can use...either the one with 2 columns or the one with 3 columns.

    I hope this makes sense.

    /Jan

  • Heiko 2 posts 22 karma points
    Mar 03, 2011 @ 01:20
    Heiko
    0

    Jan,

    it does make sense. Thanks for pointing me to the multipicker. I'll give that a try...

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Mar 03, 2011 @ 08:15
    Hendy Racher
    1

    Hi Heiko,

    This blog post might help elaborate on Jan's answer - the MultiNode TreePicker would be a good choice of picker as the selected nodes are also sortable.

    HTH,

    Hendy

Please Sign in or register to post replies

Write your reply to:

Draft