I've got to write a script either xlst or ascx.cs, to allow tasks to be created on a task list page.
So far I've got each task as a seperate node under a folder "tasks", so when you view the page it shows some example tasks.
There is some input fields and textareas for each task and a update and remove/delete button.
Can anyone give me some pointers as to writing a script to update and delete tasks(nodes), i'm guessing it's too much to be done in a xlst, and i need to get my head into the commands in a ascx anyway.
Also depending on the user group I need the input fields to be labels instead of text strings and the delete button to be hidden.
Any code overviews or snippets would be extremely helpful and appreciated.
If your tasks are nodes and you want to programatically remove them then you will probably need to use the Document API to do so. For instance, this page on the Wiki describes how to Unpublish a document.
Task / todo List
Hi,
I've got to write a script either xlst or ascx.cs, to allow tasks to be created on a task list page.
So far I've got each task as a seperate node under a folder "tasks", so when you view the page it shows some example tasks.
There is some input fields and textareas for each task and a update and remove/delete button.
Can anyone give me some pointers as to writing a script to update and delete tasks(nodes), i'm guessing it's too much to be done in a xlst, and i need to get my head into the commands in a ascx anyway.
Also depending on the user group I need the input fields to be labels instead of text strings and the delete button to be hidden.
Any code overviews or snippets would be extremely helpful and appreciated.
Pete.
If your tasks are nodes and you want to programatically remove them then you will probably need to use the Document API to do so. For instance, this page on the Wiki describes how to Unpublish a document.
is working on a reply...