If this isn't the proper place for this post please let me know.
I am working on a site where I have been asked to really break data out. This is the format I currently have (simplified):
Content Type: Person
First Name
Last Name
Articles (Author,Title,Journal,Year)Example:
First Name: John
Last Name: Doe
Articles: John Doe, A Title, A Magazine, 2010
Articles: John Doe and Jane Smith, A different Title, Another Magazine, 2008
But I have been asked to seperate out the data in the Articles further, instead of having everything in a single text field, so that each individual part could be used later on. Like so:
Content Type: Person
FirstName
LastName
Articles
Author
Title
Journal
YearSo I have been trying to use multigroups. I have a multigroup for "Articles" and each of the fields (Author, Title, Journal, Year) have been placed in the Articles multigroup. In the view for this page I have the multigroup-filter "Articles" selected and sync set to Year. I then have the output of Year rewritten to combine all 4 fields and group multiple values turned off. In the database and on the edit page for this node everything is perfect. But on the display page I only get one result set. If I enable the group multiple values I get the first result set followed by a number list of all of the years. My goal at the end is to have a number list for each result set, and there will be several multigroups on a single page (Articles, Books, Presentations, Reports). I am not sure what I am doing wrong here and could use some guidance.
The Year field output re-write:
[field_person_article_author_value], "[field_person_article_title_value]", [field_person_article_journal_value], [field_person_article_year_value]
In my template I call it by:
<?php
echo $fields['field_person_article_year_value']->content;
?>Output sample (group multiple values disabled):
John Doe, "A Title", A Magazine, 2010
Output sample (group multiple values enabled):
John Doe, "A Title", A Magazine,
1. 2010
2. 2008
Desired output:
1. John Doe, "A Title", A Magazine, 2010
2. John Doe and Jane Smith, "A different Title", Another Magazine, 2008
So, can someone help nudge me in a direction to try?
Comments
You can get every field separately on Display
Try on node display:
Articles [Re-format fields output as you want it's the original values]
Like this you can get all fields? Please let me know if this works?
Drupal Builder
Making Development Quick, Simple & Easy.
www.drupalbuilder.com