2013-06-25 58 views
0

我想根据正在显示的视图的名称在我的$$ SearchTemplateDefault中显示标题。我试过@ViewTitle,但似乎没有工作。视图名称位于URL中。在这里有什么方法可以到达$$ SearchTemplateDefault表单中的URL或视图名称?

我也尝试HTTP_Referer,但显示引用的URL。

回答

2

您正在查找的变量称为PATH_INFO。只要创建一个用于计算显示字段使用该名称和公式@thisvalue或PATH_INFO

可以使用的所有CGI-变量的列表,可以发现here

的视图 - 标题(计算文本的代码或然后cfd-场)可能是这样的:

_viewNames := "View1" : "View2" : "View3"; 
_viewTitles := "View Title 1" : "View Title 2" : "View Title 3"; 

_path := @URLDecode("Domino" ; PATH_INFO); 
REM "Alternatively use this, as this is already decoded..."; 
_path := Path_Info_Decoded; 

_viewName := @Left(@RightBack(_path ; "/") ; "?SearchView")); 
@Replace(_viewName ; _viewNames ; _viewTitles) 

注意:您要列出一个视图的所有可能的别名是的......