Lack of interest Formal interface for search engine index control

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Kirby

Well-known member
Various entities (XF:AbstractNode, XF:User) implement method isSearchEngineIndexable.

However, there is no formal interface for that and and at least to me it seems to be nice to have one.

If such an interface existed, it would be possible to set a page var mainContentEntity or smth. like that and have noindexind handled automatically instead of having to repeat code like code

Code:
<xf:if is="!$thread.isSearchEngineIndexable()">
    <xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>
</xf:if>

<xf:if is="!$user.isSearchEngineIndexable()">
    <xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>
</xf:if>

<xf:if is="!$forum.isSearchEngineIndexable()">
    <xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>
</xf:if>

<xf:if is="!$category.isSearchEngineIndexable()">
    <xf:head option="metaNoindex"><meta name="robots" content="noindex" /></xf:head>
</xf:if>
 
Upvote 2
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom