With my patch a template for the link “read more” becomes possible.

CommentFileSizeAuthor
#2 node.module.patch_0.txt1.12 KBquiptime
node.module.patch.txt716 bytesquiptime

Comments

quiptime’s picture

Please wait.

I poste a new patch version. Thus one has total control of “read more”.

quiptime’s picture

Title: Link 'read more' has no theme feature » Link 'read more' has no theme feature and cannot be removed.
StatusFileSize
new1.12 KB

This patch version gives total control of the link “read more”.

 
Example of use for the function theme_node_readmore ():

The modules “aggregator2” and “excerpt” are used. In this case - under each node existed the link “read more”. But,
the node show complete news content, then that link “read more” is not good.

 
Example of a template "node_readmore.tpl.php", in order to not show “read more”:

 //$Id: node_readmore.tpl.php, v 1.0 2006/07/07 quiptime Exp $

  $output = '';

  if ( arg(2) == '51' || arg(2) == '52' || arg(2) == '53' ) {
    $node->readmore = NULL;
  }
  $output .= $node->readmore;

  print $output;

In this example is “51”, “52” and “53” aggregator2 terms with news content. As result “read more” is not shown only with this terms.

 
Use of the function theme_node_link ():

This function serves the completeness of control of “read more”.

As example:

Simple changes of 'Read the rest of this posting.', 'read more' or other/more attributes.

 
----------------
quiptime

quiptime’s picture

You can view a real work example. Check out here:

http://www.microorganismos-efectivos.com/drupal/en/taxonomy/term/52

Note:

The English News have the 'read more'.
http://www.microorganismos-efectivos.com/drupal/en/taxonomy/term/52
The German (Deutsch) News
http://www.microorganismos-efectivos.com/drupal/de/taxonomy/term/51
and the Spanish (Español) News have not the 'read more'
http://www.microorganismos-efectivos.com/drupal/es/taxonomy/term/53

You can view this example for the next days. After this time the English News have no 'read more'.

(The work on http://www.microorganismos-efectivos.com/drupal/ is in progress.)

killes@www.drop.org’s picture

Version: 4.7.2 » x.y.z

feature requests go into cvs.

quiptime’s picture

I think my post is not a feature request. This is a bugfix!

LAsan’s picture

Version: x.y.z » 7.x-dev

Feature request moving to cvs.

jody lynn’s picture

Status: Active » Closed (won't fix)

These days people change 'read more' links with either stringoverrides or hook_link_alter