「ユーザ参照」タイプで定義したフィールドに対して、固定のユーザではなく、”ログインユーザ”でフィルタをかけて表示させる方法を教えてください。
はじめまして。
Drupal初心者で、本サイトへも初めての投稿なので、わかりづらい箇所があると思いますがご了承ください。
以下のようなコンテンツを作成したいと考えていますが、
3つ目がうまくいきません。
①イベントを登録するためのコンテンツを作成したい。
②イベント登録時には、参加者をユーザから選択させたい。
③イベント一覧を表示する場合、各ログインユーザ毎に、自分が参加するイベントのみが表示されるようにしたい。
具体的には、以下のような設定を行っています。
①イベントというコンテンツタイプを作成。
②CCKにより「ユーザ参照」タイプで、ユーザを選択させる「参加者」フィールドを作成。
★★↓↓ここの設定方法を教えていただきたいと思います。★★
③VIEWSのフィルタの設定で、コンテンツの中から「参加者」にチェックを入れたところ、
ユーザ名が固定で表示されて、その中から選択しなければならないため、
ログインユーザ毎に表示する内容を変更することができない。
テキストフィールドみたいなものがあって、そこに「%user」的な変数を入れればうまくいくのでは?と思ったのですが、
ここでは、固定のユーザ名から選択するということしかできませんでした。
Creating a Rules-driven admin dashboard
Hello,
I am somewhat new to Rules and am amazed by what it can do. I've got a situation where I believe Rules is the best tool, (I have also considered http://drupal.org/project/computed_field and http://drupal.org/project/views_calc). Any insight you have would be greatly appreciated.
Read morejson data expose to views
I have a custom CCK compound field, which stores a hierarchical multidimensional tree in json in a field type. I now want to expose this data to views, but in flat way (table with parent relationships).
Any help with how to implement views_data is appreciated.
kind regards, thanks in advance
tips for a video gallery with controlled access?
Hi everyone,
Read moreSimple way to show a taxonomy tree view?
I believe I'm over-thinking this.
I wish to show a hierarchical or tree view of a vocabulary. it's a two-tiered taxonomy.
How would you do this?
TIA,
Kyle
Views 3 pluggable backends : is this what i need ?
I am working on a project which involves querying a web service. A hotel search service.
So instead of going with custom standalone code, i'd like to see if i can implement this while building up on views.
Now that Views 3 has pluggable backends, may be it is possible for me to use it, but i need some clarification :
<
ol>
Taxonomy Terms Pages With Panels & Views
Hey all,
I'm trying to create a site using taxonomy term pages with panels and views as described in this fantastic Drupaleasy blog post:
http://drupaleasy.com/blogs/ultimike/2010/10/taxonomy-term-pages-steroid...
I've managed now to set-up the site so that all content is automatically categorised onto individual pages according to its taxonomy term so I'm all good there. The problem I'm having is in creating a panel which will display all of the term descriptions of for the children of any given top-level term.
Read moreWorkflow Access - Allow anonymous users to view certain CCK fields in Views, but not the full node?
I have a Workflow setup like this:
Upcoming - node shows up in "Upcoming Reviews" content pane, but not viewable by anonymous users (also applies to Draft and Waiting states)
Draft - being worked on by author
Waiting for Approval - ready to be reviewed by administrator
Published - Viewable by everyone, shows up in various site sections/taxonomy lists
Views question
I've got a quick question about views. I was trying to create a completely custom rendering of one of my views and found that you can use the following handler function to render an individual field (in this case an ImageField):
<?php
print $view->field['field_image_fid']->render($row);
?>The problem is that I tried to get it to work with the node title using:
<?php
print $view->field['title']->render($row);
?>Views Theming
How do I theme a particular view. I want to remove the submitted by on a particular view, but still keep submitted by on the conetnt type.
Read more

