Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Is adding specific content automatically possible?
Avatar
Tattoofreak #1
Member since May 2018 · 19 posts
Group memberships: Members
Show profile · Link to this post
Subject: Is adding specific content automatically possible?
I want all my wiki pages not being listed by google search engine.
By default I have to add the following line on all my pages manually.

{{htmlmetatags>metatag-robots=()}}

Is there a way I can set this line being added automatically whenever I create a new wiki page?
Avatar
pop #2
Member since Nov 2016 · 179 posts
Group memberships: Members
Show profile · Link to this post
I think a page template (also known as namespace template) might be useful:
https://www.dokuwiki.org/namespace_templates

Note that it's not the same as an installable template which lets you tailor the look of your wiki.
Avatar
Michaelsy #3
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #1
Quote by Tattoofreak:
I want all my wiki pages not being listed by google search engine.

Usually, this is done via a robots.txt file, with the following content:

User-agent: *
Disallow: /
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited on 2019-02-21, 17:22 by Michaelsy.
Avatar
Tattoofreak #4
Member since May 2018 · 19 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Quote by pop:
I think a page template (also known as namespace template) might be useful:
https://www.dokuwiki.org/namespace_templates

Note that it's not the same as an installable template which lets you tailor the look of your wiki.


Worked like a charm. Thank you!
Avatar
Tattoofreak #5
Member since May 2018 · 19 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #3
Quote by Michaelsy:
Quote by Tattoofreak:
I want all my wiki pages not being listed by google search engine.

Usually, this is done via a robots.txt file, with the following content:

User-agent: *
Disallow: /

Thank you.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-09-23, 16:15:43 (UTC +02:00)