Skip to content
New issue

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

视频分类 #4

Open
yangchuansheng opened this issue Dec 18, 2017 · 10 comments
Open

视频分类 #4

yangchuansheng opened this issue Dec 18, 2017 · 10 comments

Comments

@yangchuansheng
Copy link

视频分类是自动分类的?还是你手动加的?

@hanyucd
Copy link
Owner

hanyucd commented Dec 19, 2017

@yangchuansheng
其实没有什么视频分类,站点总共就只有 动作类里那 16 个视频源,
当初是只想做出 标签页切换 效果(Bootstrap),
要说分类的话,算是手动分的吧。

@yangchuansheng
Copy link
Author

手动分类是在哪里配置的呢,其实我是想搭一个播放列表的效果,就是找不到这样的应用,你这个算是我发现的第一个稍微接近我的想法的

@hanyucd
Copy link
Owner

hanyucd commented Dec 19, 2017

@yangchuansheng
你说的是像 爱奇艺、优酷那样视频播放窗口 右侧那样的待播放列表。
如若是的话,试试:

先从数据库中读取到5 - 8条视频数据,暂放到 movie_source = [ ] 中。
再在模板里用:
{% for single_movie in movie_source %}
<li>{{ single_movie }}</li>
{% endfor %}

@yangchuansheng
Copy link
Author

我没有听明白,模板文件放在哪里

@hanyucd
Copy link
Owner

hanyucd commented Dec 19, 2017

@yangchuansheng
模板文件放在 templates 文件夹下。
对了,这项目安了依赖库后,能正常跑起来不?

@yangchuansheng
Copy link
Author

能跑起来,我就是不知道该如何将自己添加的外链整合到分类中去

@hanyucd
Copy link
Owner

hanyucd commented Dec 20, 2017

那这个我就不清楚了。

@yangchuansheng
Copy link
Author

那你的外链是怎么添加到分类中的

@hanyucd hanyucd closed this as completed Dec 20, 2017
@hanyucd
Copy link
Owner

hanyucd commented Dec 20, 2017

@yangchuansheng
我这个应该和你想做的不是一样的,视频外链是添加在了前端每个视频的 <a href="">。
所谓分类是用了 Bootstrap 中的 <Tab> 标签页来切换界面。
我是这样的:

default

default

default

default

default

default

@hanyucd hanyucd reopened this Dec 20, 2017
@hanyucd hanyucd closed this as completed Dec 20, 2017
@hanyucd hanyucd reopened this Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@hanyucd @yangchuansheng and others