コード例 #1
0
  @Override
  public void doBeforeRender(HstRequest request, HstResponse response)
      throws HstComponentException {
    super.doBeforeRender(request, response);

    KKComponentUtils.setGlobalKonakartAttributes(request);
  }
コード例 #2
0
  /**
   * The multiple site menu names are configured by configuration parameter "breadcrumb-menus",
   * defaulting to "main".
   *
   * @param request
   * @return
   */
  protected List<String> getSitemenuNames(HstRequest request) {

    List<String> list = new ArrayList<String>(0);
    String menuNames = component.getParameter(PARAMETER_MENUS, request);
    if (menuNames == null) {
      list.add("main");
    } else {
      String[] names = menuNames.split(",");
      for (int i = 0; i < names.length; i++) {
        list.add(names[i].trim());
      }
    }
    return list;
  }
コード例 #3
0
  /**
   * Returns the separator string that separates two breadcrumb items. It is configured by
   * configuration parameter "breadcrumb-separator", defaulting to "»".
   *
   * @param request
   * @return
   */
  protected String getSeparator(HstRequest request) {

    String separator = component.getParameter(PARAMETER_SEPARATOR, request);
    return (separator != null) ? separator : "&#187;";
  }