| User | Post |
|
5:37 am November 12, 2010
| s4c
| | |
| |
|
|
Hi – I'm trying to display data from 3 fields in a form in a custom display.
My problem is that the custom display seems only to be able to repeat the fields for each user ie. I get:
Question 1:
answer
Question 2:
answer
Question 3:
answer
Question 1:
answer
Question 2:
answer
Question 3:
answer
& this repeats for each user that has entered data.
What I'd like is:
Question 1:
All answers from all users in a list
Question 2:
All answers from all users in a list
Question 3:
All answers from all users in a list
I've tried different shortcodes and different ways to edit the custom display but come up stuck. Is there a way to do this?
|
|
|
9:19 am November 12, 2010
| Steph
| | |
| |
|
|
Do you only have a few questions? If so, I think you'll need to create a custom display for each answer. Would that work?
|
|
|
12:58 pm December 12, 2010
| geekola
| | |
| |
|
|
Steph, is there a way to create a display that I can pass a variable to? I am doing a directory that will have 1000's of entries.
So i have a custom display set up called Business Profile and I'd like to pass at least two variables to it to filter the data…for example: ?sector=Textiles&country=Algeria
For the function, I am using:
do_shortcode('');
I assumed Filter meant I could filter the data? Please advise. The issue is similar to s4c's post, but I do have way too many to create a view for every country, sector, city, etc.
|
|
|
9:50 am December 13, 2010
| Steph
| | |
| |
|
|
Yes, this is possible. All you need to do in your custom display is add a line on the "Where" row for each of these. It would be something like this:
Textiles field is equal to [get-sector]
Country field is equal to [get-country]
|
|
|
11:24 am December 13, 2010
| geekola
| | |
| |
|
|
i would be looking at over 8,500 custom displays. I really need to pass a variable or two.
|
|
|
11:25 am December 13, 2010
| geekola
| | |
| |
|
|
Never mind, I didn't read what you wrote correctly. I see the "get" now and will test this out. Thanks loads Steph.
|
|