Loving the new dh setup, but scratching my head a little on how to get custom titles on some html-only modules... I was able to "hack" dynamic titles using the $file variable, like so:
Code:// WW2_Archives
elseif ($name == 'WW2_Archives') {
global $file;
if($file == 'index') {
$newpagetitle = 'World War II Archives - WW2 Photos - WW2 Pictures - Wartime Photography - '.$sitename;
}
if($file == 'gallery1') {
$newpagetitle = 'WW2 Photo Gallery I - World War II - Black and White Photographs from The US National Archives - '.$sitename;
}
if($file == 'gallery2') {
$newpagetitle = 'WW2 Photo Gallery II - World War II - Combat Photography from The US National Archives - '.$sitename;
}
etc............
}
|
but i obviously can't do that for dh, so I assume I'll have to create some sql tables to hold some basic data for these pages.. But since the pages aren't loaded from the db, I'm not sure how nukeDH associates the page being viewed with the db tables I would create...?
or maybe some way to override/define from within the $file?
any advice?