取消的category及subCategory顯示
Phoenix 2018.8.14 20:55 浏览(
<ol class="breadcrumb">
<li class="breadcrumb-level"><a th:href="#{blogUrl}"><i class="fa fa-home"></i> [[#{article}]]</a></li>
<li th:if="${category != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc0/1'" th:text="${category.categoryName}"></a></li>
<li th:if="${subCategory != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
<li class="breadcrumb-level"><a th:text="${article.title}"></a></li>
</ol>
<ol class="breadcrumb">
<li class="breadcrumb-level"><a th:href="#{albumUrl}"><i class="fa fa-home"></i> [[#{homepage}]]</a></li>
<li class="breadcrumb-level" th:if="${category} != null"><a th:href="#{albumUrl} + '/list-c' + ${category.categoryId} + 'sc0/1'" th:text="${category?.categoryName}"></a></li>
<li class="breadcrumb-level" th:if="${subCategory != null}"><a th:href="#{albumUrl} + '/list-c' + ${album.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
<li class="breadcrumb-level"><a>正文</a></li>
</ol>
手機端
<ol class="breadcrumb">
<li class="breadcrumb-level"><a th:href="#{blogUrl}"><i class="fa fa-home"></i> [[#{article}]]</a></li>
<li th:if="${category != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc0/1'" th:text="${category.categoryName}"></a></li>
<li th:if="${subCategory != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
</ol>
<ol class="breadcrumb">
<li class="breadcrumb-level"><a th:href="#{albumUrl}"><i class="fa fa-home"></i> [[#{homepage}]]</a></li>
<li class="breadcrumb-level" th:if="${category} != null"><a th:href="#{albumUrl} + '/list-c' + ${category.categoryId} + 'sc0/1'" th:text="${category?.categoryName}"></a></li>
<li class="breadcrumb-level" th:if="${subCategory != null}"><a th:href="#{albumUrl} + '/list-c' + ${album.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
</ol>
本文链接 https://www.mangoxo.com/blog/8g5rVO5z 版权所有,转载请保留地址链接,感谢!
☺
加载评论中