Copied to clipboard

Flag this post as spam?

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


  • Jessica Nordbeck 32 posts 102 karma points
    Sep 27, 2013 @ 11:25
    Jessica Nordbeck
    0

    Custom editor login

    Hi,

    We have gotten a request from our customer that they want an "easy-publish" function. They have a need for some editors (out on the field) to add events to the page tree in a really easy way. They don't want the users to have to login through the ordinary log in, go to the Content-section and find their way through page tree in order to add a new event and publish it.

    Instead, they would like the following scenario:

    - Step 1: They go to a "create and publish event" page created on the site (hidden) containing a simple login view (users shall be setup as "Users" not "Members" since they are actually editors)

    - Step 2: After a successful login, the page should automatically recognize what kind of editor they are, for example editor_type1, editor_type2.

    - Step 3: After a successful detection of editor type, a set of input field should be visible. When all information is entered, they should be able to click "Save" and a page should be created in specific locations in the page tree depending on the type of editor (detected in step 2).

     

    How would you go about creating this function? We're using Umbraco 4.7.2

    Thanks for any input!

  • Drew 165 posts 340 karma points
    Sep 30, 2013 @ 13:45
    Drew
    100

    You'd need to build this functionality yourself as it's pretty specific to your use case, you could:

    1) Create a custom login control that authorises the users via the User info in the database. You could build on the standard microsoft login control for this.

    2) This could be done by looking up the User info in the DB, although it would make most sense to do this on authorisation (step 1) and store the editor type in the session.

    3) This is fairly straight forward to do using the API. It's just a page that will require key event information, which on 'save' event click simply uses the API to create a new node and publish it.

    So, this is all completely possible in Umbraco - I suggest you have a look at the video tutorials. I believe there's one video on creating a custom login control. There's also quite a lot of information on the forum that cover creating a node (page) and saving. 

    http://umbraco.com/help-and-support/video-tutorials.aspx

Please Sign in or register to post replies

Write your reply to:

Draft