Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 11:19 am EST

Geeklog Forums

featured article in static page


Status: offline

slomo

Forum User
Newbie
Registered: 08/20/03
Posts: 1
Hello, I couldn\'t find an answer to this in the forums... What I\'m looking to do is use the new Static Page features of 1.3.8, where a static page can be the \"index\" or welcome page, but then I would like to include the one \"featured story\" or latest article, but not any of the older stories, on that page. Any tips on what code to pop in there (I\'ve tried using bits from featured story.thtml etc.). Is this possible? Thanks!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by slomo:Any tips on what code to pop in there (I\'ve tried using bits from featured story.thtml etc.).
When a static page is set up to take over the index page, it has to return the complete HTML for the index page. So you would have to add the code that pulls the featured or latest story to the static pages\' functions.inc (function plugin_centerblock_staticpages()). bye, Dirk
 Quote

All times are EST. The time is now 11:19 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