3

I have created a content-type based form (contact form) for anonymous users. One of the fields in the form must displays a view. This view is a slideshow view that displays different persons (site employees).

I want them to select an employee to where their comments will be delivered.

0

With module_invoke(), you can display a view block wherever you like.

| improve this answer | |
0

You need to use

<?php
views_embed_view($name, $display_id = 'default') 
?> 

to embed a view. Here is the doc for that.

| improve this answer | |
0

Found it i can use Markup module to use php code in the field and use this code;

WHATEVER is the name of your view.

| improve this answer | |
  • I mean MARKUP module* – ARGO Sep 5 '12 at 6:12
0

There are a number of modules that might do it (quotes included are from their project pages):

  • EVA: Entity Views Attachment:

    ... provides a Views display plugin that allows the output of a View to be attached to the content of any Drupal entity. The body of a node or comment, the profile of a user account, or the listing page for a Taxonomy term are all examples of entity content.

  • View reference:

    ... defines a field type View reference which creates a relationship to a Views display and allows the view to be displayed as the content of the field.

    This module is modelled on Node reference and usage is similar.

    Additionally, you may enter arguments for each view by a delimiter seperated list with support for PHP generated arguments.

  • Viewfield:

    ... provides a field that holds a reference to a View and renders it whenever the entity containing the field is displayed.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.