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]]
This uses the API, therefore it will only work on sites that you are a member of… right?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
It is stated in the text above
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.