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
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/ ]
Hi,
Yes i need to use other content types too.any other ideas?
Regards, Hardik Shah
"blogdiva@culturekitchen.com" blogdiva@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/ ]
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">» <?php print $links ?></div> <?php endif; ?> <br class="clear" /> </div>
regards,
Hardik Shah hardik_nt@yahoo.com wrote: Hi,
Yes i need to use other content types too.any other ideas?
Regards, Hardik Shah
"blogdiva@culturekitchen.com" blogdiva@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/ ]
Hardik Shah wrote:
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">» <?php print $links ?></div> <?php endif; ?> <br class="clear" /> </div>
The $node object should have a content array, such that for a module called "my_module", you could print the desired content in the above template using something like:
print $node->content['my_module']['#value'];
Cheers, Jonathan
Hi,
The quick thought, is to use views and create a view as a table/list and only display the title.
Gordon.
blogdiva@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 http://in.rd.yahoo.com/tagline_webmessenger_2/*http://in.messenger.yahoo.com/webmessengerpromo.php
-- [ Drupal support list | http://lists.drupal.org/ ]
!DSPAM:1000,4777cb5d258423340018573!
Hi,
Thanks all for replies but i have solved the problem.in the template you need to use if($page==0) and then based on tht u can display $content or not.
thanks, Hardik Shah
Gordon Heydon gordon@heydon.com.au wrote: Hi,
The quick thought, is to use views and create a view as a table/list and only display the title.
Gordon.
blogdiva@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/ ]
!DSPAM:1000,4777cb5d258423340018573! -- [ 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.