an alphabetical list of all users

15 messages Options
Embed this post
Permalink
Ben () an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi,

 

I would like to add a “person directory” for our university to our Plone-portal. This should be an alphabetical list of all users.

My users already have some custom profile properties I added in portal_memberdata (surname, prename, title, mobile, phone-number, etc.) and in the personalize and author-template.

 

I want it to behave this way:

 

-          On top of the page there should be all letters of the alphabet

-          If the visitor clicks on “A” for example, all users with a surname beginning with “A”  should be listed with some of their properties (phone, prename, surname)

-          If the visitor then clicks on one of these users, the “author” template of this user object should be shown

 

 

I don’t have much experience in Plone-programming, yet – I customized some templates and  added some properties to “portal_memberdata”.

Can you guys help me out how to do this?

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
ajung () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink


--On 3. Januar 2008 14:27:22 +0100 Benjamin Sommerfeld
<[hidden email]> wrote:

> Hi,
>
>
>
> I would like to add a "person directory" for our university to our
> Plone-portal. This should be an alphabetical list of all users.
>

Don't revent wheels:

<http://plone.org/products/faculty-staff-directory>

-aj

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (193 bytes) Download Attachment
Ben () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink

I know faculty staff, but unfortunately it is not compatible with Plone 3
right now. I tried it out for several days and submitted some bug reports to
WebLion, cause it just doesn't run properly, yet.

I also don't think  it's optimal to rely too much on external products...who
knows whether these will still be developed for Plone 4, 5, and so on...?

We have a lot of (negative) experience with external products and our old
Plone2-instance, which is un-upgradable, because we relied too much on
external products, which aren't supported anymore.


> -----Ursprüngliche Nachricht-----
> Von: Andreas Jung [mailto:[hidden email]]
> Gesendet: Donnerstag, 3. Januar 2008 14:33
> An: Benjamin Sommerfeld; [hidden email]
> Betreff: Re: [Plone-Users] an alphabetical list of all users
>
>
>
> --On 3. Januar 2008 14:27:22 +0100 Benjamin Sommerfeld
> <[hidden email]> wrote:
>
> > Hi,
> >
> >
> >
> > I would like to add a "person directory" for our university to our
> > Plone-portal. This should be an alphabetical list of all users.
> >
>
> Don't revent wheels:
>
> <http://plone.org/products/faculty-staff-directory>
>
> -aj


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Wichert Akkerman () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
Previously Benjamin Sommerfeld wrote:
> I know faculty staff, but unfortunately it is not compatible with Plone 3
> right now. I tried it out for several days and submitted some bug reports to
> WebLion, cause it just doesn't run properly, yet.
>
> I also don't think  it's optimal to rely too much on external products...who
> knows whether these will still be developed for Plone 4, 5, and so on...?

You are now also developing an external product, so I do not see your
point here. It may be a lot simpler for you to port the faculty staff
product to Plone 3 than to write your own product that does the same
thing. It would certainly be better for everyone if instead of several
parallel developed products there is a single product for this feature.

Wichert.

--
Wichert Akkerman <[hidden email]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Ben () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink

Hi Wickert,

actually I thought I could to this without developing an extra product -
maybe with some extra views / templates and python-code within...?

This directory should be very very simple and customized for our university
and I think it's not necessary to use even more external products like it's
done in FacultyStaff (including Membrane, Remember, WebLionXY).

Our motto here is to "use no external products if possible" - rely on
Plone-standard-functionality and if necessary, extend Plone only minimally.


> -----Ursprüngliche Nachricht-----
> Von: Wichert Akkerman [mailto:[hidden email]] Im Auftrag von
> Wichert Akkerman
> Gesendet: Donnerstag, 3. Januar 2008 14:43
> An: Benjamin Sommerfeld
> Cc: [hidden email]
> Betreff: Re: [Plone-Users] an alphabetical list of all users
>
> Previously Benjamin Sommerfeld wrote:
> > I know faculty staff, but unfortunately it is not compatible with Plone
> 3
> > right now. I tried it out for several days and submitted some bug
> reports to
> > WebLion, cause it just doesn't run properly, yet.
> >
> > I also don't think  it's optimal to rely too much on external
> products...who
> > knows whether these will still be developed for Plone 4, 5, and so
> on...?
>
> You are now also developing an external product, so I do not see your
> point here. It may be a lot simpler for you to port the faculty staff
> product to Plone 3 than to write your own product that does the same
> thing. It would certainly be better for everyone if instead of several
> parallel developed products there is a single product for this feature.
>
> Wichert.
>
> --
> Wichert Akkerman <[hidden email]>    It is simple to make things.
> http://www.wiggy.net/                   It is hard to make things simple.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
ajung () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by Ben


--On 3. Januar 2008 14:38:52 +0100 Benjamin Sommerfeld
<[hidden email]> wrote:

>
> I know faculty staff, but unfortunately it is not compatible with Plone 3
> right now. I tried it out for several days and submitted some bug reports
> to WebLion, cause it just doesn't run properly, yet.

I am running FSD in several Plone 3 instances in production. It has some
odds and ends but it works.

>
> I also don't think  it's optimal to rely too much on external
> products...who knows whether these will still be developed for Plone 4,
> 5, and so on...?

Good enough ...

>
> We have a lot of (negative) experience with external products and our old
> Plone2-instance, which is un-upgradable, because we relied too much on
> external products, which aren't supported anymore.

Good point. On the other side FSD is written in a clean way and I am using
it because I am convinced that it is a good product. It's always easier
to bake your own stuff but such customizations can also lead into a
disaster within your next migration (just migrated several Plone sites of
several
institutions to Plone 3 - and such local customizations were a major PITA
during the migration).

Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (193 bytes) Download Attachment
Wichert Akkerman () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by Ben
Previously Benjamin Sommerfeld wrote:
> Hi Wickert,

It's 'Wichert'

> actually I thought I could to this without developing an extra product -
> maybe with some extra views / templates and python-code within...?

How does that differ from a product? A product is nothing more than a
set of views, templates and/or python code wrapped up in a nice bundle.

> This directory should be very very simple and customized for our university
> and I think it's not necessary to use even more external products like it's
> done in FacultyStaff (including Membrane, Remember, WebLionXY).

FWIW, it seems faculty staff has some Plone 3 support:
http://plone.org/products/faculty-staff-directory/releases/2.0/

You are quite correct in noting that it has a lot of external
requirements that may not apply to your use case. I've never used
faculty staff so I wasn't aware of that. Perhaps it would be interesting
to split off the staff directory templates from faculty staff and put
those in a separate product that would work for yo uas well.

> Our motto here is to "use no external products if possible" - rely on
> Plone-standard-functionality and if necessary, extend Plone only minimally.

That's definitely an excellent motto.

Wichert.

--
Wichert Akkerman <[hidden email]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Raphael Ritz () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by Ben
Benjamin Sommerfeld wrote:

[..]

.
>
> Can you guys help me out how to do this?
>

If you don't want to use faculty-stuff-directory
(and I agree that it has some heavy dependencies)
you might want to look at

http://plone.org/products/azlinks

Raphael


>  
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Plone-Users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/plone-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
ajung () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by ajung


--On 3. Januar 2008 14:52:42 +0100 Andreas Jung <[hidden email]> wrote:

>
>
> --On 3. Januar 2008 14:38:52 +0100 Benjamin Sommerfeld
> <[hidden email]> wrote:
>
>>
>> I know faculty staff, but unfortunately it is not compatible with Plone 3
>> right now. I tried it out for several days and submitted some bug reports
>> to WebLion, cause it just doesn't run properly, yet.
>
> I am running FSD in several Plone 3 instances in production. It has some
> odds and ends but it works.
>
>
If you want to see FSD on top of Plone 3 in action, see:

<http://www.fml.tuebingen.mpg.de/raetsch/members>

Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (193 bytes) Download Attachment
Ben () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by ajung

>
>
> --On 3. Januar 2008 14:38:52 +0100 Benjamin Sommerfeld
> <[hidden email]> wrote:
>
> >
> > I know faculty staff, but unfortunately it is not compatible with Plone
> 3
> > right now. I tried it out for several days and submitted some bug
> reports
> > to WebLion, cause it just doesn't run properly, yet.
>
> I am running FSD in several Plone 3 instances in production. It has some
> odds and ends but it works.
>

Are you running FSD 2.0a1? I tried it out on Plone 3.0.4 several times, but
can't manage to get it working.

Does FSD support the functionality I need? The "menu with all letters from
the alphabet" thing? Because we don't want a complete list on one page, we
only want those people for the corresponding letter.


>
> >
> > We have a lot of (negative) experience with external products and our
> old
> > Plone2-instance, which is un-upgradable, because we relied too much on
> > external products, which aren't supported anymore.
>
> Good point. On the other side FSD is written in a clean way and I am using
> it because I am convinced that it is a good product. It's always easier
> to bake your own stuff but such customizations can also lead into a
> disaster within your next migration (just migrated several Plone sites of
> several
> institutions to Plone 3 - and such local customizations were a major PITA
> during the migration).


Of course, I'm also sure that FSD is a good product - but right now I think
it's also "too big" for our needs. There's also the question of the time.
I'm not experienced in Plone-programming, yet. I'm just learning
Plone-programming these days and think it would take quite a while to adopt
FSD to our needs for me. On the other hand, our needs for this directory are
really minimal - so I thought making it by my own would bring a faster
result on one hand and I would also "know the code" on the other hand if we
wish to extend it in the future.


>
> Andreas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
ajung () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink


--On 3. Januar 2008 15:01:46 +0100 Benjamin Sommerfeld
<[hidden email]> wrote:

>
>>
>>
>> --On 3. Januar 2008 14:38:52 +0100 Benjamin Sommerfeld
>> <[hidden email]> wrote:
>>
>> >
>> > I know faculty staff, but unfortunately it is not compatible with Plone
>> 3
>> > right now. I tried it out for several days and submitted some bug
>> reports
>> > to WebLion, cause it just doesn't run properly, yet.
>>
>> I am running FSD in several Plone 3 instances in production. It has some
>> odds and ends but it works.
>>
>
> Are you running FSD 2.0a1? I tried it out on Plone 3.0.4 several times,
> but can't manage to get it working.
Never had any major issues and it is part of an educational buildout I've
created lately:

<http://www.plone4universities.org/Members/ajungtest/buildout.cfg>



>
> Does FSD support the functionality I need? The "menu with all letters from
> the alphabet" thing? Because we don't want a complete list on one page, we
> only want those people for the corresponding letter.

Such a view is trivial to implement with a template and a script and a
catalog search..nothing more than 10-20 lines of code.


Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users

attachment0 (193 bytes) Download Attachment
Raphael Ritz () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
Andreas Jung wrote:

[..]

>
> Such a view is trivial to implement with a template and a script and a
> catalog search..nothing more than 10-20 lines of code.
>

and as this is what started this thread it may indeed seem
like FSD is a bit heavy for just this (and maybe FSD doesn't
even provide it?) ;-)

Raphael


>
> Andreas
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Plone-Users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/plone-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Jim Mastro () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by Ben
Some javascript/style in this post has been disabled (why?)
Sounds like you favor grow your own.  It's really not that hard to merely provide an alphabetical lookup screen.  Here's a cut-up/pared-down version of something I've done in the past to provide (what I think is) the Alphabet lookup you describe. 
 
The way this works is that the user_view.cpt submits to itself whereby the "request" is searched for the "letter" form variable.  A call is made to an skin script (not shown - you have to write it) called "getUserList.py" which allows/distinguishes for the "letter" passed parameter value (or not) and returns a list of objects/dicts accordingly.  Naturally, you'll want to display more/less for each user other than a link and title, but this is the idea.  Also, I've created/assumed a separate pt called "skin_macros.pt" to house all generally useful macros for a particular skin.
 
 
user_view.cpt:
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">
<body>
    <div metal:fill-slot="main">
    <metal:main-macro define-macro="main">
        <div metal:use-macro="here/document_actions/macros/document_actions">
            Document actions (print, sendto etc)
        </div>
        <h1 tal:content="object_title" class="documentFirstHeading">
            Title or id
        </h1>
        <div class="documentDescription" tal:content="here/Description">
            description
        </div>
       
        <div>
            <metal:use_alphabet_forms use-macro="here/skin_macros/macros/alphabet_forms" />
        </div>   
       
        <div tal:define="letter python:getattr(request,'letter',None)">
            <div tal:condition="letter">
                <h1> Alphabetical listing for
                    <span tal:content="letter" />
                </h1>
                <div tal:repeat="user python:here.getUserList(letter)">
                    <a class="visualIconPadding"
                       tal:attributes="href user/absolute_url"
                       tal:content="user/title">
                    </a>
                </div>
            </div>
            <div tal:condition="not:letter">
                <div tal:repeat="user python:here.getUserList()">
                    <a class="visualIconPadding"
                       tal:attributes="href user/absolute_url"
                       tal:content="user/title">
                    </a>
                </div>
            </div>

        </div>
    </metal:main-macro>
    </div>
</body>
</html>
somewhere in skin_macros.pt:
 
<div metal:define-macro="letter_form">
    <div style="float:left;">
    <form method="post"
          action="">
        <input type="submit"
           name="letter"
           value="A"
           title="Show A's"
           tal:attributes="value letter;
                   title python:'Show %s' % letter" />
    </form>
    </div>
</div>       
<div metal:define-macro="alphabet_forms"
     tal:define="alphabet python:list('abcdefghijklmnopqrstuvwxyz')">
    <tal:block tal:repeat="letter alphabet">
        <metal:use metal:use-macro="here/skin_macros/macros/letter_form" />
    </tal:block>
    <tal:block tal:define="letter string:a-z">
        <metal:use metal:use-macro="here/skin_macros/macros/letter_form" />
    </tal:block>
    <br />
    <br />
</div>   
       
       


From: [hidden email] on behalf of Benjamin Sommerfeld
Sent: Thu 1/3/2008 8:27 AM
To: [hidden email]
Subject: [Plone-Users] an alphabetical list of all users

Hi,

 

I would like to add a “person directory” for our university to our Plone-portal. This should be an alphabetical list of all users.

My users already have some custom profile properties I added in portal_memberdata (surname, prename, title, mobile, phone-number, etc.) and in the personalize and author-template.

 

I want it to behave this way:

 

-          On top of the page there should be all letters of the alphabet

-          If the visitor clicks on “A” for example, all users with a surname beginning with “A”  should be listed with some of their properties (phone, prename, surname)

-          If the visitor then clicks on one of these users, the “author” template of this user object should be shown

 

 

I don’t have much experience in Plone-programming, yet – I customized some templates and  added some properties to “portal_memberdata”.

Can you guys help me out how to do this?

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Ben () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Thanks a lot James,

 

I will look into that tomorrow. J

 

 


Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Mastro, James
Gesendet: Donnerstag, 3. Januar 2008 16:54
An: [hidden email]
Betreff: Re: [Plone-Users] an alphabetical list of all users

 

Sounds like you favor grow your own.  It's really not that hard to merely provide an alphabetical lookup screen.  Here's a cut-up/pared-down version of something I've done in the past to provide (what I think is) the Alphabet lookup you describe. 

 

The way this works is that the user_view.cpt submits to itself whereby the "request" is searched for the "letter" form variable.  A call is made to an skin script (not shown - you have to write it) called "getUserList.py" which allows/distinguishes for the "letter" passed parameter value (or not) and returns a list of objects/dicts accordingly.  Naturally, you'll want to display more/less for each user other than a link and title, but this is the idea.  Also, I've created/assumed a separate pt called "skin_macros.pt" to house all generally useful macros for a particular skin.

 

 

user_view.cpt:

 

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="plone">

<body>

    <div metal:fill-slot="main">
    <metal:main-macro define-macro="main">

        <div metal:use-macro="here/document_actions/macros/document_actions">
            Document actions (print, sendto etc)
        </div>

        <h1 tal:content="object_title" class="documentFirstHeading">
            Title or id
        </h1>

        <div class="documentDescription" tal:content="here/Description">
            description
        </div>

       

        <div>
            <metal:use_alphabet_forms use-macro="here/skin_macros/macros/alphabet_forms" />
        </div>   
       
        <div tal:define="letter python:getattr(request,'letter',None)">
            <div tal:condition="letter">
                <h1> Alphabetical listing for
                    <span tal:content="letter" />
                </h1>
                <div tal:repeat="user python:here.getUserList(letter)">
                    <a class="visualIconPadding"
                       tal:attributes="href user/absolute_url"
                       tal:content="user/title">
                    </a>
                </div>
            </div>
            <div tal:condition="not:letter">
                <div tal:repeat="user python:here.getUserList()">
                    <a class="visualIconPadding"
                       tal:attributes="href user/absolute_url"
                       tal:content="user/title">
                    </a>
                </div>
            </div>

        </div>

    </metal:main-macro>
    </div>

</body>
</html>

somewhere in skin_macros.pt:

 

<div metal:define-macro="letter_form">
    <div style="float:left;">
    <form method="post"
          action="">
        <input type="submit"
           name="letter"
           value="A"
           title="Show A's"
           tal:attributes="value letter;
                   title python:'Show %s' % letter" />
    </form>
    </div>
</div>       

<div metal:define-macro="alphabet_forms"
     tal:define="alphabet python:list('abcdefghijklmnopqrstuvwxyz')">
    <tal:block tal:repeat="letter alphabet">
        <metal:use metal:use-macro="here/skin_macros/macros/letter_form" />
    </tal:block>
    <tal:block tal:define="letter string:a-z">
        <metal:use metal:use-macro="here/skin_macros/macros/letter_form" />
    </tal:block>
    <br />
    <br />
</div>   

       

       

 


From: [hidden email] on behalf of Benjamin Sommerfeld
Sent: Thu 1/3/2008 8:27 AM
To: [hidden email]
Subject: [Plone-Users] an alphabetical list of all users

Hi,

 

I would like to add a “person directory” for our university to our Plone-portal. This should be an alphabetical list of all users.

My users already have some custom profile properties I added in portal_memberdata (surname, prename, title, mobile, phone-number, etc.) and in the personalize and author-template.

 

I want it to behave this way:

 

-          On top of the page there should be all letters of the alphabet

-          If the visitor clicks on “A” for example, all users with a surname beginning with “A”  should be listed with some of their properties (phone, prename, surname)

-          If the visitor then clicks on one of these users, the “author” template of this user object should be shown

 

 

I don’t have much experience in Plone-programming, yet – I customized some templates and  added some properties to “portal_memberdata”.

Can you guys help me out how to do this?

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Eric Steele (esteele) () Re: an alphabetical list of all users
Reply Threaded More More options
Print post
Permalink
In reply to this post by Raphael Ritz
Raphael Ritz wrote:

> Andreas Jung wrote:
>
> [..]
>
>> Such a view is trivial to implement with a template and a script and a
>> catalog search..nothing more than 10-20 lines of code.
>>
>
> and as this is what started this thread it may indeed seem
> like FSD is a bit heavy for just this (and maybe FSD doesn't
> even provide it?) ;-)
>
> Raphael
>
>
>> Andreas
>>

Sorry I'm a bit late to the discussion, between the holiday break and
the baby arriving 2 weeks early, I've been a bit out of the loop. :)

The A-Z listing is definitely one I'd like to see included in FSD.  If
anyone wants to code up a template, I'd be happy to include it in the
2.0 release.

 > Benjamin Sommerfeld wrote:
 > Are you running FSD 2.0a1? I tried it out on Plone 3.0.4 several
 > times, but can't manage to get it working.

We've received your ticket, thank you. I'm still trying to reproduce the
error at this point. Would you mind contacting me off-list at
[hidden email] to walk through this with me?

 > This directory should be very very simple and customized for our
 > university and I think it's not necessary to use even more external
 > products like it's done in FacultyStaff
 > (including Membrane, Remember, WebLionXY).

I'll readily agree that FSD has gotten quite large. Part of the idea
behind implementing SchemaExtender was that at some point, we could
start splitting off different sections of the functionality into
modules/add-ons/whatever. So, ideally, down the road, you'll see a
thinner core product, with the ability to add on components for
committees, specialties, bibliographies, etc. The membrane functionality
is currently turn-offable through the configlet, but still requires the
product exist in the products folder.

There's also been an internal butting-of-the-heads over the
WebLionLibrary dependency. There are chunks of code that we reuse across
several of our products, but at the same time, we understand that it's a
case of "yet another download" for folks.

 > Andreas Jung wrote:
 > Good point. On the other side FSD is written in a clean way and
 > I am using it because I am convinced that it is a good product.

That's sooo going in my performance review this year. :P

Eric

Eric Steele
WebLion Group
Penn State University


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users