first Im glad to work with OCS, for the features and being opensource.
Right now I'm trying to rework something in the templates (sidepar.tpl) for highlighting of current menu items. My knowledge of smarty templates is not too good, so there may be better ways.
For using a decision when to append
- Code: Select all
class="current"
- Code: Select all
{if $pageTitle == "about.organizingTeam"}class="current"{/if}
or
- Code: Select all
{if $requestedPage == "user"}class="current"{/if}
For me the question is, how to track the second part of the Url, after the requestedPage part ? Is there a way to operate in smarty with the op="xxx" variable?
- Code: Select all
<a href="{url page="schedConf" op="cfp"}">
Or is there a way to geht the content of the "
- Code: Select all
function smartyUrl($params, &$smarty) {
from TemplateManager.inc.php
- Code: Select all
function smartyUrl($params, &$smarty) {
// Extract the variables named in $paramList, and remove them
// from the params array. Variables remaining in params will be
// passed along to Request::url as extra parameters.
$paramList = array('conference', 'schedConf', 'page', 'op', 'path', 'anchor', 'escape');
foreach ($paramList as $param) {
if (isset($params[$param])) {
$$param = $params[$param];
unset($params[$param]);
} else {
$$param = null;
}
}
return Request::url($conference, $schedConf, $page, $op, $path, $params, $anchor, !isset($escape) || $escape);
}
Thanks in advance,
Christoph
