douzhi9395
2013-09-04 00:19
浏览 37
已采纳

需要在drupal中创建自定义空白页面

I've installed Drupal to have a basic user registration layer. Now I need to code some PHP code in a blank page, how I can achieve this in Drupal? I need to know where I must put my PHP code.

Thanks a lot

Edit.

Basically I need Drupal only for user authorization. After a user logged into the system I want to show him a table with some data. This table was managed with JQuery.

图片转代码服务由CSDN问答提供 功能建议

我已经安装了Drupal以获得基本的用户注册层。 现在我需要在空白页面中编写一些PHP代码,如何在Drupal中实现这一点? 我需要知道我必须把PHP代码放在哪里。

非常感谢

编辑。

基本上我只需要Drupal用于用户授权。 用户登录系统后,我想向他显示一个包含一些数据的表。 该表由JQuery管理。

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • douyin9987 2013-09-04 17:11
    已采纳

    for what you want to do I think it's not necessary a custom module, but if so, it's not so hard to do, but you can allways use some existing drupal modules mixed together to do what you want.

    You will need: Display Suite and Login Redirect module

    Basically I need Drupal only for user authorization. After a user logged into the system I want to show him a table with some data.

    For this purpose you can use Login Redirect module to redirect user to any page you want.

    Now I need to code some PHP code in a blank page, how I can achieve this in Drupal? I need to know where I must put my PHP code.

    For this you can use Display Suite. Display suite or simply DS comes with a new a new Text Format: "Display Suite code". This text format allow you to add some custom code to your pages (javascript,php,etc)

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • dongsaohu6429 2013-09-04 05:41

    You will have to create a module in order to add php code to drupal. Try this to understand better what u need to do https://drupal.org/node/1074360

    评论
    解决 无用
    打赏 举报
  • dongyirong3564 2013-09-04 08:36

    you should learn to develop Drupal modules with hook_menu you can make page and with hook_form_alter you can edit registration form

    but in drupal 7 you can manage registration fields and also with rules and views modules, you can manage registration and user list without PHP coding

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题