By vpower on
Hi,
I have a content type named 'lokale nyheter' which have a custom field named teaser. What I want is only the text in the teaser field to show up on frontpage and only the text in body to show up when clicking 'read more'.
As you can se on http://www.mun.no/ some of the text from the body field shows up. (the text teaserteaser.. is from the teaser field and bodybody.. is a small part of the text from the body field.)
Anyone help please?
Comments
Have you looked at "Display fields" tab when editing your CCK?
A few points:
When you edit your CCK content type, there is a tab for "Display fields" have you edited that to make your special teaser text have display set to "Default" for the Teaser column and to for the Full?
Do you have a custom "body_text" field too, or are you using the default "body"? If you use the default body, then you either have to put a
right at the start (messy and unpleasant) or a teaser will be constructed from it. If you make a custom "body_text" field, you can use the "Display fields" tab to hide it for Teaser and show it for Full.
If you have a custom body_text field, then you should probably eliminate the default "body" content for this type: Go to the "Edit" tab for your CCK type and make the "Body field label" have no text.
A alternate choice is to write custom templates for teaser and full nodes.
Thanks! :)
I was using the default body, but I`ve now created a custom body field and have now managed to get only the teaser field showng on the frontpage.
Now another problem showed up, the read more link is gone. I can get to the hole store by clicking the title field but I would also like a read more link :)
Any idea?
Thanks for great help so far by the way :)
read more link gone
*Bump*
Can anyone help me please? :)
In my content type I`ve created custom cck field for teaser and body. Now my read more link will not show. If I enable the default body read more is showing, but I don`t want to use the default body.
Anyone knows how I can get back my read more link?