XF 2.1 Can I put the custom thread fields on top of editor textbox?

gogo

Well-known member
When creating a thread, currently it's like this:

1587221410388.webp

Can I move them above the content editor?

1587221642125.webp
 
You would have to edit the forum_post_thread template.

Thanks for your hint. I'm able to change it following your instruction.

Code:
                rowtype="fullWidth noLabel"
                autofocus="autofocus"
                maxlength="{{ max_length('XF:Thread', 'title') }}" />
            
                <xf:if contentcheck="true">
                    <hr class="formRowSep" />
                    <xf:contentcheck>
                        <xf:macro template="custom_fields_macros" name="custom_fields_edit"
                            arg-type="threads"
                            arg-set="{$thread.custom_fields}"
                            arg-editMode="{{ $thread.getFieldEditMode() }}"
                            arg-onlyInclude="{$forum.field_cache}"
                            arg-requiredOnly="{{ $inlineMode ? true : false }}" />
                    </xf:contentcheck>
                </xf:if>
            
            <div class="js-inlineNewPostFields">
                <xf:editorrow name="message"
                    value="{{ $post.message ?: $forum.draft_thread.message }}"
                    attachments="{{ $attachmentData ? $attachmentData.attachments : [] }}"
                    rowtype="fullWidth noLabel mergePrev"
                    label="{{ phrase('message') }}" />

Changed interface:

1587222822770.webp

It's exactly what I want!

1) Will Xenforo update in the future revert such change? Or will this change mess up the future update?

2) Can I restrict this arrangement to certain nodes (per-forum) only?
 
No, the changes won't revert.

You should be able to use a conditional statement with the node IDs to apply it to certain forums only.
 
Top Bottom