Copied to clipboard

Flag this post as spam?

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


  • dalecam 20 posts 20 karma points
    Jan 15, 2009 @ 19:48
    dalecam
    0

    Help with Datatype or Document.

    Hi Everyone,
    Please excuse my lack of knowledge with umbraco - I am a new fan, but only have been using umbraco a week.
    I need to create something on the page (i think a template type of thing) where a user can select an image and some text that should go next to the image.
    Then that small template can be added by the writer as many times as they need.
    So for instance - a page called "People in our company".
    The staff person logs in umbraco, and when a new staff comes in, adds a photo and a peice of text, and it appends it to the bottom of the list (of photos and text!).
    Do you get what i mean?
    Anyway - I just dont know where to start. Would i need a new DocType that can be used multiple times on one page? Any help would be very appreciated.
    Thanks in advance,
    Dale

  • Comment author was deleted

    Jan 15, 2009 @ 20:07

    Hi Dale,

    In your example. I would first create a PeoplePage document type and template. Then Create a PersonPage documenttype.

    On the peoplepage documentype allow personpage documents (structure tab).

    On the personpage document type add the properties you want

    photo (type upload)
    text (type textboxmultiple)

  • Comment author was deleted

    Jan 15, 2009 @ 20:08

    Next step would be to create an xslt that would list all persons

    So in the developersection create a new xslt (and macro) and start from an xslttemplate (list subpages from current page)

    And put the macro on the peoplepage template

  • dalecam 20 posts 20 karma points
    Jan 15, 2009 @ 20:19
    dalecam
    0

    Wow - that was quick! Thanks so much Tim - thats just the info i needed!
    One quick question - what is probably the best resource for me to start learning xslt?
    Thanks again!
    Dale

  • Comment author was deleted

    Jan 15, 2009 @ 20:33

    Take a look at the existing templates in umbraco. Should be pretty easy to understand.

  • Comment author was deleted

    Jan 15, 2009 @ 20:33
  • dalecam 20 posts 20 karma points
    Jan 15, 2009 @ 22:56
    dalecam
    0

    Hi Tim,
    Thanks for your help.
    Also if anyone can guide me in the following area it would be really appreciated:
    If in a site in umbraco i need a secure login so that people that are logged in see extra pages, do I handle this in ASP.NET UserControls looking into a seperate database for usernames and ids, or can i actually handle this somehow in umbraco using built in features?
    Sorry I dont quite have a full grasp on the capabilites of umbraco yet!
    Thanks in advance.
    Regards,
    Dale

  • Comment author was deleted

    Jan 15, 2009 @ 23:33

    Hey Dale,

    There is a members section. This can be used to manage members in the backend.

    Using v4 you can use the standard .net login controls.

  • dalecam 20 posts 20 karma points
    Jan 15, 2009 @ 23:45
    dalecam
    0

    I do have v4. Ill check out the members section - i just found it in packages.
    Thanks Tim, appreciate the help!
    Dale

Please Sign in or register to post replies

Write your reply to:

Draft