Jump to content

Manaus

Members
  • Posts

    217
  • Joined

  • Last visited

Everything posted by Manaus

  1. Hello, is there a way to select 10 pages and delete them in a single click, in the admin panel? Thank you very much
  2. RT @gittower: We're giving away 3 licenses for the popular text editor @chocolatapp ! Retweet for a chance to win: http://t.co/Egrnj9TbF6 (…

  3. I just bought Dash, a OS X Documentation Browser for 80+ APIs http://t.co/nS9KUeuqMe

  4. Hello, my user (41) logs in, I need to know if he has permission to see that page. To enforce granularity, each page has a 'user' field, for example (41|1010). How do I check whether the user can see that page? I'm evaluating the strpos php function, but I fear it might lead to error. Note it's not about roles, each user can see one or more pages. Thank you very much
  5. Hello, is there some way to extend the users template with First name, Second name and so on? Thank you very much
  6. Hello, I need to access a page provinding a specific url parameter, such as ?project=14 Before accessing, the user should authenticate. Is this doable? If so, can you provide some hint? Thank you very much
  7. That was easier than imagined: $progetti = $pages->find("parent=$parent, user=$user->id");
  8. Hello, I have a template where there's a Page field "utente" containing a user. I want to query the pages like this: $progetti = $pages->find("parent=$parent, utente=$user->email"); But I'm getting a Internal Server Error. Thanks for any suggestion.
  9. Oh I see now I'm starting to get a grip on this Thanks and sorry for the dumbness
  10. Thanks Ryan! I'm wondering how to query the pages so to find all pages with user = loggeduser... I'm trying this one: $annunci = $pages->find("parent=/bacheca/, sort=-date, title!=new, limit=20, createdUser=$user->id"); But it doesn't seem to work. Thanks!!
  11. Hello, I'd like to add the user who wrote the post to the page data (either guest, or the logged in user), this is the code I'm currently using $form = $modules->get('FormTemplateProcessor'); $form->template = $templates->get('annuncio'); // required $form->requiredFields = array('title', 'body'); $form->parent = $page->parent; // optional, saves form as page echo $form->render(); // draw form or process submitted form Btw, using this code I get all the fields I put in the template, so rendering the user field generates a dropdown selectable list of users... Thanks for any advice!
  12. Looks like removeStatus does not exist either..
  13. Thanks adrian, I'm seeing this though: "Error: Exception: Method FormTemplateProcessor::addStatus does not exist or is not callable in this context"
  14. It works very well!! I see the new pages are unpublished by default, is this tweakable?.. Thanks!
  15. Hello, I'm trying to hack some code for the FormTemplateProcessor module. I have this page structure: posts post 01 post 02 post 03 post 04 new post I'd like to add the new post as a sibling of 'new' but I get the page always as its child. This is the code I'm using: $form = $modules->get('FormTemplateProcessor'); $form->template = $templates->get('contact-form'); // required $form->requiredFields = array('title', 'body'); $form->email = 'my@email.com'; // optional, sends form as email $form->parent = $page; // optional, saves form as page echo $form->render(); // draw form or process submitted form Thanks for any suggestion!
  16. Aha great community thanks guys
  17. Well found it if $page->path == "/"
  18. Hello, simple question: how do I check whether the viewed page is the homepage? if ($page->parent == "NullPage") or something like this? Thanks!!
  19. RT @muurgheria: @birraGilac spettacolare! Questo è quello che che i clienti della @muurgheria dicono...

  20. Hello, I need to make some site where the admin can assign projects to users (many to many). Users can write to specific areas, but cannot delete their messages (this is done by the admin). All of course should be protected by login and pass, with all the features of password retrieval etc.Can PW do all of this? If so, can you give some suggestion? Thanks!!
  21. Filmpan a #free bundle of #photoshop film presets from @colorgradeit check it out! http://t.co/RyhHSr0d

  22. Thanks, I noticed there's a Select and Select Multiple fieldtype in the Modules>Inputfield page. Are these for internal use, or usable in the admin?
  23. Hello again, I need to set up a template in which I use a field with a limited number of option (so to avoid misspelling). Is there any plugin or way to do this? Thanks!
  24. Thanks guys for the rich answers!
×
×
  • Create New...