hi guys
iv been trying to figure this out to see whats the best way of going about it but i cant, maybe someone can help me shed some light on this
Basically i have a content type of Surgery. only admin can create surgeries.
What i want to do is create a list of surgery nodes, then allow users to submit prices for that surgery which they have been charged in the past
so the way i want have it done, is have a menu link that says Submit your Price, users click it, then they are taken to a page where they can select a surgery from a drop down list. then they input their price below it and information on their views about the surgery etc..
i then need this information to be linked to that particular surgery node and when a user clicks on that surgery, the user inputted information about that surgery is displayed, preferably under it maybe as a comment!
whats the best way to go about achieving something like this ? anyone have any ideas?
thanks a lot
Comments
Two options
One option is to add a Price and other fields to the Comment Fields under your Surgery content type.
Another option is to create another content type such as "Surgery_Feedback" with fields for price and feedback. Then use a reference field (via Entity Reference) to link back to the Surgery type.
Either way, you will probably want to use the Views module to provide a list of surgeries to select from.
Here is one approach Make
Here is one approach
Make "Submit your price" a content type, add the fields you need and include an Entity Reference field configured to reference nodes/content of type "Surgery"
You could uses views to list all "Submit your price" content that references a particular surgery and use eva to add a field to "Surgery" that uses that view.
If you add Entityreference prepopulate you could then get a link on content of the "Surgery" that would add "Submit your price" content with the entity reference field prepopulated.
that sounds perfect, thank
that sounds perfect, thank you so much for the speedy reply, im going to check it out and see how it goes :)
really appreciate it
Sorry to bother u again. Do u
Sorry to bother u again. Do u mind helping me with setting up the view to display the surgery comments on the surgery pages?
Iv created a content type Surgery. And another content type Surgery comments. To the surgery comments i attached a entity reference field referencing the surgery content type.
Iv also installed the eva module and created a block view to display nodes of content type surgery, but cant figure out how to use eva to have the comments show on the surgery page
Thanks so much
I think the description on
I think the description on the EVA project page should help.
No :( iv been pulling my hair
No :( iv been pulling my hair out trying to understand it
Im willing to pay for support if u have time to help me set it up?
Lets see if this helps I
Lets see if this helps
I created a view with (I actually made it initially with only the default display)
Filters
Content: Published (Yes)
Content: Type (= Submit your Price)
Sort Criteria
Content: Post date (desc)
Contextual filters
Content: Surgery <<== This should be on the entity reference field in Submit your Price
At this point you should be able to enter a node id (nid) from content of type surgery and see a list of prices (you will need content of type Submit your price that reference the chosen surgery for this to work).
When it is working to your satisfaction
Under "Displays" (top left) click the "Add" button and add a display of type "Entity Content"
Configure the Values under "Entity content settings", "Bundle" will be the content type you want to show the view on (surgery in this case)
Save the view.
Empty cache (possibly twice). The developer (devel) modules includes a block with a link for doing this.
Visit the "Manage display" tab for "Surgery", you view should be listed there, make sure it is set to visible.
Save any changes.
Visit a Surgery node with prices, the view should list them.
Wow that worked perfectlyyyy
Wow that worked perfectlyyyy thank u soooo much i really appreciate it
Would u liike a payment for ur time?
Glad to have helped
Glad to have helped
can i be a pest and ask you
can i be a pest and ask you for some more help on a little something?
iv created everything and it all works fine, but i want to create a button on the surgery content type that says submit your price and clicking it the user can create a price content type FOR THAT particular surgery content type they clicked the button on.. do i make sense? is it even possible?
much appreciated
That is where Entityreference
That is where Entityreference prepopulate comes in though you will need to make your own link that shows on the surgery content