0
Welcome Guest! Login
0 items Join Now

remository questions

  • remository questions

    Posted 16 years 6 months ago
    • hi all,

      I am having some probs in getting a couple adjustments of remository to work and am wondering if somebody could help me out pls?


      1) I would like to use a simple dropdownlist for some of the elements in submission page.
      thus I am trying to set up the following in ../components/com_remository/v-classes/remositoryAddFileHTML.php
      function selectList ($title, $selector, $redstar) {
           $this->inputTop ($title, $redstar);
           ?>
                <td valign="top">
                     <?php echo $selector; ?>
                </td>
           </tr>
           <?php
      }

      so I can add to function addfileHTML:
      $lotsize = array(_NULL, _SMALL, _MEDIUM, _LARGE);
      $this->selectList(_LOT_SIZE, $lotsize, 'lotsize', true);

      however I am getting an error on the function and cannot figure out how to fix it. could somebody pls show me what I'm doing wrong?


      2) in ../components/com_remository/v-classes/remositoryAddFileHTML.php I have added:
      $this->fileInputBox(_RECOMMENDED01_URL,'recommended01_url',$file->recommended01_url,50);
      $this->fileInputBox(_RECOMMENDED01_LABEL,'recommended01_label',$file->recommended01_label,50);

      which on the output pages should return a link with 'recommended01_label' as linktext

      in ../components/com_remository/v-classes/remositoryFileInfoHTML.php I have added:
      if ($file->recommended01_url<>'http://') $this->URLDisplay ($file->recommended01_label, $file->recommended01_url);

      my problem now is that I should adjust function URLDisplay in remository.html.php so that the linktext is not _DOWN_CLICK_TO_VISIT but $text.
      echo "\n\t\t\t<dd><a href='$value'>"._DOWN_CLICK_TO_VISIT.'</a></dd>';

      I keep getting errors when trying to do that adjustment. could somebody pls help me with getting the syntax right?
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: remository questions

    Posted 16 years 6 months ago

Time to create page: 0.049 seconds