drupal - Creating a view for a node -


I have some problems in creating a view for one node in my website.

The content is the path to 'content /%' from which the% node is the title. What I tried to do, create a page view in View2 module, but there is no advantage. When I try to preview the name of one of my nodes, nothing appears, and when I go to the node, it reads the text on the screen without any formatting.

See some settings from here ... please tell me that I have to provide any additional information!

Page Settings

Path: Content /%

Logic

Node: Title:

  • Title:% 1
  • If the argument is not present then work to get: Provide default argument
  • The default argument type : Node id from the URL

edit

I will describe the behavior I am looking for ... < / P>

I have a list of nodes in my website at a glance .... Which points to any issue Does not appear.
What I have to do is click on the node and go to the page of that node, which is basically an extended view of an item from my list.

I thought what I can do is clone my list view and then add a logic to trim a single item from the list to the intersection, but it is not working very well. What is the proper method for styling a single node?

Edit: On your edit, you can create a list of nodes Already used the scene, and now you want to be able to click on one and reach the node page.

If you want only the default node output, you should not need to do anything else Try not to use a view to override the default node rendering; Drupal will print it by default.

If you want to specifically design your node (if you want to move forward from this and change the display settings in the UI, you do so), you should consider the custom template Files and themes can be here:

You can change the default node.tpl.php file if you want to change all the nodes, or you can copy that file And it can be called node-name_off_gel_type TP.PHP for a specific theme that you have created is a custom theme, but I suggest reading those changes before reading on the Drupal theme system.

End of editing


When you want to assign a path to a watch page display, you can use any existing path (for example For the node path, as you mention) should not be modeled after. ). This path should be something specific to avoid nickel struggles. For example:

my-path /%

Now, if you are only looking to embed a view within your node (and You want logic as to pass with node ID), you are halfway there depending on your description, your logic settings are correct. However, you do not need to display any pages.

Here are some options:

  • Quick 'n' dirty: create block display (which does not need a path) and on the node page Paste the block (I used the content_bottom field) to do this "embed" in your node
  • Powerful, Flexible: in your node ( Use the views_embed_view function inside the body or CCK area, just be sure to use the "PHP Filter" input format)

If you use views_embed_view , you have the flexibility to adhere to the results of your views wherever you like, and you do not need to create or create a watch page, because block display is This function can only use the "default" display.


Note: If you export your view and save the export code on the site or the like, here people can import the view and complete it Look for ways to help answer your question.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -