Jump to content

palacios000

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by palacios000

  1. hello, Is it possible to get any language field value, specifically for the $page->title? My situation is this: I have the FormBuilder module that generates a page when a user fills the form. If FormBuilder is loaded in the Italian translation, FormBuilder creates a new page with the title in Italian. And if I want to get the title from the API using $page->title nothing comes up. The form is loaded in several languages, so each time the title could be in any language and I don't know which one to pick-up. The "Page Title (Multi-Language)" is very useful for all other pages, but not with the ones created automatically. Is there a way to solve this, something like $page->title_first_available_entry ? Thanks in advance for your help
  2. Hi. What does the "Context" option do for a field type? Are there any advantages? Maybe performance? Thanks a lot!
  3. WOW! even easier then I thouhght.. well done PW and thank you for reply!
  4. hello! I can't wait to see my first PW project wheeling on the net. Before that I need to solve some problems to understand the big picture. let's say I am trying to organise a directory of hotels, several hotels share the same information (check-in, check-out, etc) depending from supplier. What I've done is have a template for "hotels" and one for "suppliers". In the "hotels" template I have a 'field' type 'page' (i named it: blng_supplier) where I can select which supplier to associate to the hotel. then I wrote $supplier = $page->blng_supplier; // here I'm on the hotel page echo $supplier; // it outputs supplier page-id number: 1234 echo $pages->get($supplier)->supp_check_in; // nothing happens ... echo $pages->get(1234)->supp_check_in; // it works! So I'm bit lost now.. what is the best way to get other variables from another page/template? thanks in advace!
×
×
  • Create New...