[CWB] cqpweb main page config
Hardie, Andrew
a.hardie at lancaster.ac.uk
Fri Mar 18 01:37:30 CET 2022
Note that the "sections" don't actually matter. They're just a matter of comments in the framework template file. The configuration variables can come in any order.
Also note you should use
$homepage_use_corpus_categories = true;
not
$homepage_use_corpus_categories = 'true' ;
because it's a Boolean not a string. (It will work as-is... since any string with content counts as a true value... until you try to switch it off and find that the string "false" casts to true, not false!)
best
Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Graham Ranger -- UAPV
Sent: 17 March 2022 15:25
To: Jörg Knappen <j.knappen at mx.uni-saarland.de>; Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: Re: [CWB] cqpweb main page config
OK, my apologies, it's all in the manual, more or less.
For reference:
add $homepage_use_corpus_categories = 'true' ;
to the misc section in config.inc.php and that's it.
Best,
Graham.
Le 17/03/2022 à 15:38, Graham Ranger -- UAPV a écrit :
Hello again,
I thought the issue was resolved, but I'm afraid I need a little more assistance...
As things stand, I cannot display the categories without modifying a config file. The message I get is:
Corpus categories are used to organise links to corpora on CQPweb's home page.
This behaviour can be turned on or off using the setting $homepage_use_corpus_categories in your configuration file.
Currently, it is turned off.
My config file is not config.php but config.inc.php, because I'm using version 3.4. That is not necessarily a problem, but the setting $homepage_use_corpus_categories is not in the config file. Should I just add it, and, if so, could anybody tell me where and with what syntax?
Many thanks in advance for any help.
Best,
Graham.
Le 17/03/2022 à 15:00, Jörg Knappen a écrit :
It is in the Admin Panel under "Manage Corpus Categories"
You can specify a "sort order" (the lower this number, the higher the ranking) for the different corpus categories.
Jörg Knappen
Am 2022-03-17 14:47, schrieb Graham Ranger -- UAPV:
Hello to all,
Apologies to all, but I'm wondering if there is an easy way to configure the way corpora are arranged on the cqpweb main page.
I'd like to have sections by language, parallel / monolingual, etc. along the lines of the organisation on cqpweb.lancs.ac.uk but I cannot see a simple path to achieve this.
Many thanks in advance for any pointers.
Best,
Graham.
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>
http://liste.sslmit.unibo.it/mailman/listinfo/cwb<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=04%7C01%7Chardiea%40live.lancs.ac.uk%7Cb2dbf2fe69ea45ceaf2208da082a5669%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637831275605068114%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=1vlG3HJcnzrKqHF0mIERJEQAiBEWi7Tjy1hwT%2BwnZdQ%3D&reserved=0>
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>
http://liste.sslmit.unibo.it/mailman/listinfo/cwb<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=04%7C01%7Chardiea%40live.lancs.ac.uk%7Cb2dbf2fe69ea45ceaf2208da082a5669%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637831275605068114%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=1vlG3HJcnzrKqHF0mIERJEQAiBEWi7Tjy1hwT%2BwnZdQ%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20220318/bed3996f/attachment-0001.html>
More information about the CWB
mailing list