Skip to main content
Inspiring
November 17, 2009
Answered

Need different home page based on user

  • November 17, 2009
  • 1 reply
  • 836 views

Does anyone know how to show a home page based on the user? Where I work, there are different business units and we want to build an Intranet that will show a home page based upon the business unit. Also, does anyone know of where to get information on building a personalized home page? We would like each person to be able to select the things they want on their Intranet home page. I've looked at pageflakes and netvibes but don't know if they can be used for those purposes.

    This topic has been closed for replies.
    Correct answer Daverms

    Oh, I love that! Is that jquery? Do you have any idea what the script is called?


    Hi tgoold,

    Its actually the "Sortable" script that comes along with JQuery, You can have more info and demo at,

    http://view.jquery.com/tags/ui/latest/demos/functional/#ui.sortable

    and if you need any tutorials you can make use of these links too,

    [Tutorial]

    http://zanshin.net/2008/11/12/using-jquery-to-create-igoogle-style-drag-and-drop/

    http://labs.dropit.se/blogs/post/2009/02/24/iGoogle-Drag-and-Drop-functionality-with-jQuery.aspx

    [Demo]

    http://geek.zanshin.net/

    HTH

    1 reply

    ilssac
    Inspiring
    November 17, 2009

    Tell me how you know User Tom works for Marketing, User Dick works for IT and User Harry works for Payroll (or whatever you mean by 'business units'); and I can probably tell you how to make a custom home page for each.

    There are several solutions you may want to consider.

    The first Idea I had, was a switch statement in a Applicaiton.cfc or Application.cfm file.

    It would also be pretty trivial to have a dynamic home page that includes different content based on the buisness rules that identify what it should display for different users.

    I suspect there are interesting things that might be possilbe at the web server level, especialy with Apache.


    So, what do you really want to do and how would you like to try and do it?

    tgooldAuthor
    Inspiring
    November 17, 2009

    Hi Ian,

    thanks for your help.

    Your first question of how you know "Tom" works in marketing: It's possible that we would be able to pull that information from our HR database. That's something we would have to check out. But let's assume that's what we are going to do.

    We have several business units, plus several field offices throughout the state (we are a government agency). We are going to build an Intranet for the whole agency, which will include all the business units and the field offices. Each unit or office has different uses for the Intrannet and we would like to have the availability for each used to design their own home page. We would like to give them several options of things they can select to have on their own page, or in other words, be able to select what they want from a list of items that we provide. If they decide not to create a personalized home page, we would like a default home page that represents their unit or office to display. So the Communications department would have a different home page from the Legal department and so on. Then, we would like them to be able to personalize their home page if they want to. Does that make sense?

    At this point, we are just beginning on the site and haven't even started coding yet, but we need to know if this is doable or not. I might add that we aren't advanced programmers, more like intermediate, so I hope it's something we can pull off. Any help would be greatly appreciated.

    ilssac
    Inspiring
    November 17, 2009

    I'm leaving in two minutes to catch the train home.

    The concepts you are talking about are not all that difficult.

    ColdFusion as plenty of capability to create dynamic pages based on a well defined set of business rules.  The dificlut part is usually determining what these rules really are and how to apply them.

    So working with your asumption that you have worked this out.  Just one of many possible solutions would be something like this in your 'home page'

    <cfswitch expression="#variables.businessunit#">


    <cfcase value="Legal"><cfinclude template="legal_home.cfm"></cfcase>

    <cfsase value="HR><cfinclude template = "hr_home"></cfcase>

    ....

    </cfswitch>

    This is not a fully thought out proposal, just a brain storiming idea to show what type of things are possible.

    As for allowin a user to customize their own page.  Again this is not a difficult concept.  You would just need a data store, probably a database, that stores an individual choices for their home page.  The your home page logic would read this data, fetch the selected pieces from whereever and build this page.

    The difficult part of this scenario is building a user interface that makes it easy and clear for the users how they can personalize their page.

    Well I'm off to the train now, more thought tomorrow if you care to continue.