Jump to content

marcin

Members
  • Posts

    34
  • Joined

  • Last visited

Posts posted by marcin

  1. OK guys, problem is probably a bit more complicated - @Soma's solution won't work if I want to search for some list of pages' IDs in multiple page field(not through all pages in system). It's a part of quite complicated search, so list of items is processed a few time - using filter() is prefered, multiple loops would probably decrease performance.

    Example: I have list of pages: $itemsList - each item has attributes field(it's a page field). There is also array of attributes' IDs - I want to filter items which have all of attributes in attributes field.

    Thanks,

    Marcin

  2. @Soma: I have attributes set as pages. So I have list of all attributes(list of pages under Attributes page) and Page inputfield in some template. Now, I want to search only these ones(from this template) which have selected all of attributes I choose.

    You idea seems to be quite nice thanks. :)

  3. Hello, thank for your reply :)

    Whole thread you mentioned, appeared to be very helpful, thanks a lot! It solved both:

    a) $somePage->set('variableName', value)

    b) $somePage->template->set('filename', 'differentTemplate.php');

    You idea about returning JSON - pretty cool!

    PW community is really awesome. :)

  4. Hello,

    I'm working on simple newsletter module and I want to modify page source(different header, no navigation and sidebar) while sending email based on page.

    I need one of these:

    a) pass a variable to page(the same as isAjax works, eg. isNewsletter)

    b) render page using different template file

    and have no idea how to achieve one of above.

    I'm also wondering whether it's possible to get JSON response in admin? Module method ___executeXXX() prints whole page.

    Thanks, Marcin

×
×
  • Create New...