Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
add <?page?> tag to all views, which resolves pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Romans Malinovskis committed Mar 25, 2011
1 parent 9758efb commit 5d918a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/ApiWeb.php
Expand Up @@ -199,13 +199,15 @@ function setTags($t){
$t->trySet('base_path',$q=$this->api->pm->base_path);

// We are using new capability of SMlite to process tags individually
$t->eachTag('template',array($this,'locateTemplate'));

$t->eachTag('template',array($this,'_locateTemplate'));
$t->eachTag('page',array($this,'_locatePage'));
}
function locateTemplate($path){
function _locateTemplate($path){
return $this->locateURL('template',$path);
}

function _locatePage($path){
return $this->getDestinationURL($path);
}
function execute(){
$this->rendered['sub-elements']=array();

Expand Down

0 comments on commit 5d918a7

Please sign in to comment.