On Mon, Apr 02, 2001 at 01:54:07PM -0400, Darrell Michaud wrote:
> Hello,
> 
> I'm happily running Midgard 1.4.1 with PHP4 and nadmin M3a.
> 
> As an old-time midgard user from 1.2.5, I'm used to referencing my 
> articles by their article number with mgd_get_article(#), as this was 
> the method used by the "Virtual Midgard Using Company" example site. You 
> can probably see where this is leading...
> 
> Stupid question 1. (on the serious side)
> 
> What is the preferred way of referencing articles within nadmin, since I 
> can't find any field that tells you the article's number within the 
> "news and articles" section? Do I need to use mgd_get_article_by_name 
> along with mgd_get_topic_by_name instead? Is there a completely new and 
> better way to reference articles? Is there an example site available 
> that demonstrates nadmin's features?
Use mgd_get_xxx_by_name to be portable because IDs will likely to be
different across different servers if you are planning to use relication.
Also following technique proven to be good:
1. Get ID of your root topic via mgd_get_topic_by_name("ROOT TOPIC")
2. Use this ID to get articles via their names 

3. You can safely reference articles via ID as far as all links are
automatically generated. But using names instead of IDs also ease bookmarking for
users (IDs most probably will be different on development/main servers).

You also could use GUIDs (globally unique IDs) which are the same across replicas.
Each object has method guid() to query its GUID as a string, and there is also
mgd_get_object(GUID) which returns object by GUID.

> Stupid question 3. (on the lighter side)
> 
> Nadmin and asgard have great new functionality and a better user 
> interface, but I liked the imaginative and shield logo and all of the 
> snowy building / fire pictures. Their demise to cleaner but boring 
> interfaces brings me sadness. Are there any plans to revive the original 
> admin site pictures in newer works? I will miss them!
There are plans to create GtkAsgard themable as you wish :-)

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project    | ALT  Linux  Team | Minsk Linux Users Group
 www.midgard-project.org | www.altlinux.ru  |    www.minsk-lug.net 
-- Imitation is the sincerest form of plagarism.

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

Reply via email to