Home > Backend Development > PHP Tutorial > Typecho有关文章列表页问题

Typecho有关文章列表页问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:32:59
Original
1311 people have browsed it

1.如果未启用 同时将文章列表页路径更改为XXX ,那么文章列表页的默认路径是什么?
2.如何判断页面是不是文章列表页?
  我用$this->_archiveType取到了文章列表页的归档类型是front,请问可否使用这个特征来判断?

谢谢!

回复内容:

1.如果未启用 同时将文章列表页路径更改为XXX ,那么文章列表页的默认路径是什么?
2.如何判断页面是不是文章列表页?
  我用$this->_archiveType取到了文章列表页的归档类型是front,请问可否使用这个特征来判断?

谢谢!

确实是front

<code><?php if ($this->is('front')): ?><!-- 页面为文章列表页时 --></code>
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template