When using xtemplate, and setting "xtemplate_mission" to a value (under "Message on front page" on /admin/system/themes/xtemplate), the mission does not appear if the /admin/system "Default front page" is set to a url alias.
So, if the front page should be set to "node/view/8" for example, and there is a url alias for that node (say: "index.html"), then the mission will not show up.
The culprit code is in xtemplate.theme
// only parse the mission block if we are on the frontpage ...
if ($_GET["q"] == variable_get("site_frontpage", "node") && ($mission = variable_get("xtemplate_mission", "edit mission"))) {
$xtemplate->template->assign("mission", $mission);
$xtemplate->template->parse("header.mission");
}
_GET["q"] does not contain the alias ("index.html"), but the original node ("node/view/8")
Of course, the workaround is easy (put the node and not the alias as the front page)
However, it is best to be consistent across the entire system, and treat the alias exactly as the original node.
Comments
Comment #1
jonbob commentedFolded into http://drupal.org/node/view/9477.
Comment #2
(not verified) commentedThis was not fixed by the patch to the other issue. What needs to happen here is:
variable_get("site_frontpage", "node") needs to become drupal_get_normal_path(variable_get("site_frontpage", "node"))
I'm not on a workstation where I can post a real patch at the moment, but this is a very simple change, so I'm changing the status.
Comment #3
killes@www.drop.org commentedNot a patch.
Comment #4
chx commentedxtemplate is not in the core now.
Comment #5
kbahey commentedActually this issue is the same as this one http://drupal.org/node/17291
It is not specific to xtemplate, but a general problem.
Marking this one as duplicate.