How to link a user with taxonomy terms - drupal-6

Im trying to assign users to a taxonomy term during sign up with drupal7 and profile2.
There used to be a profile taxonomy for drupal 6 but its not ported to 7 yet.
Is there a way of doing this with reference/entity reference.

yes there is
http://drupal.org/project/entityreference
I just created a new field for the user account select entity reference then you can choose any entity within drupal to reference. (ie so you can select a term/content/anything)

Related

Is there a simple example on how to add an entity extension for customers with field in the admin of shopware 6?

I want to add an entity extension to a customer in shopware 6. I was able to do so with the examples in the documentation of shopware on the PHP side and now I wonder how to display and modify this new "field" in the shopware 6 backend.
I searched a lot and also tried to find a simple plugin where I could get some inspiration from, but unfortunately I'm not able to find.
So again the question 😊 Is there any simple example on how to add an entity extension for customers with field in the admin of shopware 6? Or an example plugin, where I can see how it could be done?
What you're (likely) trying to achieve would be the combination of multiple separate tasks.
If you want to store data in the database you'd need a new custom entity
If you want to associate the new entity with the customer you'll need the entity extension
You'll need to add a new field in the administration
I've linked to examples respectively, but you'll probably need to take the time and invest in studying the documentation regardless.
I also created an example plugin that combines all these steps and adds a new entity with a height field as association to the customer and displays the field in the administration. You can find the repository here.
Not sure if you considered this, but depending on what you are trying to accomplish, the simplest way is probably adding a custom field (this can be done progamatically or even via the admin panel).
The drawback is, that those fields' values are stored as JSON and it has drawbacks when you try to search through them.

Entities in Dynamics CRM 2011

So basically I am making a Jail Management System. The first part is where an inmate is booked and that session has 5 screens namely:
Booking Screen 1
Booking Screen 2
Booking Screen 3
Medical
Property
Commissary
I have created entities and forms for all of them. I want the functionality where i can move from the first booking screen to the rest by using like a "Next" button like we usually have in online forms over the internet. Can i achieve this?
or is there some way where I don't have to go to every entity and create a New record manually?
Regards
Depending on the number of fields you could use 5 tabs instead of pages. The last field of every tab could hold a javascript that opens the next tab and close the previous tab.
You can achieve this by creating a Dialog which will pass the values to Custom workflow activity(Written in c#). I have recently created a dialog for user registration.
Have a look at these link:
Link 2
Link 1
Link 3
Link 4
As Scorpion suggestion, you can use dialog if all of input fields were in the same entity. If you want to use the Wizard to collection fields which were held in different entities. Then you can make a custom web page(e.g. ASP.NET) to handle it.

Checkbox list in Orchard CMS

Is there any module in Orchard CMS that I can install to get a checkbox list? I checked in the gallery but could not find one. If there is none, is there is a workaround this?
I want to associate a product item with multiple categories (fixed set of categories).
Thanks!
EDIT :
I checked the Taxonomy module as per the suggestion. Now, I want to access the terms in the view. I have seen some posts where they can access it using
(IEnumerable<Contrib.Taxonomies.Models.TermPart>)Model.Terms
Using shape tracing, I am trying to figure out how to access the terms. My model doesn't have any terms field! I can access my custom type (Project) which has 'ProjectCategory' as Taxonomy Field. But there is no mean to view/select terms from there.
See attached screenshots.
Any idea?
I don't think there is a module specifically for checkbox lists, but it sounds like the Taxonomies module might be what you're looking for. You can add a Taxonomy field to your product content type, and define a Taxonomy for that field that contains all your categories.
Once you do that the editor page for your products will have a checkbox list (or radio select if you allow only one in the taxonomy field's settings) for the "Categories" taxonomy.
I managed to access the terms the following way :
IEnumerable<TermPart> assignedTerms = _taxonomyService.GetTermsForContentItem(contentItemId, "NameOfTaxonomy");

How can I hide the taxonomy field for authenticated users but show it for other users in Drupal 6?

I have a Drupal (v6.17) Content Type which includes a Taxonomy field. I want to hide this from ordinary Authenticated Users, but want it available to my Site Contributor role users, so they can review and then assign tags to user-created nodes.
I've tried overriding the Node Add/Edit form in Panels 3 by creating a panel variant especially for Authenticated Users, which would exclude the Taxonomy field. However, the Taxonomy field is bundled in with the "General Form" controls - without showing this, I don't get the Title and Body fields.
Is there a way I can either include the Title and Body fields without Taxonomy, OR hide just the Taxonomy field when the authenticated user role creates a node.
I realise there's a CCK field which might be able to help me out here, but how do I tie that to the Taxonomy module?
Any help gratefully received.
here is a solution that worked for me.
I use the content taxonomy cck field for taxonomy in custom CCK content type. So I can use the CCK field permission module (comes bundled with CCK) to show/hide the field based on the user role.
Content taxonomy can save terms to the field table and/or to the taxonomy table(s). It also comes with different input widgets beside checkbox and select.
Regards
Mike

Accessing custom user profile fields in CCK

I'm probably going about this the wrong way but...
I’ve added a field to the User Profile called profile_real_name which is required by the user. Is there a way to access the details in CCK?
For example in CCK when creating a new field I can access the user’s username with the ‘User reference’ Field type and setting the ‘Widget type’ to ‘Autocomplete text field’. Can I do the same with my real name field?
Many thanks
The problem is that Users are not a part of the node system and therefore fields cannot be mapped to Users using only Core code.
CCK doesn't have a way to manipulate and add fields to profile.
There is one solution to this: nodeprofile (Drupal 5). This module creates a node type for users, so each user effectively has one node that is associated with it. You can then add fields to this new content type and manipulate them how you wish.
There is also a module, content_profile, for Drupal 6 which does the same.

Resources