Exemplo n.º 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);
  }
Exemplo n.º 2
0
 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);
 }