ziu

Members
  • Content count

    24
  • Joined

  • Last visited

Community Reputation

6 Neutral

About ziu

  • Rank
    Jr. Member
  1. @adrian i am still not able to figure it out, can u tell me how can create a page like 'profile' so that when user who logs in can have this page's shortcut on their screen and can just fill this page.
  2. @adrian with your help its working perfectly, i tested it. thanks
  3. thanks @Robin S @kongondo , you both are correct. i will create a page when user is created. Thanks will post the update.
  4. hey its easy, u just have to create a copy of user template for example user-2 template, and also one more template to store user-2 pages as child , for example user2-parent. now u have to apply set family settings as child and parent. in site/config.php you have to define userTemplatesId and userPagesIDs. Then under home create a new page, with user2-parent as its template. Thats it. Now under users when u add a new user it will ask you which template you want to use. Enjoy.
  5. hi, just created a parent page and under this i want a user who is logged in to create only one page, not more than that. how can i do this. thanks
  6. @adrianyour hideotherpages and hideuneditable modules works like charm, but i used createdUser->id with User->id to match and show only those pages which a user has created. Many thanks to adrian, i really appreciated the way he reponds.
  7. @adrian thank you, your module works great, and i have changed a statement after that everything works perfect, now can show only those pages to the logged in users which they have created. this : if($c->createdUser != $this->user) unset($json['children'][$key]); to this: if($c->createdUser->id != $this->user->id) unset($json['children'][$key]);
  8. hi @adrian that worked , now user can edit only those pages which he has created, but user still can see all other pages, can't we do anything to hide other pages that he has not created in list, i already tried to use higepagesuser module, but thats not working. Help
  9. I will definately try these solutions, thank you @adrian and @Robin S.
  10. i have created a custom admin page which shows pages of a template only... below is the code, but i want to show only those pages that are created by the login user. as i already tried other solutions you mentioned above, but i am totally confused that, how can display those pages. <?php $u=$user->id; $this->modules->get('JqueryMagnific'); //render PageListtree with setting the parent page $formImages = $this->modules->get('InputfieldForm'); // prep the form $wrapperImages = new InputfieldWrapper; // a wrapper $wrapperImages->attr('value', '<h2>Artist Registration Page</h2>'); $i = $this->modules->get('ProcessPageList'); // here i want to display only those subpages which matches to the user logged in $i->set('id', 5845); // setting the parent page $pageTreeImages = new InputfieldMarkup; // the placeholder $pageTreeImages->value = $i->execute(); // fill the InputfieldMarkup form field... $wrapperImages->add($pageTreeImages); // put inside the wrapper... $formImages->append($wrapperImages); // append the wrapper ?>
  11. @adrian hi , can you show me the right way to use 'createdUser' api , i want to match this with the logged in user so that i can display those pages only which has been created by the same user who is loggedin. thank you
  12. adrian admin action module is great module. thanks
  13. Thank you adrian, you are so quick, thanks alot, i guess the links you shared can possibly solve my problem and i am also thinking about the way you presented the paging approach. thank you. will update you soon.
  14. i used that module but its not what i was looking for, i have below mentioned pages. Properties (parent template) ---Property 1 created by admin ---Property 2 created by user1 ---Property 3 created by user1 ---Property 4 created by admin ---Property 5 created by user1 But i when 'User1' login to his account-- i want to show only those pages which he has created. like below Properties (parent template) ---Property 2 created by user1 ---Property 3 created by user1 ---Property 5 created by user1 Thank you, any help will be appreciated.