Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Override searchpage.txt
Is it possible?
Avatar
hArpanet #1
Member since Feb 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Subject: Override searchpage.txt
I'd like to change the text (page) that is displayed when a search is performed. The text currently displayed is from: \inc\lang\en\searchpage.txt

Is there an override option available for these 'core' files (such as .local overrides for config files noted at https://www.dokuwiki.org/config#configuration_files) or do I have to edit the original searchpage.txt?

I have tried placing searchpage.local.txt at \inc\lang\en to no avail.

I have tried placing searchpage.txt and searchpage.local.txt at \lib\tpl\[my_template]\lang\en to no avail.

I have tried placing searchpage.txt and searchpage.local.txt at \lib\tpl\[my_template]\inc\lang\en to no avail.

Now I've run out of options!

Ta,
Dave
Avatar
ach (Administrator) #2
Member since May 2006 · 1926 posts · Location: Folkestone, UK
Group memberships: Administrators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by hArpanet:
I'd like to change the text (page) that is displayed when a search is performed. The text currently displayed is from: \inc\lang\en\searchpage.txt

Is there an override option available for these 'core' files (such as .local overrides for config files noted at https://www.dokuwiki.org/config#configuration_files) or do I have to edit the original searchpage.txt?

Yes, there is such an option. See https://www.dokuwiki.org/devel%3alocalization#core_localiz…
Avatar
hArpanet #3
Member since Feb 2013 · 17 posts
Group memberships: Members
Show profile · Link to this post
Thanks Ach, that's exactly what I was looking for.

Unfortunately there's a bug in DokuWiki that prevents the override from working. I've submitted a pull request to fix it, so the overrides will work as documented.
Avatar
og #4
Member since May 2006 · 436 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Don't know if it was for any interesset after such long time, but the current way to do this kind of updatesavvy override is to place the corefiles into conf/lang/<LANG>/ with the same filename but different (empty) content.
Thats all, and works perfectly :-)
Oli...
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-08-21, 18:01:44 (UTC +02:00)