|
YELLOW PAGE RECORDSYellow Pages are like Teams, in that they exist to categorize Suppliers in the same way that a Team categorizes its Members. Once you have created a set of Yellow Pages, Members can associate their Supplier accounts with one or more of these Yellow Pages, making it easier for other Members to find them. So Yellow Pages in Review Foundry are just like the Yellow Pages you find in other places, like the phone book or other internet listings of service providers. By being listed on a Yellow Page a Supplier can be reviewed and rated according to the rating attributes associated with the Yellow Page. How you define your Yellow Pages is entirely up to you. Yellow Pages are organized with the same kind of hierarchical structure that defines Categories and Teams: except for topmost Yellow Pages, each will have a parent Yellow Page to which it belongs, and each Yellow Page may be assigned an Editor who can handle reviews submitted on Suppliers belonging to that Yellow Page. Once you have entered a Yellow Page into the Yellowpage table, and it has been allocated a Yellow Page ID of, say, 6, then you can navigate to the Yellow Page detail page via the browsable Supplier pages, or you can enter the URL to the Yellow Page detail page directly into your browser, like so: http://www.mydomain.com/cgi-bin/path/to/... /foundry/do/reviews.cgi?module=find_supplier&yellowpage_id=8 Creating a Yellow PageAs with the other "Creating a Container" pages in this documentation, we cover here the procedure associated with adding a Yellow Page from the Database control panel, though you can also use the Yellow Page Browser in the admin area to create records. If you're not sure how to get to the Database control panel, see Creating a Category. From the Database menu on the Database control panel, select "Add" for the action and "Yellowpage" for the table. Click on the submit button to have the right frame load. You'll then see the following form elements (example input values have been added for clarity, and are explained below):
You can see that the input fields for this container are identical to the ones for the corresponding Category form, and differs from the corresponding Team form only in that the Invitation Only field appears in the latter form (giving you the opportunity to restrict Team enrollments to selected Members). For more information on the conceptual difference between Categories, Teams, and Yellow Pages see UNDERSTANDING THINGS & CONTAINERS. Editable Yellow Page FieldsThe following summary of the Yellow Page fields which appear both on the Add Yellowpage and Modify Yellowpage pages is mainly a rehash of the same information found in the corresponding section for Teams (but for purposes of self-containment, is presented here again). Note that the last 2 fields displayed above--Is Validated and Invitation Only--only appear when the Administrator or an Editor is logged in.
Name
When you name a Yellow Page, you name it locally. That is, you provide the name of the
Yellow Page relative to some parent Yellow Page. In the example, "Baseball Accessories"
is the parent Yellow Page, and "Signed Programs" is the name of the new Yellow Page.
The full name of the newly-created Yellow Page will be "Baseball Accessories/Signed Programs".
Clearly, you cannot include a / in your Yellow Page name (as / is the Yellow Page delimiter),
otherwise you will get an error message.
The column is Yellowpage.name
Subyellowpage of
Description
Keywords
Template Prefix
Image
Is Validated
Editable Non-Yellow Page FieldsIn addition to the Yellow Page fields shown above, there may be other non-Yellow Page fields which appear on the Add Yellow Page and Modify Yellow Page pages. The Administrator is able to modify the collection of rating attributes (or types) associated with a Yellow Page (which we term a Rating Template), so an extra form element will be present to handle this. As the form element is identical to the one shown in the corresponding section for Categories we'll just refer you to it instead of re-presenting it here: Editable Non-Category Fields. Each of the Container types, Category, Team, and Yellow Page use the same table to determine the elements of their Rating Template, namely the RatingType table, so the treatment is uniform for all Container types. Notes relating to Editor assignment would be the same as those presented in the section for Editable Non-Category Fields with the exception that Editor assignment is carried out by directly loading the Add page for the YellowpageEditor table. Adding Yellow Page FieldsIf you need to add extra fields to the YellowPage table you can do this. For detailed information on the process of adding columns to existing tables, see ADDING COLUMNS TO A TABLE. If you add columns which are used by some Yellow Pages and not others you can test for the column value before displaying it in any template which receives Yellow Page information. For example, if you add a Yellowpage.conditions column that you expect participating Suppliers to meet you can test with something like this: [% yellowpage = alias.yellowpage_info %] [% IF yellowpage.conditions %] PLEASE OBSERVE: [% yellowpage.conditions %] [% END %] Note: in practice you will have to search for the relevant yellowpage hash to reference. It might, for example, be current_level.yellowpage_info which is buried in a yellowpage loop somewhere within one of the Template-Toolkit templates used for the browsable Yellow Pages. « Table of Contents | Obtain Review Foundry » Copyright © 2004 Random Mouse Software. All Rights Reserved. |