Yet another portal type question - need some help

ArtG

Active member
So I'm trying to come up with a site structure similar to Reef2Reef. They have a Home button and their default page seems to be a Node page with widgets.

In 2.3.2 self-hosted, how can I accomplish this? Or do I still need an add-on?

Thanks
 
So I create a Node as a page. I can take that URL and make it the homepage URL in the ACP.

My issue is that I can't seem to get widgets to show up in that page.
 
Creating a node page creates a mirrored template, as _page_node.57 you can add widgets directly in the template:
<xf:widget key="forum_overview_members_online" />

Just change the widget key with the one you set for the widget.
 
This is mine, just for an example:
HTML:
<xf:head option="meta_title">
    <meta name="description" content="Chaque graine, chaque membre compte. Rejoignez nous !">
    <meta property="og:description" content="Chaque graine, chaque membre compte. Rejoignez nous !">
    <meta property="twitter:description" content="Chaque graine, chaque membre compte. Rejoignez nous !">
    <meta name="keywords" content="forum, communauté, permaculture, écologie, agriculture">
    <meta name="author" content="Perma Foro">
</xf:head>

<xf:widget key="welcome_Home" />

<div class="block blockMinorMargin">
    <div class="block-container">
        <div class="block-body rowGradientGray">
            <div class="block-row block-row--separated">
                <div class="contentRow">
                    <span class="contentRow-figure contentRow-figure--text contentRow-figure--fixedSmall rowLarge"><xf:button class="button button--primary button--primary" href="/forums">Voir plus...</xf:button></span>
                    <div class="contentRow-main">
                        <h2 class="contentRow-header headerDimmed">
                            En direct des forums
                        </h2>
                        <div class="contentRow-minor">
                            Consultez les dernières discussions tendances de la communauté
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<xf:widget key="trendingThreadHome" />

<div class="block blockMinorMargin">
    <div class="block-container">
        <div class="block-body rowGradientGray">
            <div class="block-row block-row--separated">
                <div class="contentRow">
                    <span class="contentRow-figure contentRow-figure--text contentRow-figure--fixedSmall rowLarge"><xf:button class="button button--primary button--primary" href="/documents">Voir plus...</xf:button></span>
                    <div class="contentRow-main">
                        <h2 class="contentRow-header headerDimmed">
                            La doc PermaForo
                        </h2>
                        <div class="contentRow-minor">
                            Parmi plus de 450 documents, ceux-ci sont populaires en ce moment...
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<xf:widget key="trendingResourceHome" />

<div class="block blockMinorMargin">
    <div class="block-container">
        <div class="block-body rowGradientGray">
            <div class="block-row block-row--separated">
                <div class="contentRow">
                    <span class="contentRow-figure contentRow-figure--text contentRow-figure--fixedSmall rowLarge"><xf:button class="button button--primary" href="/galerie">Voir plus...</xf:button></span>
                    <div class="contentRow-main">
                        <h2 class="contentRow-header headerDimmed">
                            Notre Galerie photographique
                        </h2>
                        <div class="contentRow-minor">
                            La photo de la semaine, plébiscitée par les membres de la communauté
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<xf:widget key="trendingMediaHome" />

<xf:sidenav>
    <xf:widget key="new_threads_sidebar_home" />
    <xf:widget key="xfrm_forum_overview_new_resources" />
    <xf:widget key="adsUpgrade" />
</xf:sidenav>
 
Thanks. Then I set the homepage URL to what?
It really doesn't matter if it is to be the home page because you just name the page URL (e.g. name-of-your-page) , then set that in index page route preceded by pages/ (no opening slash) :

Screenshot 2024-08-01 at 14.26.37.webp

And you won't see the page name, just the URL root:

yoursite.com
 
Back
Top Bottom