[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Aaron is going to kill me.
Maybe we need to hash this out on IRC but here's where your reasoning in
the last email was wrong:
The last number in the o= string does not translate to the article ID or
anything like that. Every container, application, article, user, etc.
has it's own UNIQUE entry in KBObjects thus giving it a globally unique ID
among all objects. So, if 1.4.8.23 is an article (type 6) that maybe
points to Article ID 7 or sumthin... thats fine. You really don't hafta
care what the article ID is. Because that 23 on the end there will ALWAYS
be the ObjectID used to access that article, and nothing else will have an
objectID of 23. Understand what I'm saying?
So... All p= does right now is give the unique ID of the record in the
extra info table (such as articles) via the URL. I don't need it
anymore... but if you wanna keep using it I'll leave it in there.
Yes, you can still distinguish between docs and articles, etc simply by
type=.
Does Dean still need some kind of ID or anything? The last number on the
o= string will be his unique number... the only thin he needs to filter on
is type=. He only wants type=6 and type=7. Beyond that he just wants to
remove entries that duplicate the last number in o=. Thoughts?
Also - in reference to alist.php3, the URL for that may change. Remember
how we talked about the s=<something> to denote the two different search
types? Well... I was thinking :). Howabout making that action=. Then I
could list in render.php3 a list of possible actions for each object type.
For example, an object type of 3 (KB Container) would have the following
actions: SimpleSearch, AdvancedSearch, ArticleList, AdminView, etc.
So... the alist.php3?... URL would become
/kb/doc/render.php3?o=1.4.8&p=4&type=3&action=ArticleList
(assuming we keep p=)
Thoughts on that?
You said it'd be good to know in your Perl scripts which search form was
being used, so you could just check action= for either SimpleSearch or
AdvancedSearch. Gimme your feedback on that idea.
Jason
On Wed, Aug 11, 1999 at 11:19:04PM -0700, Aaron Turner wrote:
>
> After coding those changes, I realized that I don't need to remove the
> last number from o. Not sure what I was thinking. Life is good again.
>
> --
> Aaron Turner, Core Developer http://vodka.linuxkb.org/~aturner/
> Linux Knowledge Base Organization http://linuxkb.org/
> Because world domination requires quality open documentation.