We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27228
    • 18 Posts
    Hi there,

    This might seem like a stupid question but i can’t figure it out, so i might as well post it. Here’s what I’m trying to do .

    I’m creating a TV drop down, which uses a @SELECT statement to get other documents.

    1) Is there a way to add a blank entry to the Drop Down List in case there I don’t want to link it.

    2) Is there a simple way when it comes to displaying my page to get the longtitle from the document linked by the Drop down? ie: If document 1 has a link to document 2 in the drop down list, can I display the longtitle of document 2 on document 1?

    Thanks.
      • 11975
      • 2,542 Posts
      Hi,

      1/change in tmpvars.inc.php (in manager/includes)
      Around Line #67

      <?php
      
      $index_list = ParseIntputOptions(ProcessTVCommand($field_elements, $field_name));
      //=> add the following line
      $field_html.= '<option value=""'.($field_value=='' ?' selected="selected"':'').'> - </option>';//this one
      while (list($item, $itemvalue) = each ($index_list))
      


      2/ Use the getField snippet

      [[getFied? &docId=`[*name_of_the_tv*]` &field=`longtitle` ]]

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l