I have an RSS feed containing a fairly large number of bits of information, too much to comfortably fit on the screen.
I've got the Feed module set up to show a subset of the fields in a list, which is working well. However, I would like to be able to allow some form of "drill-down" so that you can click on an individual entry in the feed and display the whole entry in an expanded form.
Things I have tried so far:
a) I've looked at collapsible blocks, but they don't function within the feed module block.
b) I've looked at specifying the FEED module parameters within a URL, and calling a sub-page for expanded details, but you cannot currently specify "src" parameter for the feed within a URL.
c) I've set up a page template for details, with variables, but there doesn't seem to be a way to pass variables through from the calling page.
Any suggestions on how I can call an RSS feed or generate a new page on-the-fly in this manner?
Not a very good solution, but at least something:
Create a “Summary” page …
[[module Feed ...]]
[[# %%link%%]]%%title%% [[size smaller]][/details-page#%%link%% Read more ...][[/size]]
[[/module]]
… and a “Details” page
[[module Feed ...]]
[[# %%link%%]]**%%title%%** [[size smaller]][/summary-page#%%link%% Back to list ...][[/size]]
%%description%%
[[/module]]
The summary page creates anchor links (%%link%% is assumed to be unique within the feed) to the details page to let the user see more details.
See http://snippets.wikidot.com/code:module-feed-drilldown for a working example.
> not the most elegant solution in the world
I know, I know. I tried a lot of different approaches, none were really satisfactory. By the way: I noticed that I had reported the collapsible bug with module Feed back in Nov 2007 and Michal had answered “does not work … wait until the next major upgrade”
Here's another idea:
Repeat below code as often as necessary while each time increasing offset by 1
[[module Feed src="..." offset="1" limit="1"]]
**%%title%%,** %%date%%[[/module]]
[[collapsible show="Show details »" hide="Hide details «"]]
[[module Feed src="..." offset="1" limit="1"]]
%%description%%[[/module]][[/collapsible]]
See it working at http://snippets.wikidot.com/code:module-feed-collapsible