[4548] News Archive not viewable.
Brought to you by:
canajun2eh,
yalnifj
If you have the News block configured to show X number of articles it is no longer possible to view hidden items by clicking the "view archive" link. The items are still there in the RSS feed and if you change the block settings to not hide them they reappear. Might be related to the new Ajax loader?
If you comment out line 129 of session_spider.php (embedded URL check), does the problem go away?
Commenting 129 no difference. Commenting 128-130 made no difference.
Clicking the view archive link triggers a page reload and despite the "gedcom_news_archive=yes" in the url the block is loaded in the default state.
http://www.stronski.org/pgv
<sigh>
The block has some conditional code that depends on parameters passed to the index.php page.
Nothing like designing a system of independent modular blocks, then someone hard-coding a dependency on a parent page.
I can't be arsed sorting this out. I'll revert the ajax-block loading.
Greg:
Be reasonable, calm, and collected.
The "gedcom_news_archive" parameter you're so incensed about isn't actually an input variable to the index.php script: it's an input variable to the "blocks/gedcom_news.php" script.
All you need to do is a safe_GET within the gedcom_news.php code. This variable is a temporary override to the block's configuration, to force the block to print all of the accumulated news articles without the usual configured limits.
If you don't like this -- it causes the Index page to be re-loaded -- please think of some other way a block can re-load itself with self-changed operating parameters. Personally, I think the penalty of re-loading the index page is acceptable, considering that the option that triggers this wouldn't be used all that much.
Is this problem going to be fixed at some point or do I have to go in and turn off ajax loading?
It would be nice if there was at least a switch.
I have several new users who are now asking what a "NEWS ARCHIVE" is as they can't see any news articles (all older than 30 day limit on the block) and the link still doesn't pull up the archived news articles. I'm with Stew - will there be a bug fix here?
-stephen