Module Feed: Collapsible

By ErichSteinboeck ErichSteinboeck

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":"1","limit":"1"}}

%%description%%[[/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":"2","limit":"1"}}

%%description%%[[/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":"3","limit":"1"}}

%%description%%[[/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":"4","limit":"1"}}

%%description%%[[/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]]

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

%%description%%[[/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
Default state expanded
Ai-Dealer Ai-Dealer 26 Apr 2010 16:33

Is there a way to over ride the default state of the collapsible tag to be expanded rather than collapsed?

I tried putting the hide="Collapse.." in the first position, but it still starts collapsed.

by Ai-Dealer Ai-Dealer , 26 Apr 2010 16:33
Re: Default state expanded
(account deleted) 26 Apr 2010 16:43

Yes, you can. See the documentation.

Add the folded="no" parameter.

-Ed

by (account deleted), 26 Apr 2010 16:43
Re: Default state expanded
Ai-Dealer Ai-Dealer 26 Apr 2010 17:08

Ahhh… RTFM… Thank you. ;-)

P.S. Now I know about hideLocation="both" too. Very useful.

by Ai-Dealer Ai-Dealer , 26 Apr 2010 17:08
That is great!
Helmut_pdorf Helmut_pdorf 05 Mar 2009 08:58

Thanks Erich!

The idea is clear !


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 05 Mar 2009 08:58
page revision: 1, last edited: 16 Feb 2012 01:23
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /