简体   繁体   English

用户的drupal多重兴趣

[英]drupal multiple interest of user

hi i want to refresh user page with different data but with same template (user-profile.tpl.php) by simply clicking tabs. 嗨,我想通过单击选项卡使用不同的数据但使用相同的模板(user-profile.tpl.php) 刷新用户页面 Can any one suggest the best way to do that ?. 谁能建议最好的方法吗?

for ex: 例如:

tab1:sports , tab2: music tab3: literature

by clicking tabs the template is same but the data is going to refreshed. 通过单击选项卡,模板是相同的,但是数据将被刷新。

Note: Look like profile categories but not the same. 注意:外观类似于配置文件类别,但不相同。 all details are from user table 所有详细信息均来自用户表

I think the simplest way, which isn't exactly what you asked for, would be to using jQuery tabs or something similar to create the tabs effect. 我认为最简单的方法(不是您真正要求的)是使用jQuery选项卡或类似的方法来创建选项卡效果。 In other words get all the data but use CSS and JavaScript to handle which data should be displayed. 换句话说,获取所有数据,但使用CSS和JavaScript来处理应显示的数据。

I don't think there is an easy way to split up the content of the user profile into tabs with pure html and Drupal. 我认为没有简单的方法可以将用户配置文件的内容分为纯HTML和Drupal标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM