<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#0070C0;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US">Note that the &#8220;sections&#8221; don&#8217;t actually matter. They&#8217;re just a matter of comments in the framework template file. The configuration
 variables can come in any order. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US">Also note you should use
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">$homepage_use_corpus_categories = true;<br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US">not<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal">$homepage_use_corpus_categories = 'true' ;<br>
<br>
<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US">because it&#8217;s a Boolean not a string. (It will
<i>work</i> as-is&#8230; since any string with content counts as a true value&#8230; until you try to switch it off and find that the string &#8220;false&#8221; casts to
<b>true</b>, not <b>false</b>!)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#0070C0;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> cwb-bounces@sslmit.unibo.it &lt;cwb-bounces@sslmit.unibo.it&gt;
<b>On Behalf Of </b>Graham Ranger -- UAPV<br>
<b>Sent:</b> 17 March 2022 15:25<br>
<b>To:</b> Jörg Knappen &lt;j.knappen@mx.uni-saarland.de&gt;; Open source development of the Corpus WorkBench &lt;cwb@sslmit.unibo.it&gt;<br>
<b>Subject:</b> Re: [CWB] cqpweb main page config<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">OK, my apologies, it's all in the manual, more or less.<br>
For reference: <br>
add $homepage_use_corpus_categories = 'true' ;<br>
to the misc section in config.inc.php and that's it.<br>
Best,<br>
Graham.<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 17/03/2022 ā 15:38, Graham Ranger -- UAPV a écrit&nbsp;:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello again,<br>
I thought the issue was resolved, but I'm afraid I need a little more assistance...<br>
As things stand, I cannot display the categories without modifying a config file. The message I get is:<br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Corpus categories are used to organise links to corpora on CQPweb's home page.
<br>
&nbsp;<br>
This behaviour can be turned on or off using the setting <code><span style="font-size:10.0pt">$homepage_use_corpus_categories</span></code> in your configuration file.
<br>
&nbsp;<br>
Currently, it is turned <strong><span style="font-family:&quot;Calibri&quot;,sans-serif">off</span></strong>.
<o:p></o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt">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?<br>
Many thanks in advance for any help.<br>
Best,<br>
Graham.<br>
<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 17/03/2022 ā 15:00, Jörg Knappen a écrit&nbsp;:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p>It is in the Admin Panel under &quot;Manage Corpus Categories&quot;<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>You can specify a &quot;sort order&quot; (the lower this number, the higher the ranking) for the different corpus categories.<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p>Jörg Knappen<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
<p id="reply-intro">Am 2022-03-17 14:47, schrieb Graham Ranger -- UAPV:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm">
<div id="replybody1">
<div>
<p class="MsoNormal">Hello to all,<br>
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.<br>
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.<br>
Many thanks in advance for any pointers.<br>
Best,<br>
Graham.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;data=04%7C01%7Chardiea%40live.lancs.ac.uk%7Cb2dbf2fe69ea45ceaf2208da082a5669%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637831275605068114%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=1vlG3HJcnzrKqHF0mIERJEQAiBEWi7Tjy1hwT%2BwnZdQ%3D&amp;reserved=0" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></span></p>
</div>
</blockquote>
<p><o:p>&nbsp;</o:p></p>
</blockquote>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>CWB mailing list<o:p></o:p></pre>
<pre><a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><o:p></o:p></pre>
<pre><a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;data=04%7C01%7Chardiea%40live.lancs.ac.uk%7Cb2dbf2fe69ea45ceaf2208da082a5669%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637831275605068114%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=1vlG3HJcnzrKqHF0mIERJEQAiBEWi7Tjy1hwT%2BwnZdQ%3D&amp;reserved=0">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>