XF 2.3 <xf:editor Page COntainer

Liam C.

Member
I have started to use a custom page customer and it's amazing! Very useful, however I realise there are functions that I cannot use.

One of the main ones is <xf:editor.

It seems that it, almost, completely disappears during view.

PAGE_CONTAINER:
1745265936660.webp


CUSTOM_PAGE_CONTAINER:

1745266115782.webp

What would I add to my custom_page_container? Is there any templates I need to include?
 
Solution
This is what I ended up with:

Code:
<head>
    <link rel="manifest" href="{{ base_url('webmanifest.php') }}">
    <xf:macro template="helper_js_global" name="head" arg-app="public" />
</head>

<div class="p-pageWrapper" id="top">
<xf:macro template="helper_js_global" name="body" arg-app="public" arg-jsState="{$jsState}" />

</div>
You'll still need the basic structure for most things to work unaffected. I would recommend copying the PAGE_CONTAINER template in its entirety (or at least from the start until </html>), and modifying within or around the page wrapper (<div class="p-pageWrapper id="top">) to start. You can still customize the other parts as needed, but there are essential bits (like <xf:macro id="helper_js_global::body" arg-app="public" />) which are practically required.
 
That's what I was concerned about.. yeah I started doing that! Seems multiple elements is needed for it.

Thank you though! I'll send back the results for anyone else who needs it too.
 
This is what I ended up with:

Code:
<head>
    <link rel="manifest" href="{{ base_url('webmanifest.php') }}">
    <xf:macro template="helper_js_global" name="head" arg-app="public" />
</head>

<div class="p-pageWrapper" id="top">
<xf:macro template="helper_js_global" name="body" arg-app="public" arg-jsState="{$jsState}" />

</div>
 
Solution
Back
Top Bottom