Extension talk:EmbedNews

From MediaWiki.org
Jump to navigation Jump to search

Append questions, etc, concerning this extension below.

Page Inclusion[edit]

I think this is a relatively difficult feature request. Here's the scenario: I currently update the two most recent news entries by hand on my main page. Each entry uses a template and has it's own page with a discussion link to the talk page. There's a link to a page for all news that uses page inclusion for all of the news entries. It would be nice to see a feature that could find a certain number of pages from the main news page and display a defined amount of entries that look like {{News:2008-01-30}}. --Steve 05:46, 30 January 2008 (UTC)


I Think I understand what you mean.

  • Each news entry is on their own page.
  • You have a page containing the links to all news (in the form of {{*}})
  • You want to be able to iterate through a set number of entries
  • Include them on a page

This sounds quite possible that my extension is able to provide this feature. I will have a look into this today.

matx 06:55, 30 January 2008 (UTC)

Cannot modify header error[edit]

I'm trying to use EmbedNews with 1.12.0 and get the extension code displayed in a jumble all over the screen after enabling it...

The apache error log shows this

PHP Warning:  Cannot modify header information - headers already sent by (output started at embednews.php:158)
in /includes/WebResponse.php on line 10

automatically create news page[edit]

i use the following line: past five events and up to 14 days ago: <embednews>{{pagename}}/nieuws|table backlog=5 daystail=14</embednews> However i get an error: Catchable fatal error: Argument 1 passed to Article::__construct() must be an instance of Title, null given, called in C:\xampp\htdocs\w\extensions\embednews.php on line 502 and defined in C:\xampp\htdocs\w\includes\Article.php on line 67