[support] How to remove story desc from front page?

Hardik Shah hardik_nt at yahoo.com
Sun Dec 30 18:11:48 UTC 2007


i think we can do it by customizing node-storylink.tpl.php but when i comment out the <?php print $content ?> statment in the bellow code then the vote updown widget also stops appering as the code for it is in the $content itself.so is there any way where i can modify the code and make it so that if $page==0 then it only display the code for widget and not the contents?

<!-- start node -->
<div id="node-<?php print $node->nid; ?>" class="node storylink clear-block<?php print ($sticky) ? ' sticky' : ''; print (!$status) ? ' node-unpublished' : ''; ?>">
<?php print $picture ?>
<h2 class="title"><a href="<?php print $storylink_url ?>"><?php print ($seqid) ? $seqid .'. ' : '' ?><?php print $title ?></a></h2>
<?php print $vote_storylink_via ?>
<?php print $vote_up_down_widget ?>
<div class="content"><?php print $content ?></div>
<div class="submitted"><?php print $submitted ?>
<?php if ($terms): ?>
<span class="terms"> | <?php print t('Tags') ?>: <?php print $terms ?></span>
<?php endif; ?>
</div>
<?php if ($links): ?>
<div class="links">&raquo; <?php print $links ?></div>
<?php endif; ?>
<br class="clear" />
</div>


regards,


Hardik Shah <hardik_nt at yahoo.com> wrote: Hi,

Yes i need to use other content types too.any other ideas?

Regards,
Hardik Shah

"blogdiva at culturekitchen.com" <blogdiva at culturekitchen.com> wrote: Do you have any other nodes going to the front page? If you don't 
then I would just customize the page.tpl.php in whichever 
theme you're using for your site's design. 


If you have more nodes going to the front page, then you may have to 
create a custom template for that. 


/ liza

 Liza Sabater, Publisher
www.culturekitchen.com
www.dailygotham.com


MOB - 646.552.7365
AIM - cultkitdiva



 

On  30.Dec.2007, at 05:35, Hardik Shah wrote:

Hi All,

I would like to remove the story description from frontpage.I mean on my site http://newskicks.com i only want to display the story title on frontpage(like http://reddit.com) i am using story linkn module.can any one tell me how can i achive this?

Thanks for your help in advance.

Thanks & Regards,
Hardik Shah


--------------------------------
  Hardik Shah
  mobile:- 9827634991
  phone:- +91-0731-2570516  
       


---------------------------------
 Did you know? You can CHAT without downloading messenger.  Click here-- 
[ Drupal support list | http://lists.drupal.org/ ]
 

-- 
[ Drupal support list | http://lists.drupal.org/ ]


--------------------------------
  Hardik Shah
  mobile:- 9827634991
  phone:- +91-0731-2570516  
           

---------------------------------
 Why delete messages? Unlimited storage is just a click away.-- 
[ Drupal support list | http://lists.drupal.org/ ]


--------------------------------
  Hardik Shah
  mobile:- 9827634991
  phone:- +91-0731-2570516  

       
---------------------------------
 Now you can chat without downloading messenger. Click here to know how.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20071230/9bc4c546/attachment.htm 


More information about the support mailing list