Table View for the Content Type

Once you have finished designing your flexinode content type and have created a number of actual nodes—basketball teams, in this example—you can view the results in the tabular view that flexinode offers. There is no link offered to this tabular view, so you must create one yourself using the primary or secondary links, or perhaps with the Menu module.

The path to the table view takes the form flexinode/table/type_id, where type_id is the numerical ID assigned to the content type you wish to view. To find out exactly what this ID is, you will need to do a little sleuthing. Go to the content type editing screen for the type that you are interested in: administer > content > content types > edit content type. The URL in your browser's address bar should look something like this:

http://localhost/drupal/?q=admin/node/types/edit_type/1

From this URL, you see that the type ID number is 1, thus the URL to the table view for this content type is as follows:

http://localhost/drupal/?q=flexinode/table/1

Figure 4-13 shows the table view for the sample Basketball Team flexinode type.

basketball team search results title Contact person Contact email Motto League Team color 1 Team color 2

basketball team search results title Contact person Contact email Motto League Team color 1 Team color 2

Fantown Favs

John Doe

[email protected] Team spirit, yay!

elementary

#FFFF00

Cornerville Comets

Dean Smith

deanffbh.cornerville.net Air ball!

junior high

# G G 0^9

#FFFF00

Sunny

Hoopsters

Sonny Courtman

s.court'Sjshoops.com Our future is bright!

high school

#CCFFFF

Ball-holla Brawlers

Buster Drupalicon

[email protected] Don't drop the ball

adult

#99FFFF

Figure 4-13. The table view for basketball teams

Figure 4-13. The table view for basketball teams

0 0

Post a comment