mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

How to only display top sub-directory within CM module
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=1&t=58
Page 1 of 1

Author:  Guest [ 15 Sep 2003, 00:28 ]
Post subject:  How to only display top sub-directory within CM module

My cm modules is 0.6.0b10,PHProject is 4.0.4
Linux System is RedHat9.0(kernel 2.4.20-8), GD is 1.8,
DBMS is mysql and PHP is 4.2.2
As soon as enter cm modules,it will list all sub
directories in "root" directory and cann't distinguish their
revalution.For example,my directories is:
root-->a-->b-->c
|
|
--->d-->e-->f
|
|
-->g

The cm will display them as follow form:

Start->
a
b
c
d
e
f
g

So, I feel it is inconvenience.I want it only display
top sub-directories as tree-list form, and when I need, It will
expanded by click immediately.
How to do it? Thanks very much.

Author:  Mark Coudriet [ 15 Sep 2003, 07:22 ]
Post subject:  Show only root

Go into cm_config_inc.php

Change these values to zero as indicated below:
Code:
    // Max number of documents to list in homepage.
    $cm_home_maxleafs = 0;
    // Min number of documents to list in homepage.
    $cm_home_minleafs = 0;


Author:  mvaldez [ 06 Oct 2003, 02:37 ]
Post subject:  Only for 0.6.0b9 and higher...

Hi,

(Thanks Mark for answering this question).

Please note that this will only work for version 0.6.0b9 and higher. Before that, the cm_home_maxleafs and cm_home_minleafs support was broken.


Regards,

Mario A. Valdez-Ramirez.

Author:  JABevan [ 08 Oct 2003, 13:28 ]
Post subject: 

Curious, this fix didn't work for me. My values were already set to 0 and I'm still seeing the subs and sub subs, etc.

I'm using version 0.6.0b10 of CM.

JAB*

Author:  JABevan [ 08 Oct 2003, 13:32 ]
Post subject: 

Sorry, #SHORTINDEX# as opposed to #INDEX# took care of it. Works fine.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/