Displaying Fields

In order to determine how input data should be displayed on screen, click on the Display fields tab next to Manage fields, when editing a content type. This brings up two tabs that cater for General and Advanced settings, respectively:

Endangered Species Edit' M=r-jgt. n^idv ; ^^ ..¿U Add field Add ottki^ fflSfiyinJ Advanced ccniiMins hew tfiii conr&nc type's fields ¿nc field totals should he üuHttsd ^htm it i v^wed ir. T^as^r ei-,<i M-cage mode-

Field Label Teaser Full »ode ccniiMins hew tfiii conr&nc type's fields ¿nc field totals should he üuHttsd ^htm it i v^wed ir. T^as^r ei-,<i M-cage mode-

Field Label Teaser Full »ode



| PFam text

Plain text ji



lieldsel- collapsed v

■heldset - collapsed is

Estimated rfumbers in the Wild




unfa rma^ed ■»

Estimated Numben in rhe captivity

at) one

i iiHifufincited


unformaiced v

Captive Breeding Pairs




unformatted v

Similar Aninrali



Titl-e (hnfcj


ntl-e (hnl) v

The General tab allows the Teaser and Full node fields and their labels to be displayed according to the settings made here. In the same way, the Advanced tab deals with the display of this content type in RSS items, the search index, and search results. Each field and group has a Label option to determine where the label is displayed, relative to the data it contains. For fields, the three options are Above, Inline or Hidden. Groups only have two options, Above and Hidden—Inline would not make much sense for a group.

Setting the Species Label to Above, as shown in the previous screenshot, displays its field content like this:


Wid. OViMzasa - cftan


Anriön« JubatlJl

Chapter 7

Setting it to Inline gives:


And finally, setting it to Hidden gives:


Arinrjrlv/; mbMui

As an exercise, try out the different options available for each of the fields (and group) in the Full node section. For example, changing the option to Hidden here, produces this result:


It's important to realize that different fields have different options, depending on what underlying type they are. An example of this is the Node reference type that can display the Title(Link), Title(no link), Full node, Teaser, and Hidden. As mentioned earlier, the Node reference type allows posters to reference another node, and in this case, I added a Similar Animals field to the Endangered Species content type.

Selecting the Title(Link) option in the Full node column for this type and ensuring that a few nodes have been referenced in a new post, like so (incidentally, this Node reference field was created with the Autocomplete option that allows posters to begin typing in the name of a post and select which of the available options are presented in the drop-down list—the actual node number is automatically added when a choice is made):


VHtJIflr AnlmH

+ |u™s "ail


+ (t'^Jiif

* !



Advanced Content

...displays the following when the content is viewed:


Wei, 01/31/2406 - li :0i - dear, 51 ivi 11ar Miiin.s(s:

uem the-etah

As requested, the user is presented with the titles of two other Endangered Species posts in the form of links that will take the user to their content. This is a really nice feature for providing connected and relevant content. Just as easily, we could have specified Full node for the Similar Animals Node reference field in the in the Full node column:

■rapine Breeding Pa's Similar Animals iLidire v J unformatted * Move » _ Title- C" in unfor-martad v [FUJI node i

...in which case, the entire nodes would be displayed instead of the title links in any content that referenced them:


»ViJ, 01/J3/200B - ltd.J - ileaT bimil.ir Anijri.il!,-


Uons ane the Ling oF tne jungle, , and -for sume reason are iiwav? failed ^ii^ba SlmllW Aiilinftli:


Uieetahi navflf prosper..

How you choose to present content is really up to your own preferences and what is most expedient and useful for users in the context of how they utilize your site. It is left as an exercise to go through the settings available under the Advanced tab and to make use of all the default field types in the process. Remember that you need to run the cron script before any new content will show up in search results (just in case you want to play around with the Search Result column and view the results).

Chapter 7

Was this article helpful?

0 0

Post a comment