$xoopsOption['pagetype']

Date 2006-05-21 04:10:00 | Category: XOOPS

in englishin japanese
Do you know $xoopsOption['pagetype'] ?

I think this is a coccyx from Nuke.
In XOOPS 2.0.x, root controllers uses it and include/common.php includes global language/(pagetype).php
There are no utilization in XOOPS 2.0.x

In XoopsCube, it will be eliminated.

But XOOPS 2.2 gives the place of honor to the variable in selecting theme.

/modules/(module)/index.php
--> theme.html
$xoopsOption['pagetype'] is null

/modules/(module)/admin/index.php
--> themeadmin.html
$xoopsOption['pagetype'] is set in kernel/module.php automatically

If you want to make module of fully front controller, set $xoopsOption['pagetype']='admin' , manually.

This is a tip for creating multi-core module.





You can read more news at PEAK XOOPS.
http://xoops.peak.ne.jp

The URL for this story is:
http://xoops.peak.ne.jp/md/news/index.php?page=article&storyid=108