Hide rows in a table using tags
nav_first.pngFirst: package:1
Wikidot per-site help
Edited: 08 Nov 2009 12:06 by: pieterh
Comments: 0
Tags:
nav_prev.pngPrevious: package:42
CSS3 Tabview
Edited: 24 Dec 2010 07:30 by: Matt Gentile
Comments: 9
Tags: csi css3 tab tabs tabview
Last: package:49
Advanced Search
Edited: 01 May 2012 12:30 by: tsangk
Comments: 68
Tags:
nav_last.png
Next: package:44
JavaScript Avatar Grabber
Edited: 19 Sep 2012 08:08 by: GoVegan
Comments: 0
Tags:
nav_next.png

Hide rows in a table using tags
Package submitted by Steven Heynderickx
30 Dec 2010 11:19

rating: 0+x

This CSI is a tool to create the effect of deleting a remote page.
For example: If you use the listpage-module to create a list and you wish to be able to delete a page from that list, you always needed to firstly go to that page and then hit delete and afterwards you needed to return to the listpage.

Well using the API I've created a kind of "delete-me-from-the-list"-button
Since this is a CSI you need to remember that you can not use an include inside a simple table with the | |-syntax… You need to use the complex syntax to create a table [[table]][[row]][[cell]].

This CSI will NOT work if my program has no writing-permission on your site. So if you want this (it's free!) you need to give me (steven heynderickx) writing permission to your site, or you need to set up your own PHP-server and run my script. The source-code can be found here

So your table can be build like this (remove the @@ from the code)

[[module listpages category="package" separate="false" prependLine="[[table]]" appendLine="[[/table]]" tags="-_hide"]]
[[row]]
[[cell]]
%%title_linked%%
[[/cell]]
[[cell]]
@@[[include :csi:hidepage 
    hidepage=%%fullname%%|
    thispage=package:43|
    site=%%site_name%%|
    button=Hide this line]]@@
[[/cell]]
[[/row]]
[[/module]]

Which will give you this:

Instructions

Include files

[[table class="{$class}" style="border-collapse: collapse; width:100%; margin-bottom: 10px; font-weight:bold; background-color:#eeeeee;"]]

[[/table]]

Comments: 2

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