By Pudding-1 on
Hi
I want to disable teasers but I can only set it to the minimum of 200 characters. I'm using the blue marine theme. How can I disable the teaser?
thanks for the help!
Hi
I want to disable teasers but I can only set it to the minimum of 200 characters. I'm using the blue marine theme. How can I disable the teaser?
thanks for the help!
Comments
Set the teaser length to
Set the teaser length to "Unlimited". Please read the help text below the dropdown menu.
Work smarter, not harder!
jeff [at] digitalsolutions [dot] ph
jhefmv [at] gmail [dot] com
Work smarter, not harder!
eliminate teaser entry box?
My question deals with teasers on forum postings, but probably applies to teasers everywhere...
When using the forum module, the user is asked to enter a teaser for each posting. In my opinion, the teaser is unnecessary here, and I'd like to eliminate it (including the entry box when posting).
Can anyone tell me how to accomplish this?
Had to add a feature
Setting it to unlimited didn't work. The description says so but I couldn't find that path through the code. Had to add the feature to disable the teaser...
Added a suppress option to Line 88:
This is the new piece:
1 => t('Suppress'),Then added a test to return an empty teaser in the later function on line 177:
Don't forget to get the retease module to old posts. You'll also have to run a cron job to execute the change.
That works... but I think
That works...
but I think it's the wrong approach.
A node showing no teaser isn't a node -- it's a title. And maybe some CCK fields.
As another commenter said, if you don't want the teaser, edit your theme. Or use Views to display titles only.
Totally hear ya, just like avoiding creating node templates.
Totally hear ya. I just like avoiding creating node templates when possible... and if this is the only reason it's a bummer.
S'all good. May take this approach.
PS: Here is the patch for the Drupal 6 version: http://drupal.org/node/271015#comment-3839078
If you don't want to show
If you don't want to show the taser, edit your template.
If you want to show a full post instead of the teaser when viewing posts by taxonomy terms or via ?q=node then do as mentioned above.
--
www.bargainspy.co.uk | More Drupal modules
--
Ixis (UK): Drupal support, Drupal hosting.
teaser
Thanks Budda, the unlimited option is indeed showing the entire post. I don't know how to modify my template to disable the teaser but I'll try to find out somehow.
Thanks
The easiest way...
Is to wack out the teaser stuff in the CSS file. It's not perfect, but it does work. Personally, I'm looking for a way to disable teasers for flexinodes,
KnowProSE.com
OpenDepth.comt
I needed to do this also. My
I needed to do this also. My solution was :-
a) Enable the profile module. I then added in a checkbox, called "profile_no_teasers". This enables users to select whether they wanted teasers or not.
b) Then, to actually use this profile value, I created a small module that does two things.
1. In hook_init, look for a profile setting that matched my profile name "profile_no_teasers" and stored the value (bool as it's a checkbox) in a session var.
2. In hook_nodeapi() if the session var value was true then I set node->teaser = '' to erase the teaser from the loaded node object.
A more complex solution but saves hacking any drupal supplied code and makes it "upgrade safe" as your own code modifications won't get clobbered by any future upgrade.
Worked for me at least and probably the best way to do it.
--AjK
This is a nice hack.
Which version of Drupal are you running (for clarity)?
KnowProSE.com
OpenDepth.com
CVS DRUPAL-4-7
CVS DRUPAL-4-7
(I'm assuming that question was meant for me?)
Regards
--AjK
Can you show the code that you used?
Thanks
Hi, I know this post is a couple of months old but I have the
Hi, I know this post is a couple of months old but I have the same problem. I don't want the teasers to be displayed --> http://drupal.org/node/90574#comment-165519
I downloaded your sample_no_teaser.module and placed it into my modules directory:
.../modules/sample_no_teaser.module
I enabled the module, enabled the rights at access control and selected finally the checkbox in my user profile but nothing happend. The teasers are still there :-(
I would like to have displayed this:
instead of that:
Do you have any suggestion? Would appreciate your help very much!
teasers still display despite no_teaser
I'm also using Drupal v4.7 with the no_teaser module installed. Unfortunately, the teasers are still being displayed despite this module being installed.
Does this module also (when working as designed) eliminate the teaser entry box when pages/stories are being created? I find that the whole idea of teasers confuses some users when they are creating content, so I'd like to get ride of them.
Thanks in advance...
Hi Ajk What if I dont want
Hi Ajk
What if I dont want the dependency on profile field, I want teasers to be disabled for all users... & not give them option to choose.
Also I was wondering if we can disable teasers only for certain vocabularies... like teasers for weblinks does not make sense to me.
______________________________________
Cheap domains @ http://whiz.in
Then just remove the part
Then just remove the part that ties it to a profile variable and "always" clobber the teaser.
If you want to do it by vocab, that's more tricky but doable. I don't have the time right now to provide any code to do it (too busy writing "bounty" / paid for work). But I'll try and get back to this when I have some spare time.
best regards
--AjK
Thanks AJk that would be a
Thanks AJk that would be a great help.
______________________________________
Cheap domains @ http://whiz.in
themes may be a better approach
if you still want a heading in your list, just no teaser, edit the theme. Assuming you are using the phptemplate engine you need to go to node.tpl.php. This theme file is called every time a node is processed. When it is being run as a listing (and generating a teaser) you need to stop it printing the content variable. This can be done using the if(page==0) conditional - if this is false the node is in teaser mode. You will still print out the heading so that it appears in your listing pages.
In terms of vocabs, it would be roughly the same approach, expcect the conditional would be looking at the terms array and checking for the existance of the vocab you were looking for.
hth