Page 1 of 1

What database fields does the url refer to?

Posted: Mon 7. Sep 2009, 18:44
by coopersred
Hi,

Could someone please explain the URL format to me. For example, in

mysite.com/index.php?id=177,1883,0,0,1,0

the first number (177) is the article category id, and the second (1883) is the article id - what fields in the database do the last four refer to?
Is there than six fields in the URL?

Thanks

Re: What database fields does the url refer to?

Posted: Mon 7. Sep 2009, 19:05
by flip-flop
Hi,

I think it is the same like this: System variables

Knut

Re: What database fields does the url refer to?

Posted: Mon 7. Sep 2009, 19:21
by coopersred
Perfect - thanks

Re: What database fields does the url refer to?

Posted: Tue 8. Sep 2009, 07:28
by Oliver Georgi
Concentrate only on the first and second - when linking against article and/or category:

Always use the following order:
  1. index.php?alias (no difference if article or category)
  2. index.php?aid=ArticleId
  3. index.php?id=CategoryId
If you try to form own links inside the page only use

Code: Select all

rel_url(
  array('add_getvar1'=>'getvalue1', 'add_getvar2'=>'getvalue2'),
  array('remove_getvar3'),
  'alias' // link against that page or 'aid=articleId' or 'id=categoryId'
);
abs_url();
Then you can be sure that all of your current GET vars are used or removed.

Oliver