Posted by dabellator on December 20, 2012 at 9:37pm
I'm not sure where else to go for help! I am using a module called addressfield to collect addresses from my users. The module formats the address based on the proper form per country and dispkays it in the node. I need to create that same format in a view!
When I use content:field_address, it prints the data all on one row. There is a token, [node:field_address] that seems to print the data in the proper format, but I can't get it to work in Views. Can anyone help me here? How can I get the data to show up the same way in views (proper order, line breaks) that it does on a node?
Thanks for your help!
-JB
Comments
Seemed ok for me
I don't think I'm getting the same problem. I took the following steps
Installed clean version of Drupal 7
Added addressfield module
Added an address field to the basic page content type
Created a page and added an address
Created a view with fields title and address
This was the output from the view
Maybe it's something in your style sheet that is affecting the display?
Ed
Ed, Thank you for your reply!
Ed,
Thank you for your reply! You are correct. I discovered something yesterday after I had made the post, after days of trying to solve this issue. The problem is NOT with views. I am using another module, views export, to download a .csv file of the data. On the page view, everything is organizd as it should be, but in the "data export" view, everything is crammed on one line without linebreaks.
I know we are getting pretty specific here, but any idea why export would cause it to be formatted differently?
-JB
No idea
No idea I'm afraid.
Merry Xmas
Ed