I'm pretty new to Drupal,
I have created a View with a custom content type which includes a field collection. When i try to load this view block inside a region in front page, It just shows the title (with the link to the actual content) and not the content itself. I need to view the content in the front-page itself
Can you please help me how to do this?
There are two options:
if in view you selected show format as content then you have to add your field collection field in selected display
if in view you selected shoq format as fields then you have to add your field collection field in view fields section
Related
1- i have menu links HOME | Property(links to property content type) | NEWS.
2- In every News there are tags which reference to the property.
3- I want to link "NEWS" menu item to a separate page which should display only the news list which contains the tags for the property.
Example
i am on a property page say "Property XYZ", so there is a menu item "NEWS", when i click this menu item, a new page opens and this page is showing news which contain the Tag "Property XYZ" in them.
How to do this thing? Thanks in advance.
You can use the Views module to create a new View of nodes of type News, with a display of type Page (since you want the News listing to be a separate page).
Then you can add a Contextual Filter to the View, which is the way you can pass the Property as a parameter to filter to only News with that Property as a tag. You do this by adding the News field containing the tags as Contextual Filter for the view.
At this point you'll have a view page with something like 'news/%' as a path (where % is a placeholder for the Property parameter), so then you only need to use the appropriate substitution for it in each Property page for the News link on that page (like make it link to 'news/propertyxyz' while on PropertyXYZ page).
If the menu containing the NEWS menu item is outside of the scope of the Property page (like in the case of the site main menu or something like that) then you can use https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_menu_link_alter/7.x to alter the path, getting the corresponding Property object (and any value you need to pass as parameter) through https://api.drupal.org/api/drupal/includes%21menu.inc/function/menu_get_object/7.x
I'd like to ask a tricky question to you about Drupal.
I created a new content type which includes lots of fields.
I want to find a module that adds a 'Add another' link to the adding content screen which will duplicate certain fields.
Example:
I have fields named Panel1 Photo, Panel1 Info, Panel2 Photo, Panel2 Info...
When adding a new content of this type, if I want to enter 3 panels, I want this module to create 3 fields of Photo and Info for me, and maybe 4 or 5 at other times.
I hope you will understand what I ask.
Thank you in advance.
You could have each field set to allow multiple values which would put the add another button you talk about. If you make a field collection with the field collection module you will be able to group those fields together and you can allow multiple values for the field collection. Let me know if you haven't found the add another button.
Install the field collection module then in the content type create a field collection with panel and photo fields.
When you create your first content page you will start with one panel and photo and a + button. The + button gives you the ability to create ever more panels and photos grouped together.
I created a content type: Map that has a field "node reference" on which I can select the name of another type of content type. It also has an Image field.
Now, I want create a View. The view must have below every field image Map a data field that is in the content type reference
I need help to set the View ...
thanks..
Go to the view page. Under Relationships section, click to add a new one.
Choose Entity Reference: Referenced Entity that has a description A bridge to the Content entity that is referenced via THE_FIELD_REFERENCE.
In the fields section click to add a new field. Choose your image field and click Add, under Relationships choose the relationship you've just created.
Now, the image should appear in the view.
Hope this works... Muhammad.
how can make view of more than one views 6.Please give me solution.Is any module in drupal 6.If it is not then how to customiz the view so that we make view of views.
I enable the view module and homebox module.pls gv me solution.
If you want to make a list of views, the simplest option is to create each View as a block and place all the blocks on the same page.
Other alternatives are:
Views attachments (see http://www.cmsquickstart.com/blog/drupal6-attachment-display-views)
Viewfield module
Viewfield provides a field that holds a reference to a View and
renders it whenever the entity containing the field is displayed.
adding a View area as part of the header/footer of a view (only available in D7, I think) -- see http://drupal.org/files/vfv-cant-select-display.jpg
In a node creation form, which is a custom content type, I want to add a text, not a text input field, but just a text line, as a remark or an NB, I search for long time in vain.
How can I do that?
Are you using the FieldGroup (http://drupal.org/project/field_group) module? If so, when creating a field-group for a content type's fields, select Vertical Tab as the type of fieldgroup and once you've placed the fields you want to include 'under' that group, save the page. You will then see a gear icon listed under the Operations menu within the row for your newly created field-group. Clicking on this gear icon will give you some additional options, including a Description area where you can write in instructions or whatever you like that will display on the node creation page within that particular tab and at the top of all the fields you have in that tab.
You should be able to add text using the markup form element.
Description: Generate generic markup for display inside forms.
Example from the documentation:
$form['contact_information'] = array('#markup' => variable_get('contact_form_information',
t('You can leave us a message using the contact form below.')),
);
This will work to give you overall instructions for the node creation form:
Create a new block.
Don't give the block a title.
Set block body to whatever you want the instructions for the node form to be.
Under the "Pages" option of the block creation set "Only the listed pages". Then add "node/add/[custom-content-type]" for whatever type of content it is.
Drag the new block to the top of your content section of your active theme.