HI,

i really finding difficult in placing a teaser break for pages where its content is not displayed to the front page. i am searching for this for more than 3 weeks but still unable to find a solution.so can anyone please tell me how to insert a teaser break to pages where its content are not published to the front page.thanks in advance.

regards,
sasi_s

Comments

matt_harrold’s picture

Put

in your body text at the point you want to cut off the teaser, or use the "Split summary at cursor" button on the node edit form.

Anywhere this page is displayed in teaser mode, you'll now see your text trimmed exactly as you expect.

I don't know why you mention the front page ... whether a page is promoted to the front page or not has nothing to do with page teasers.

sasi_s’s picture

Hi Matt,
Thanks for your reply.The way you described above works well when we publish the page content to front page.But it doesn't work when we need to put a break to a page content that are not published to the front page. Let me tell in detail about the problem.

In my project I have to create an "about us" page. In that page I just need to show a brief notes about the company. later I have give an option like "read more", where it displayes the full content about the company.

Since we can't publish "about us" page content to front page ,I didn't enable the "publish to the front page" option. I just inserted the teaser break to the point where I have to split the summary. But unfortunately it doesn't work. I didnt understand what went wrong.Need your help. Thanks in advance.

regards

sasi_s

matt_harrold’s picture

I think what's happening is you're confusing the whole point of "what a teaser is and when its' used".

A teaser is meant to be a short summary/preview/teaser of a page to be shown on "other" pages. If you aren't going to show the About Us page content on the About Us page ... where are you going to display this content?

If you want to show things like you've anticipated, why not create a vocabulary called "Site Structure" (or something) .. add a term called "About Us" ... tag your page with this term ... then make the taxonomy term page your "REAL" About Us page.

sasi_s’s picture

hi matt,

Once again thanks for your reply.but sadly I hope you didnt understand problem. let me expalin it.

http://zenovainfotech.com/services

in this site I need to show a breif notes .I have to place a "read more" option exactly at the ending points of the list of services.

THAT IS THE BELOW TEXT SHOULD BE SHOWN TO THE USER

We provides enterprise services in the areas of:

• Software Development

• web application and portal development,

• website designing and development,

• e-Commerce solutions, corporate branding and

• lots more web-based enterprise solutions at very affordable rates.

readmore

AFTER THIS I HAVE TO PUT A " read more" OPTION , SO THAT WHEN USER CLICKS ON IT, IT SHOULD DISPLAY THE REMAINING CONTENT AS SHOWN BELOW.

We provides enterprise services in the areas of:

• Software Development

• web application and portal development,

• website designing and development,

• e-Commerce solutions, corporate branding and

• lots more web-based enterprise solutions at very affordable rates.

We are strictly following the latest and standard web designing and development techniques such as Web 2.0 technology, basic SEO, page optimization, creative designs and many more, which gives your website more attractive and professional feel. It helps to increase your business queries. We are glad to provide our customers with best quality and standard web solutions at economical rates.

need your help.

regards,
sasi_s

matt_harrold’s picture

I understand now. You're trying to simulate the teaser behaviour for aesthetic reasons.

An immediate solution that comes to mind is the Collapsible Text module (http://drupal.org/project/collapse_text).

This isn't exactly what you want, but close ... and easy to set up.

Another option would be to use a combination of CSS and JQuery (read this:http://www.learningjquery.com/2006/09/basic-show-and-hide)

The "gist" of that approach is like this (untested):

<p>This is the teaser</p>
<a href="#" onclick="javascript:$('div.fulltext').show();return false;">Read more</a>
<div class="fulltext" style="visibility:hidden">The rest goes here</div>