News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

zwei neue Felder zum beschreiben

Started by knister, 10.01.2016 21:22:35

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

knister

Hallo Leute



ich möchte für mein jdownloads zwei zusätzliche felder einpflegen.

es sollte alles aus dem frontend bedient werden können.

hab da mal einen zusätzlichen code eingeführt, wie auch die Sprachdatei ergäntz:


edit.php

            <?php endif; ?>
            <?php if ($rules->form_price):?>
                <div class="formelm">
                    <?php echo $this->form->getLabel('price'); ?>
                    <?php echo $this->form->getInput('price'); ?>
                </div>
            <?php endif; ?>     
            <?php if ($rules->form_website):?>
                <div class="formelm">
                    <?php echo $this->form->getLabel('url_home'); ?>
                    <?php echo $this->form->getInput('url_home'); ?>
                </div>
            <?php endif; ?>
<?php if ($rules->form_brand):?>
                <div class="formelm">
                    <?php echo $this->form->getLabel('brand'); ?>
                    <?php echo $this->form->getInput('brand'); ?>
</div>
            <?php endif; ?>
<?php if ($rules->form_typ):?>
                <div class="formelm">
                    <?php echo $this->form->getLabel('typ'); ?>
                    <?php echo $this->form->getInput('typ'); ?>
</div>
            <?php endif; ?>
            <?php if ($rules->form_author_name):?>
                <div class="formelm">
                    <?php echo $this->form->getLabel('author'); ?>
                    <?php echo $this->form->getInput('author'); ?>
                </div>
            <?php endif; ?>


nun komme ich nicht mehr weiter, wie ich das ganze angezeigt kriege.

kann mir da jemand weiterhelfen?

wäre echt toll!

Danke

[gelöscht durch Administrator]
  •  

ColinM

Hi
As I do not read German I have used Google Translate to try to understand what you are requesting, so please excuse if I have misunderstood.

I think you are asking if there could be two extra fields in the Front End Upload.  Assuming that is correct then the simplest way is to use the  Custom fields.  Adding code to edit.php is not the only php and xml that would be needed.  Using the Custom fields will automatically ask the questions in the Additional Info tab on the Upload form.  You can also make the questions mandatory

Colin

[gelöscht durch Administrator]
Colin M
  •