取消的category及subCategory顯示

Phoenix Phoenix 2018.8.14 20:55 浏览(524) 评论 (0)
<ol class="breadcrumb">
	<li class="breadcrumb-level"><a th:href="#{blogUrl}"><i class="fa fa-home"></i>&nbsp;[[#{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>&nbsp;[[#{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>&nbsp;[[#{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>&nbsp;[[#{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>

 

点击量: 0
免责声明:本文资源均为自媒体平台“芒果XO”用户上传并发布,本平台仅提供信息存储服务,仅作为学习交流,其版权归出版社或原作者所有,本网站不对所涉及的版权问题负责。(如本文资源侵犯了您的权益,请发送邮件到phoenix.lam@mangoxo.com,或按此进行投诉,我们会及时作出处理)如果你下载本网站资源,表示您同意只将此资源用于参考、学习使用而非任何其他用途。收取的费用为整理资源的费用,非资源本身费用,请悉知。

本文链接 https://www.mangoxo.com/blog/8g5rVO5z 版权所有,转载请保留地址链接,感谢!

Phoenix 关注
來一遭,做一事。 等一人,愛一次。
  • 939 动态
  • 1,975 相册
  • 22 粉丝
  • 1,598 获赞