Jump to content

ziu

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by ziu

  1. Hi can anyone tell me how to use markup cache with images. @Can @pwFoo Thanks regards
  2. @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.
  3. @adrian with your help its working perfectly, i tested it. thanks
  4. thanks @Robin S @kongondo , you both are correct. i will create a page when user is created. Thanks will post the update.
  5. 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.
  6. 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
  7. @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.
  8. @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]);
  9. 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
  10. I will definately try these solutions, thank you @adrian and @Robin S.
  11. 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 ?>
  12. @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
  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.
  15. thank you adrian, i am trying this module and will update you regarding this. thanks again
  16. Hi i created a custom admin page and i just want to know is there a module or any way to show a user only those pages under subpages of a page in tree which he has created. please help.
  17. Hi dave, i attached an image , which describes what exactly i want to achieve. after user fills that property page, this page will add as a sub page under All Properties page as children. but one thing to note that one user can submit only one property at a time, hence he has permission to edit and save that page only. It will be big help for me, if you can guide me to perform this operation. as i am searching forum since last 10 days to achieve this and still not getting it. thank you
  18. Thank you dave i will try follow your steps , and will update about my progress. thank you really thank u
  19. I have created a website that has a login and register feature. i used ryan's login register module. but now i want the logged-in user to add a page e.g. Add Property this page will have custom fields which logged in user will fill. but user can add only single. and he/she can update/edit this page only. I need your help guys in achiveing this. Thanks in advance. Any help will be appreciated.
  20. thank you for your kind reply.
  21. Hi everyone, I am new to processwire, but really appreciate the way its works. Thank you Ryan. I need your help guys, any help would be appreciated, as i am searching the forum since last 1 month. but couldn't found out how to achieve. My issue is as my user registers on my website, it will be assigned a role. eg Register but what i want to achieve is that after login i want user to have edit profile , logout and Add Page. But i want user to add only one time, only single page can be post by him. if user adds the page, and login into account it must show edit page. Please help me guys.
  22. hey thanks nghi . you still rocks in 2017
×
×
  • Create New...