Poll Manager, how does the mechanism published/unpublished flag works?
Posted: Tue Sep 04, 2007 4:52 pm
hi,
i writing my first component taking com_poll as a example. In my admin interface (like the Poll Manager), I would like to modify a flag in the same way as the published/unpublished flag. I could see in the two files admin.poll.html.php and admin.poll.php that this mechanism uses the javascript "listItemTask" and an array called "cid". After having clicked published/unpublished, this array cid should be in a php Variable _REQUEST["cid"] and _POST["cid"]. In my component, either there is no php variable _REQUEST["cid"] or when it is there, the array has allways the value 0 instead the row number (id). What needs to be done, that this variable cid is transfered from admin.poll.html.php to admin.poll.php?
I'm using Joomla 1.0.13.
Thank you for some help, Pierre
i writing my first component taking com_poll as a example. In my admin interface (like the Poll Manager), I would like to modify a flag in the same way as the published/unpublished flag. I could see in the two files admin.poll.html.php and admin.poll.php that this mechanism uses the javascript "listItemTask" and an array called "cid". After having clicked published/unpublished, this array cid should be in a php Variable _REQUEST["cid"] and _POST["cid"]. In my component, either there is no php variable _REQUEST["cid"] or when it is there, the array has allways the value 0 instead the row number (id). What needs to be done, that this variable cid is transfered from admin.poll.html.php to admin.poll.php?
I'm using Joomla 1.0.13.
Thank you for some help, Pierre