/[drupal]/contributions/modules/get_content_type/README.txt
ViewVC logotype

Contents of /contributions/modules/get_content_type/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jan 30 18:04:40 2008 UTC (21 months, 3 weeks ago) by nancyw
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/plain
Initial Release for Drupal 5.x
1 $Id $
2 Get_Content_Type Module
3
4 The get_content_type module fills an oversight by the D5 developers.
5 When they moved the part of CCK (sometimes called CCK-Lite) into core
6 for creating new content types, they forgot the analog to
7 "taxonomy/term/xxx," that is "node/type/xxx." This simple module
8 provides that function.
9
10 It may be invoked with "node/type/content-type/teaser/number-per-page"
11 or "node_get_by_type(content-type, teaser, number-per-page)" where:
12 * content-type is the (internal) name of the type;
13 * teaser is TRUE or FALSE to show in teaser format (TRUE is default);
14 * number-per-page is the number of nodes to show per page (default is
15 the same as the post settings).
16
17 The "sticky" attribute is honored (as is sticky-encoded weighting).</p>
18
19 For example: assume that post settings is at the default of 10 per page,
20 "http://mysite.com/node/type/story" will show all the "story" type nodes
21 as teasers with 10 per page.
22
23 "http://mysite.com/node/type/ed-classified/FALSE/5" will show 5 classified ads per page as full nodes.

  ViewVC Help
Powered by ViewVC 1.1.2