Thank you. I done it your way.Display the widget in position "Forum list: Above nodes"?
Anyone? I want to have a custom meta description for the page but I don't want the description page at the top. How do I do that?How do you change the meta description for this page?
I tried putting it in the PAGE CONTAINER template with a conditional but that failed. Maybe I did it wrong.Anyone? I want to have a custom meta description for the page but I don't want the description page at the top. How do I do that?
This is what I'm still trying to figure out.When I post the url that links to the home portal page it will only show the word Home and the url in the snippet, only if I link it to the forum it will show the board title and board meta description.
Any way to fix this?
I tried putting it in the PAGE CONTAINER template with a conditional but that failed. Maybe I did it wrong.
<xf:if is="$xf.reply.containerKey == 'node-XX'">
<Your head tags for node-XX>
</xf:if>
You need to create a conditional in PAGE_CONTAINER to split the two.When I post the url that links to the home portal page it will only show the word Home and the url in the snippet, only if I link it to the forum it will show the board title and board meta description.
<xf:set var="$siteName" value="{$xf.options.boardTitle}" />
<xf:set var="$h1"><xf:h1 fallback="{$siteName}" /></xf:set>
<xf:set var="$description"><xf:description /></xf:set>
<xf:if is="$xf.reply.containerKey == 'node-XX'">
<xf:comment>Values set only for node-XX (or page XYZ)</xf:comment>
<xf:set var="$siteName" value="YourSite.Com?" />
<xf:set var="$h1">My custom site's portal</xf:set>
<xf:set var="$description">Custom description text</xf:set>
<xf:else />
<xf:comment>Original PAGE_CONTAINER values</xf:comment>
<xf:set var="$siteName" value="{$xf.options.boardTitle}" />
<xf:set var="$h1"><xf:h1 fallback="{$siteName}" /></xf:set>
<xf:set var="$description"><xf:description /></xf:set>
</xf:if>
You can get your node-(XX) by going to ACP->Forums->Nodes then scroll down to the page you made and hover over it or right-click it and view properties. I have a Page named "Clock". If I hover over it, I see clock.46. So, to show code specifically to that page, putting 46 where those XXs are will work.Code:<xf:if is="$xf.reply.containerKey == 'node-XX'"> <Your head tags for node-XX> <xf:else />
<xf:if is="$xf.reply.containerKey == 'node-XX'">
<Your head tags for node-XX>
</xf:if>
Oversight on my part. I copied it from an if/else at like 2 a.m., without proofing; but I'm glad you caught it and understood.Got it to work but the code needs to be:
Code:<xf:if is="$xf.reply.containerKey == 'node-XX'"> <Your head tags for node-XX> </xf:if>
Thank you!!!
What's your page node setup look like in your ACP?
.structItem-title {
font-size: 18px;
font-weight: 700;
}
Following the guide to the letter, when I hit 'Home' I end up with:
Oops! We ran into some problems.
The requested page could not be found.
Something as simple as adding a slash in front of the index page route can cause that kind of issue.
We use essential cookies to make this site work, and optional cookies to enhance your experience.