Copied to clipboard

Flag this post as spam?

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


  • Zyad Rujeedawa 6 posts 26 karma points
    Feb 10, 2010 @ 09:16
    Zyad Rujeedawa
    0

    Multiple document types on a page

    This is a newbie question

     

    I have a page that has a mini-survey, and a generic HTML text.

     

    I created 2 document types, each with their respective properties

    1 Mini Survey

    2. HTML content

    It seems that I create a page, I can specify only on document type.

    How do I add both those functionalities on one specific page ?

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 10, 2010 @ 09:21
    Jesper Ordrup
    0

    Hi Zyad,

    A page can only be of one document type. One way of solving this could be to have 2 document types:

    1: Text page for generic html text
    2: Mini survey (select the textpage as master doc type)

    The Mini survey could use the Textpage as a master document type. This way you don't have to define the regular textpage stuff twice.

    /Jesper Ordrup

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 10, 2010 @ 09:26
    Jan Skovgaard
    0

    Hi Zyad

    What fields do you have on the different document types? To create a survey like the one I think you are trying to do I would also create two document types, where I would make the "HTML content" document type the "holder" to the survey questions.

    So I would allow the "Mini Survey" to be created under "HTML content" so you can have a structure like this in your content

    Name on survey (Based on HTML content)

      - Question (Mini Survey)
      - Question (Mini Survey)
      - Question (Mini Survey)
      - Etc.

    With XSLT you could then manipulate with the data in any fashion you desire.

    I hope this makes sense! :)

    /Jan

  • Zyad Rujeedawa 6 posts 26 karma points
    Feb 10, 2010 @ 10:11
    Zyad Rujeedawa
    0

    What do you mean by master document type ?

    I can only see the master/child thing via placeholders, in the templates.

     

    Zyad

  • Zyad Rujeedawa 6 posts 26 karma points
    Feb 10, 2010 @ 15:39
    Zyad Rujeedawa
    0

    Please check out this test link

    http://www.boiteaideeslu.fr/test.aspx

    As you can see I have a mini survey, and below it a flash banner object.

    Those are 2 separate types.  I will also need to use this flash object (within a sort of HTML content), on other pages.

    How can I proceed to do this, with the possibility to re-use both the HTML content and the mini survey on other pages ?

    Thanks for your help.

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Feb 11, 2010 @ 09:55
    Jesper Ordrup
    0

    Hi Zyad,

    Seeing you site helped a bit. There's a zillion ways to do this (which is a good thing). It really depends on where you'r survey comes from, how it's gonna be reused and who is going to update it.

    Quick  - for the webmaster who knows stuff :-)

    If your mini survey is just some html that your webmaster knows how to handle I'm guessing that your mini survey is a html field too, so basically you need 1 document type with the following fields:

    • HTML Content (RTE)
    • Mini survey (RTE) 
    • .. plus all the others for headline and such.

    Then I would create 2 templates - one that displays the survey and one that dont.

    Add the flash file using a macro (xslt). Allow it to be inserted in the HTML Content

    Elegant - but you need to do some more macros

    Implement the above with the following changes:

    Consider implementing the survey as a Macro. I guess an XSLT macro will do it. Just paste the html and maybe add some parameters to allow the webmaster some customization of the survey. Like which questions and such.

    Consider adding a macro picker property that allows you to pick the Survey macro. 
    See more here - http://our.umbraco.org/projects/macropicker

    Consider using one of the "insert flash" packages:
    See more here - http://our.umbraco.org/projects/tag/flash#projectList

    /Jesper Ordrup

     

Please Sign in or register to post replies

Write your reply to:

Draft