Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2238

Extension Writers Discussion • Re: Howto? Add a panel to the post editor page

$
0
0
Thanks. Now I see how this all works!

posting_layout.html includes <!-- INCLUDE posting_editor.html -->

posting_editor.html then does <!-- EVENT posting_editor_add_panel_tab -->

posting_editor.html then does <!-- EVENT posting_layout_include_panel_body -->

So I need my own posting_editor_add_panel_tab.html and posting_layout_include_panel_body.html.


My posting_editor_add_panel_tab.html is working.

Code:

<!-- IF S_UPLOADER_PANEL --><li id="uploader-panel-tab" class="tab">    <a href="#tabs" data-subpanel="uploader-panel" role="tab" aria-controls="uploader-panel" >{L_UPLOADER}</a></li><!-- ENDIF -->
That shows the tab! Woot.

However my posting_layout_include_panel_body.html is not happening; none of my HTML gets loaded.

Code:

<!-- IF S_UPLOADER_PANEL --><div class="panel bg3" id="uploader-panel">    <div class="inner">        <div class="content">            <fieldset class="fields2">                <legend>{L_UPLOADER}</legend>                <dl>                    <dt><label for="uploader">{L_UPLOADER}</label></dt>                    <dd><input type="file" name="uploader" id="uploader" /></dd>                </dl>            </fieldset>        </div>    </div></div><!-- ENDIF -->
What am I missing?

Statistics: Posted by tig_ — Thu Jan 09, 2025 9:47 pm



Viewing all articles
Browse latest Browse all 2238

Trending Articles