hello.
yes

/modules/somemodule/metadata.php
...
'blocks' => array(
        array('template' => 'content_main.tpl', 'block' =>
'admin_content_main_form', 'file' => 'admin_content_main_form.tpl')

... )

/modules/somemodule/out/blocks/admin_content_main_form.tpl

[{$smarty.block.parent}]
    <tr>
      <td class="edittext">
      [{ oxmultilang ident="MY_NEW_FIELD" }]
      </td>
      <td class="edittext">
      <input type="text" class="editinput" size="28"
name="editval[oxcontents__mynewfield]"
value="[{$edit->oxcontents__mynewfield->value}]" [{ $readonly }]>

      </td>
    </tr>

On Wed, Jun 13, 2012 at 6:19 PM, Marat Bedoev <
[email protected]> wrote:

>  Hello!
>
> did somebody successfully override an admin template block in oxid 4.6?
> I’m trying to override the „admin_content_main_form“ block in
> content_main.tpl. Got the block record into the oxtplblocks table, but
> can’t make it work.
> Have already tried lots of different combinations of template names and
> patches like „out/admin/tpl/content_main.tpl“ or just „content_main.tpl“
> and everything „between“.
>
> Thanks a lot and best regards
> Marat // vanilla thunder****
>
> ------------------------------
> Der Inhalt dieser Nachricht ist ausschließlich für den bezeichneten
> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser
> Nachricht oder dessen Vertreter sein sollten, so beachten Sie bitte, dass
> jede Form der Veröffentlichung, Vervielfältigung oder Weitergabe des
> Inhalts dieser Nachricht unzulässig ist. Wir bitten Sie, sich in diesem
> Fall mit dem Absender der Nachricht in Verbindung zu setzen. Diese
> Nachricht wurde durch einen Virenscanner auf Viren und sonstigen
> schädlichen Inhalt geprüft, jedoch wird keinerlei Haftung für Schäden wegen
> Viren übernommen. Auch wird keine Haftung für Schäden übernommen, die aus
> einer Veränderung des Inhalts dieser Nachricht durch Dritte entstehen
> können. Wenn Sie auf diese Nachricht antworten, beachten Sie bitte, dass
> durch innerbetriebliche Regelungen Ihre E-Mail eventuell auch durch einen
> anderen als den bezeichneten Adressaten gelesen werden kann.
> This message is confidential and intended solely for the use of the
> individual or organization to whom it is addressed. Should you not be the
> intended addressee of this message or his or her representative, please
> note that publication, replication of the contents by any means or further
> communication of the content is not permissible. Should you have received
> this message in error, please notify the sender. This message was scanned
> by a virus and content filter but liability for any viruses transmitted
> will not be accepted. Furthermore we are not liable for damages arising
> from alteration of the contents of this message by a third party. If you
> reply to this message please keep in mind that due to innerorganizational
> regulations your message could probably be read by someone else than the
> intended addressee.
>
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
>
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to