<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Greg Knaddison ha scritto:
<blockquote
 cite="mid:3861c6771003030549y2c145bcao184bead3f539344b@mail.gmail.com"
 type="cite">
  <pre wrap="">On Wed, Mar 3, 2010 at 6:33 AM, Michel Morelli <a class="moz-txt-link-rfc2396E" href="mailto:michel@ziobuddalabs.it">&lt;michel@ziobuddalabs.it&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Yes. If you need to display only an item content you can use "check_markup".
node_load()+check_markup it's more quick than a node_view() (for a single or
few node's items).
In all other case node_view is the right choice.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
I think you simplify too much. </pre>
</blockquote>
<blockquote
 cite="mid:3861c6771003030549y2c145bcao184bead3f539344b@mail.gmail.com"
 type="cite">
  <pre wrap="">The check_markup solution will only
display content in the $node-&gt;body </pre>
</blockquote>
No, you can use this function where you want. <br>
<br>
<blockquote
 cite="mid:3861c6771003030549y2c145bcao184bead3f539344b@mail.gmail.com"
 type="cite">
  <pre wrap="">and it doesn't allow other modules
on the site to do the normal overriding that they might do (many
modules work that way) so I consider the check_markup solution only a
solution for very specific sites.</pre>
</blockquote>
Not for very specific sites, but for very specific situations/cases.
IMHO.<br>
<br>
And the question is: are we talking, in this thread, on display a value
of a node's field in a
specific situation (like a costum module) or are we talking on which is
the right way to display a node's fields in every situation ? <br>
<br>
<blockquote
 cite="mid:3861c6771003030549y2c145bcao184bead3f539344b@mail.gmail.com"
 type="cite">
  <pre wrap="">If someone is building a general module they should use node_view (or
copy the code from node_view and alter appropriately).
  </pre>
</blockquote>
But node_view exec more and more query that could be useless. Think a
content type with 10+ fields (text, image, fileattach and maps) and a
situation that needs only the "title" field. Use of node_view is
useless and bad for the performance.<br>
<br>
M.<br>
<pre class="moz-signature" cols="72">-- 
Michel 'ZioBudda' Morelli                       <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

<a class="moz-txt-link-freetext" href="http://www.ziobudda.net">http://www.ziobudda.net</a>                         ICQ: 58351764  
<a class="moz-txt-link-freetext" href="http://www.ziobuddalabs.it">http://www.ziobuddalabs.it</a>                      Skype: zio_budda
<a class="moz-txt-link-freetext" href="http://www.ziodrupal.net">http://www.ziodrupal.net</a>                               MSN: <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>                   
                                                JABBER: <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>
</pre>
</body>
</html>