Welcome to Geeklog, Anonymous Wednesday, December 25 2024 @ 08:36 am EST

Geeklog Forums

Removing Stories Summary


Status: offline

adydas

Forum User
Junior
Registered: 02/26/04
Posts: 33
How would I remove the summary of a story from appearing at the top of the full sotry. The reason I want to do this is because alot of the times I use excerpts from the full story as the summary and it is redunant to have both.
 Quote

tokyoahead

Anonymous
Change your layout file.
In you /pathtolayout/storytext.thtml you have a part that says

... {story_introtext}{story_bodyhtml} ...

remove the {story_introtext}

and it should be fine. Remember that this will then apply to all your articles, not just selected ones.

Maybe this would be another feature request? Make a small hook in the story editor that switches off the introtext when opening the whole story?

I had that issue also sometimes

Oliver
 Quote

Status: offline

adydas

Forum User
Junior
Registered: 02/26/04
Posts: 33
My storytext.html file doesn't have both of those fields, just he one introtext field.
 Quote

tokyoahead

Anonymous
Quote by adydas: My storytext.html file doesn't have both of those fields, just he one introtext field.


Check some lines further down, there should be the bodytext field, depending on your layout.

If its not there, thats strange. which layout are you using? if you had only the introtext, the full story would never be displayed!
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
Quote by adydas: How would I remove the summary of a story from appearing at the top of the full sotry. The reason I want to do this is because alot of the times I use excerpts from the full story as the summary and it is redunant to have both.
Sounds to me like you are refering to the article.thtml file, which includes {formatted_article}. that gem outputs the full article including the intro. If you want to lose some part of what is outputted there, you'll have to get into the function COM_article defined in lib.common.php--i cant help you there.

if you just remove the {story_introtext} from storytext.thtml you'll be missing the intro's (excerpts) from the index page. that defeats your purpose.
 Quote

All times are EST. The time is now 08:36 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content