Tabview with ListPages

Posted by Helmuti_pdorf on 20 Feb 2009 08:23, last edited by James Kanjo on 09 May 2010 06:04

Tags: listpages tabview

rating: +2+x

There is a simple method to use the ListPages module with "[[tabview]]" tag creating tabs with page dependent contents:

I make here an example with some pages of the category "howto" , only tagged with "listpages", sorted by their titleAsc ending , and show inside the tabs thwir complete content ( could be too much to download if they are big ) .
Important are these attributes:
separate="no"
prependLine="[[tabview]]"
appendLine="[[/tabview]]"

the sorting order is given with: order="titleAsc"

[[module ListPages category="howto" tags="listpages" separate="no" order="titleAsc"  prependLine="[[tabview]]" appendLine="[[/tabview]]"  ]]
[[tab %%litle%%]]
%%content%%
[[/tab]]
[[/module]]

In Action:

notice :
1.this page itself cannot be shown "complete" in the selected list (by tags="listpages") the modue ListPages does not work recursively;
2. The tab names are NOT Links to the pages (using %%linked_title%% IS NOT possible). If you want to insert the "linked_title" you can do it before the "content" with an explanation…
3. Every [[toc]] tag shows ALL existing headers ( of all inserted sub-pages on this page ! No chance to prevent this..

Screenshot

screenshot.jpg

Click on picture for live preview.

Code

The code below has to be inserted in the live _template for default pages or cat1:_template for category cat1

[[tabview]]
[[tab Article]]
%%content%%
[[/tab]]
[[tab Discussion]]
[[module Comments hideForm="true"]]
[[/tab]]
[[tab Related articles]]
> Articles sharing the same tags, if any
[[module ListPages category="*" tags="=" tagTarget="system:page-tags" separate="false"
prependLine="||~ Category ||~ Linked_title ||~ Tags ||"]]
||%%category%%: || %%linked_title%% || %%tags%% ||
[[/module]]   
[[/tab]]
[[tab Backlinks]]
> Pages that link to this one, if any
[[module Backlinks]]
[[/tab]]
[[tab Page info]]
||~ variable ||~ value ||
|| @@%%@@title@@%%@@ || %%title%% ||
|| @@%%@@linked_title@@%%@@ || %%linked_title%% ||
|| @@%%@@title_linked@@%%@@ || %%title_linked%% ||
|| @@%%@@page_unix_name@@%%@@ || %%page_unix_name%% ||
|| @@%%@@full_page_name@@%%@@ || %%full_page_name%% ||
|| @@%%@@page_name@@%%@@ || %%page_name%% ||
|| @@%%@@category@@%%@@ || %%category%% ||
|| @@%%@@link@@%%@@ || %%link%% ||
|| @@%%@@author@@%%@@ || %%author%% ||
|| @@%%@@date@@%%@@ || %%date%% ||
|| @@%%@@date|format@@%%@@ || %%date|%e %B %Y%% ||
|| @@%%@@author_edited@@%%@@ || %%author_edited%% ||
|| @@%%@@user_edited@@%%@@ || %%user_edited%% ||
|| @@%%@@date_edited@@%%@@ || %%date_edited%% ||
|| @@%%@@date_edited|format@@%%@@ || %%date_edited|%O ago (%e %b %Y, %H:%M %Z)%% ||
|| @@%%@@rating@@%%@@ || %%rating%% ||
|| @@%%@@comments@@%%@@ || %%comments%% ||
|| @@%%@@tags@@%%@@ || %%tags%% ||
|| @@%%@@preview(20)@@%%@@ || %%preview(20)%% || 
[[/tab]]
[[tab  Attached Files]]
[[module Files]]
[[/tab]]
[[tab  Attached Pics]]
[[gallery]]
[[/tab]]
[[/tabview]]

In action

start-ideas:social-bookmarking-widgets

Related

Author

gerdamigerdami. Please visit his/her userPage.

Add a New Comment

Links


Backlinks



Author

Helmuti_pdorfHelmuti_pdorf. Please visit his/her userPage.

Add a New Comment

Related articles

Comments

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.