douchen7366 2011-02-25 07:30
浏览 51
已采纳

drup中的CCK节点引用url字段

I have two content type in cck

  1. Job

  2. Applicant

I have created a node reference field to job field type as link.

Now I want that when some one click on particular job then the link should be seen even when person is not logged in.

Currently logged in user can see this link.

Note : When user not logged in then link should go to login page not to applicant form.

  • 写回答

2条回答 默认 最新

  • douhai5835 2011-02-26 17:53
    关注

    Have you tried the Node Reference URL Widget http://drupal.org/project/nodereference_url ?

    From their description:

    The Node Reference URL Widget module adds a new widget to the Node Reference CCK field type. It auto-populates a node reference field with a value from the URL, and does not allow this value to be changed once set. It can automatically provide a link on the referencing node types, that will contain the proper url to prepopulate the field.

    I'm using it in a site where only certain users can add an event to a venue (my config is per role). You can use (in your nodereference field setup) a view to filter which nodes can a user reference (for example, in my case I use a view which filters venues per node author, so the user can only add events to the venues he is author of).

    To solve the login redirect you should try the Redirect 403 to User Login http://drupalmodules.com/module/redirect-403-to-user-login

    I hope it helps Cheers!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 r包runway详细安装教程
  • ¥15 Html中读取Json文件中数据并制作表格
  • ¥15 谁有RH342练习环境
  • ¥15 STM32F407 DMA中断问题
  • ¥15 uniapp连接阿里云无法发布消息和订阅
  • ¥25 麦当劳点餐系统代码纠错
  • ¥15 轮班监督委员会问题。
  • ¥20 关于变压器的具体案例分析
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo