List of members

These documentation pages are no longer maintained. Please visit the new documentation site.

The member-list page will contain a list of all the club members. Each row in the list will show the name of a member. The following text explains how to create the member list page.

First of all, add the following lines to the CSS file:

.member_list

{

   width: 85%;

   font-size: 80%;

}
  1. Make sure that the "Members" link in the main menu points to the "Member" folder.
  2. Set up the anonymous policy (see the part on the news section)
  3. Create a new override for the "/node/view/full.tpl" template.
    Feel free to call it "full_view_member_folder.tpl".
    Set the override keys to the "Folder" class and the "Member" section.
  4. Replace the contents (if any) of the generated template file with the code provided below.
<div class="pagetitle">

   Current members

</div>

 

{* Grab all the child nodes. *}

{let children=fetch( content, list, hash( parent_node_id, $node.node_id,

                                         sort_by,       $node.sort_array ))}

 

   <table class="member_list" cellpadding="0" cellspacing="0" border="0">

 

       {* Loop through all nodes that we just fetched. *}

       {section name=Child loop=$children}

 

           {* Output the name as a link to the node containing the member. *}

           <tr>

               <td>

                   <a href={$:item.url_alias|ezurl}>{$:item.name}</a> 

               </td>

           </tr>

 

       {* End of loop. *}

       {/section}

 

   </table>

 

{/let}

Try to browse the "Members" page. If everything was done correctly, you'll be able to see a list of members; the page should look something like this:

Comments

comment

No it's left out because it's obvious how to do it but not necessary...

Would be good if...

..you also put a link back how to point the Members link to the members folder


/Fredrik

...but I suppose it is for learning purposes u left it out ;)

Contents

Building an eZ publish site

Prerequisits
Situation
Creating the TSCM site
Testing the interfaces
Setting up the main layout
Creating sections
The welcome page
The news page
The members page
    Creating a custom content class
    Adding members
    List of members
    Member info page
The guestbook
The links page


Created

07/11/2003
3:23:51 pm
by Balazs Halasy

Last updated

24/11/2004
1:32:21 pm
by Sandro Groganz

Authors

Balazs Halasy
Raymond Bosman
Sandro Groganz



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.