开发者

Drupal: Customize blog post "submission" area?

开发者 https://www.devze.com 2022-12-20 10:58 出处:网络
I created my own node-blog.tpl.php - I\'m looking to modify this code: <?php if ( $submitted ):?>

I created my own node-blog.tpl.php - I'm looking to modify this code:

<?php if ( $submitted ):?>
<span class="submitted"><?php echo $submitted;?></span>
<?php endif; ?>

I need to开发者_如何学Python re-arrange the structure of the contents of the $submitted variable.


There's also the Submitted By module. Here is an excerpt from its project page:

... lets you control the format of the "Submitted by" information on your content per content type. It adds a fieldset to your node edit form called Appearance that lets you put in a tokenized pattern for the text you want to display.


Investigate http://api.drupal.org/api/function/theme_node_submitted/6
You can retheme it in template.php or remove print $submitted and print manually username and created as you want...

0

精彩评论

暂无评论...
验证码 换一张
取 消