예제 #1
0
  protected void display(Map<String, String> params) {
    this.setPageName("articledetail");
    Integer article_id = this.getArticleId();
    Article article = articleManager.get(article_id);
    this.putData("article", article);

    ArticleCat cat = this.articleCatManager.getById(article.getCat_id());
    Nav nav = new Nav();
    nav.setTitle("首页");
    nav.setLink("index.html");
    nav.setTips("首页");
    this.putNav(nav);

    Nav nav1 = new Nav();
    nav1.setTitle(cat.getName());
    nav1.setTips(cat.getName());
    this.putNav(nav1);

    Nav nav2 = new Nav();
    nav2.setTitle(article.getTitle());
    nav2.setTips(article.getTitle());
    this.putNav(nav2);
  }
예제 #2
0
파일: HelpWidget.java 프로젝트: evenX86/jm
 protected void display(Map<String, String> params) {
   this.setPageName("helpdetail");
   Integer article_id = this.getArticleId();
   Article article = articleManager.get(article_id);
   this.putData("article", article);
 }