Jump to content

Den S

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Den S

  1. Thanks, Soma. I was not aware of that option, will look into that. I used to have the same thing with autocomplete in drupal and while it is working better than plain select, still not as effective and accurate as the tree. With the tree long lines can be wrapped, this allows to see the difference in the long stings that may be different in the middle/end (i.e. when the same quote has been submitted in slightly different variations either due to an error or intentionally). But select is limited to one line. Not sure about autocomplete yet.
  2. Dragan, thanks for response. I am looking for a way to reference one element of a repeater from another pages. Almost the same as page reference does, but go one level deeper and reference not the whole page but a particular element of the repeater field on that page. Also I'd prefer to select the elements from a tree rather than from a select. Not looking to do cross-referencing, just one-way link, so the cross-referencing plugin is not needed. Also, it should be able to reference repeaters from different pages (in my example—different people), so pointing to a single parent won't work either, if I understood you correctly. @BitPoet's solution works quite nicely, with the exception of the selection bit. For now it will do and later I will try to change it. I don't quite understand yet why the code that is already there for the tree cannot be re-used for another purpose in the same way the select is. In the code of InputfieldPage I found a reference to deprecated method findPagesCode, so maybe i'll be able to leverage that.
  3. Thank you very much! It is working very nicely. Would you mind to also provide some pointers on how to maybe get the tree working? With large number of persons and several quotes per person this select will get very big very fast so finding correct element would be difficult. I notice that custom PHP is disabled when Page List is selected. Is there are another way to hook to this field to supply custom-built page array? In any case, thanks a lot!!!
  4. Hello Is there a ready way/module to select/reference an element of a field (i.e. particular element of a repeater) from another page? For example I'd like to have a page with quotes from people, where each quote is an elements of repeater field on person's page. Then on another page i'd like to be able to select/reference the quotes by selecting them them from a tree, like in the pagereference plugin, but having last element of the tree (leaves) presenting those quotes from the repeater field. The reason i am looking to do it this way is because sometimes the quotes are longer then allowed title length, so it is cumbersome to make them as independent pages, as far as i understand. Thank you.
×
×
  • Create New...