Module Feed: Collapsible

By ErichSteinboeckErichSteinboeck

Description

In post Dynamic Feed Module/Summary & Details from Mar '09 a question appeared regarding module Feed: 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

Here's an idea what you could do (you may also want to check a different approach)

Code

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]]

In action

{"module":"feed\/FeedModule","params":{"src":"http:\/\/rss.slashdot.org\/Slashdot\/slashdot;http:\/\/digg.com\/rss\/containertechnology.xml","offset":"1","limit":"1"}}

%%title%%, %%date%%[[/module]]

{"module":"feed\/FeedModule","params":{"src":"http:\/\/rss.slashdot.org\/Slashdot\/slashdot;http:\/\/digg.com\/rss\/containertechnology.xml","offset":"2","limit":"1"}}

%%title%%, %%date%%[[/module]]

{"module":"feed\/FeedModule","params":{"src":"http:\/\/rss.slashdot.org\/Slashdot\/slashdot;http:\/\/digg.com\/rss\/containertechnology.xml","offset":"3","limit":"1"}}

%%title%%, %%date%%[[/module]]

{"module":"feed\/FeedModule","params":{"src":"http:\/\/rss.slashdot.org\/Slashdot\/slashdot;http:\/\/digg.com\/rss\/containertechnology.xml","offset":"4","limit":"1"}}

%%title%%, %%date%%[[/module]]

{"module":"feed\/FeedModule","params":{"src":"http:\/\/rss.slashdot.org\/Slashdot\/slashdot;http:\/\/digg.com\/rss\/containertechnology.xml","offset":"5","limit":"1"}}

%%title%%, %%date%%[[/module]]


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by ErichSteinboeck

TOC's from many pages - 16 Feb 2012 01:47
Redirect: To - 16 Feb 2012 01:37
Module Listpages Tags - 16 Feb 2012 01:24
Module Feed Drilldown: Details Page - 16 Feb 2012 01:24
Module Feed Drilldown - 16 Feb 2012 01:24
Module Categories - 16 Feb 2012 01:23
MiniRecentPosts With Limit - 16 Feb 2012 01:23
ListPages: Horizontal? - 16 Feb 2012 01:20
Choose A Page! - 15 Feb 2012 00:32
Redirect: From (1st) - 01 Mar 2009 18:18
Redirect: From (2nd) - 01 Mar 2009 18:17


Rate this solution

If you think this solution is useful — rate it up!

rating: +2+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License