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
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
Next: package:44
JavaScript Avatar Grabber
Edited: 19 Sep 2012 08:08 by: GoVegan
Comments: 0

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"]]
@@[[include :csi:hidepage 
    button=Hide this line]]@@

Which will give you this:


Include files

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


Comments: 2

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