Re: Display a Category as the Content on the Home Page

jlinowes <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Organization Xaraya
Message-ID <[email protected]>
The best documentation and examples are the specific templates you are 
actually using.

To know what templates you are using, ensure that "Show template 
filenames in HTML comments" is checked in the Admin > Themes > Config
and then View Source from your browser when viewing any page.

In this case, you were calling the url:
(provided by the user-view.php function in your url call 
?module=articles&type=user&func=view&ptid=15 (or whatever)
(which invokes the function modules/articles/xaruser/view.php)

This, in turn, uses the template modules/articles/xartemplates/user-view.xd
(or a derived one, such as user-view-products.xt)

At the top of that file is the <xar:categories-navigation> tag.
It uses several variables available to the template, namely $ptid, 
$catid, etc.
Since your home page does not have these variables, you need to 
substitute real values yourself.

Once you understand this underlying architecture, a lot of things make 
more sense.

good luck,

linoj



wwalkerbout wrote:
> Do you know if there is any other documentation available on other 
> variations of calls like this one with examples. I would certainly love to
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.