On Fri, Mar 02, 2001 at 11:25:46AM +0100, Emiliano mentioned:
> "John P . Looney" wrote:
> > On Thu, Mar 01, 2001 at 11:59:46PM +0100, Emiliano mentioned:
> > > > BTW,  mgd_list_topics really displays sub-topics and not topics. I could not
> > > > find a function which would display all topics. Is there such a thing?
> > > mgd_list_topics(0);
> >  I tried this out - it seems to list all the topics on the system - even
> > in other sitegroups. Is that supposed to happen ?
> Absolutely not, unless you're logged in as root.

 Interesting;

mysql> select id,up,name,sitegroup from topic;
+----+----+------------------------+-----------+
| id | up | name                   | sitegroup |
+----+----+------------------------+-----------+
|  1 |  0 | Documentation          |         0 |
|  2 |  1 | Content Administration |         0 |
|  3 |  1 | Host Administration    |         0 |
|  4 |  1 | Layout Administration  |         0 |
|  5 |  1 | Group Administration   |         0 |
|  6 |  1 | Admin Site             |         0 |
|  7 |  0 | The Example Site       |         0 |
|  8 |  7 | Content                |         0 |
|  9 |  7 | News Releases          |         0 |
| 10 |  9 | Site News              |         0 |
| 11 |  9 | Corporate News         |         0 |
| 12 |  7 | Products               |         0 |
| 13 |  7 | Events                 |         0 |
| 15 |  0 | test                   |         0 |
| 16 |  0 | News                   |         1 |
| 17 | 16 | Breaking               |         1 |
| 18 | 16 | Local                  |         1 |
| 19 |  0 | Guest submissions      |         1 |
| 20 | 19 | News                   |         1 |
| 21 | 19 | Tips                   |         1 |
| 22 | 19 | Announcements          |         1 |
| 23 |  0 | New Users              |         1 |
| 24 |  0 | Downloads              |         1 |
| 25 |  0 | Community              |         1 |
| 26 |  0 | Vendors                |         1 |
+----+----+------------------------+-----------+

 I'm doing the mgd_list_topics() in sitegroup 1 - just the top level ones.
As you can see from:

    http://midgard.linux.ie/

 the sidebar is listing all of them (the top one is static). Wierd.

Kate

-- 
 When I say 'free', I mean 'free': free from bond, of chain or command: 
to go where you will, even to Mordor, Saruman, if you desire. " 
    -- Gandalf, paraphrasing the choice between Free and Non-free software

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to