我知道如何在视觉查询设计器中访问某些详细视图的url路径ID。
但是在视图razor脚本中获取此值的正确方法是什么。我知道我可以手动解析路径,但我感兴趣的是,是否已经有一些功能可以做到这一点?
答案 0 :(得分:1)
好像你已经找到了答案:)。
DNN将在pattern-key / value / key / value / key / value
中映射page-url之后的所有参数因此它始终可以在public class SingleItem {
private String image;
private String link;
private String title;
private String views;
public SingleItem(String image, String link, String title, String views) {
this.image = image;
this.link = link;
this.title = title;
this.views = views;
}
public String getImage() {
return image;
}
public String getLink() {
return link;
}
public String getTitle() {
return title;
}
public String getViews() {
return views;
}
}