Friday 14 December 2007 8:12:47 am
Hello, I would like to use the same custom "user edit template" both for the creation and the edition of my users. From within this "user edit template" how can I detect whether I am in an edition or creation context mode ? I tried using <i>$object.current.main_parent_node_id</i>, but the problem is if there is a validation round trip (ie: the email entered was not correct) then <i>$object.current.main_parent_node_id</i> is set ... (Maybe using the URL : user/register vs content/edit ... but how can I check the URL ? maybe there is a smarter way... )
Thank you for your help, Hakim
|