XF 2.3 Node/Page title dilemma

Anatoliy

Well-known member
The best title for a page about salmon fishing in Oregon would be "Salmon fishing in Oregon". The same applies for other species. So I did so.
Which creates a keyword stuffing overkill on a home page (node list?). What would be the solution?

The best names for nodes in a Category would be 'Salmon', 'Steelhead' etc, however those would be weak page titles.

Please advise.

Снимок экрана 2024-12-23 в 11.27.05.webp
 
Solution
D
In node_list_forum template:
Less:
<h3 class="node-title">
    <xf:if is="$node.node_id == 2">
        <a href="{{ link('forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">Steelhead</a>
    <xf:elseif is="$node.node_id == 3"/>
        <a href="{{ link('forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">Salmon</a>
    <xf:else/>
        <a href="{{ link('forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">{$node.title}</a>
    </xf:if>
</h3>
It's probably worth thinking about the best keywords though. So the site is about fishing for various species in Oregon, but I find it best to lookout SEO from the user POV. I mean how many people would such for the words steelhead fishing in Oregon as opposed what may be a more common type of search phrase/question "where's the best place to catch steelhead in Oregon?"
oh, SEO is a totally different topic )))

Снимок экрана 2024-12-23 в 14.21.12.webp

and by impressions

Снимок экрана 2024-12-23 в 14.22.39.webp
 
by the way, regarding nodes urls. all urls are like 'spicieName-fishing-in-oregon', except 'steelhead', which I changed to test if I should do the same for the rest or not. But then the war started... (
 
Not really because you mentioned keyword stuffing and Google
I mean if I touch SEO topic, I'll have no time to do something. The topic is huge, important and interesting...
It's like when smoked some dope in the morning. The day passed pleasant, but nothing is done )))

I would use @AndyB meta title addon to get more/better keywords in meta title
Thanks. That's definitely something that any XF forum should have (and better built in the core). I used to pay Andy for add-ons during the better times. Maybe those better times will come back.
 
Code:
<h3 class="block-minorHeader">
    <xf:if is="$title == 'YourWidgeTtitle'">
        <a href="your URL" rel="nofollow">{$title}</a>
    <xf:elseif is="$title == 'AnotherWidgetTitle'" />
        <a href="another URL" rel="nofollow">{$title}</a>
    <xf:else/>
        <a href="{$link}" rel="nofollow">{$title}</a>
    </xf:if>
</h3>

hey @Old Nick do you know what is a variable name for nodeID?
Code:
$node.node_id
?
and what template? I'm failed to figure it out, too many of them has 'node' in a name.
 
Last edited:
In node_list_forum template:
Less:
<h3 class="node-title">
    <xf:if is="$node.node_id == 2">
        <a href="{{ link('forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">Steelhead</a>
    <xf:elseif is="$node.node_id == 3"/>
        <a href="{{ link('forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">Salmon</a>
    <xf:else/>
        <a href="{{ link('forums', $node) }}" data-xf-init="{{ $descriptionDisplay == 'tooltip' ? 'element-tooltip' : '' }}" data-shortcut="node-description">{$node.title}</a>
    </xf:if>
</h3>
 
Last edited by a moderator:
Solution
But I'm not sure that this is the solution, as it stands, it will change the title for users AND search engines... It would be like changing the title in the ACP classically... it would be necessary to integrate conditional for visitors (since we cannot target search engines alone) and members I suppose.
 
Last edited by a moderator:
Back
Top Bottom