We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rt
The text was updated successfully, but these errors were encountered:
手动的话: 把不同分类的模板文件以分类缩略名命名,如default.php、technology.php(缩略名请在后台——管理——分类中查看),然后在当前模板目录下建立一个名为 category 的文件夹,把不同分类的模板文件放进该文件夹,这样,在访问分类页面时,会自动调用分类对应缩略名的分类模板。
default.php
technology.php
Sorry, something went wrong.
这种很不方便,如果能在后台设置中,自由的为当前分类选择模板就好了。对于主题开发者,这种功能也很方便,总不能让使用者自己建文件夹吧qaq
如果不想手动的话,这里提供一个这折中方案也是我自己目前在使用的方法,就是主题设置里读取全部分类,然后通过js控制拖拽来分配不同分类的mid,在分类页面读取主题设置的mid来使用不同模板
如果大家有更好的方案也欢迎分享一下
如果不想手动的话,这里提供一个这折中方案也是我自己目前在使用的方法,就是主题设置里读取全部分类,然后通过js控制拖拽来分配不同分类的mid,在分类页面读取主题设置的mid来使用不同模板 如果大家有更好的方案也欢迎分享一下
思路很不错,感觉很可行,很感谢!
@Moidea 能否分享一下主题设置页怎么获取分类的mid和名称等数据的代码?
No branches or pull requests
rt
The text was updated successfully, but these errors were encountered: