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.

4 Answers 4

0

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

0

You need to use

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

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

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.

1
  • I mean MARKUP module*
    – ARGO
    Commented Sep 5, 2012 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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