Copied to clipboard

Flag this post as spam?

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


  • Jerode 44 posts 159 karma points
    Jun 03, 2013 @ 23:11
    Jerode
    0

    Custom referring to hand out

    Forgive me if my terminology is incorrect, this is my first Umbraco site.

    I have a document type named Company with attributes description, company_name, promo_code, and discount.

    The companies are promoting a product on a podcast and I want to provide them a custom page URL like http://mysite.org/Umbraco and customize elements on standard pages specific to them. Each page would have various spots the company name would appear. Promo code will likely be the URL. Discount would be at certain parts of pages as well.

    The non-ideal way would be creating multiple copies of each site. Any guidance or advice?

  • Jules 273 posts 564 karma points
    Jun 04, 2013 @ 00:32
    Jules
    0

    Assuming that the layout of each page would be exactly the same except that it would display different company infromation.

    If this is the case then you create a template which would define the layout for your Company page.  Insert your doc type properties as umbraco fields into your template.

    Then you would create a different Content page (based on the Company Document type) for each company.  Each content page will allow you to edit the details for that company.

    Your content structure in umbraco would look like this

    Content
       Home
          Company1
          Company2
          Company3

    and each page would have urls as below

    www.mysite.com/company1
    www.mysite.com/company2
    www.mysite.com/company3

    Hope I have understood correctly

    Jules

     

  • Jerode 44 posts 159 karma points
    Jun 04, 2013 @ 15:00
    Jerode
    0

    You are correct in your understanding. My prototype is exactly how you described it. The part that I am stuck at is concerning if each of those pages have multiple pages for filling information. So for one company would be

    • Content
      • Home
        • Company1
          • Basic Info
          • Optional Info
          • Payment

    So each company would have the exact same sub pages with the doctype details reflected. Would you advise to just create the templates for those pages and each time I need to add a new company or maybe just implement those pages individually for each company. Since each page is based off a template I will be able to change the layout to affect all of them so that makes sense.

    I can change the structure based on your advice Jules. This is how mine is currently. Should I just move the pages underneath each of the companies?

    • Content
      • Home
        • Company1
        • Company2 
      • Basic Info
      • Optional Info
      • Payment
  • Jules 273 posts 564 karma points
    Jun 04, 2013 @ 15:16
    Jules
    100

    I would say that your content should be:

    Content
       Home
          Company1
             Basic Info
             Optional Info
             Payment
          Company2
             Basic Info
             Optional Info
             Payment
          Company3
              etc...

    There will be a document type for BasicInfo, OptionalInfo and Payment and each of these document types will have a corresponding template (probably of the same name). If your Company page has a header (for example) that needs to appear also on the sub pages then you would set the BasicInfo, OptionalInfo and Payment templates to be child-templates of Company.

    Your urls will look like this

    www.mysite.com/company1/basic-info
    www.mysite.com/company1/optional-info etc

    I am guessing a bit at what you are trying to do but from what I can understand, this is how I would approach it.

    Jules

  • Jerode 44 posts 159 karma points
    Jun 04, 2013 @ 15:18
    Jerode
    0

    Well done Jules. Thanks for taking the time to provide your assistance.

  • Jules 273 posts 564 karma points
    Jun 04, 2013 @ 17:37
    Jules
    0

    No problem :-)

  • Jerode 44 posts 159 karma points
    Jun 07, 2013 @ 16:46
    Jerode
    0

    I have some further questions if you have the time.

    Content
      Home
        Company1
          Basic Info (Grabs property values from one under home)
          Optional Info (Grabs property values from one under home)
          Payment (Grabs property values from one under home)
        Company2
          Basic Info (Grabs property values from one under home)
          Optional Info (Grabs property values from one under home)
          Payment (Grabs property values from one under home)
        Company3
          etc...
        Basic Info (Where property values are set like content)
        Optional Info
        Payment

    Basically I want to inherit the parent values so I only have to change it in one location. Can this be achived?

Please Sign in or register to post replies

Write your reply to:

Draft