Can someone please tell me how to add duration(CCK field) to sort criteria of views programmatically because it is not listed there by default?
If no handler/field is provided in Views you have to refer to the API and write the views plugins to enable what you want to sort by.
http://views2.logrus.com/doc/html/index.html
http://drupal.org/node/235062
Related
I have a question when using the User ID feature to track users across devices/browsers.
If I activate the transfer service from GA to Bigquery in which field will I get that information. Would it use the same fullVisitorId column or a new one will be created?
thanks,
mike
The field is called userId.
More info can be found here. Please note that for this data to appear in BigQuery, you must make sure to select the User ID view when setting up the GA/BigQuery link.
The GUID will be new field and can be found as a custom dimension.
How can I let users create their own lists of a particular content type? I have used the "Flag" module but it allows only a single list. I want the user to be able to create multiple lists. I have tried "Flag lists" but cannot seem to get it working. Any help will be appreciated. Thanks.
You can create multiple flags like flag1 for playlist1, flag2 for playlist2 and so on. and use flag api's to display them with content.
To display all the flags you can create tpl files for your content-type and display all the flaging links with flag api URL: https://www.drupal.org/node/1748148 .
Later you can use views to display the individual playlist.
I'm using Symfony2, FOSRestBundle and NelApiDoc to create Rest services.
Documentation created by NelMioApiDoc I have a field that is defined as a choice and extracts all the records in the database. How can I tell NelMioApiDoc to hide values retrieved from database?
Thanks for the answers
I think this is your answer, once it is merged:
https://github.com/nelmio/NelmioApiDocBundle/pull/543
So let's say I have two tables: permissions, and sort of a join table between users and permissions that we'll call permission_list
permission_list has user_id and permission_id.
permission has the name of the permission and a keyname for use elsewhere in the code.
Now I have an assign permissions page, that currently uses a dropdown list of all the available permissions. What I want to have is a list of checkboxes, where permissions in the users list are checked already, and unchecking them removes those records, and checking new ones adds new records.
Does Symfony2 have a built-in way to go about this?
Does this answer your question How to render a checkbox that is checked by default with the symfony2 Form Builder?
Form Builder has a lot of great features that will help you accomplish what you are looking for.
That link references this link http://symfony.com/doc/current/book/forms.html that has a ton of info but he gives a good suggestion. Let me know if thats not clear enough.
I created a custom field for a user's hometown, let's call it "field_home", that is required for every user when they register an account. They can only select certain text values from a list.
Is there any way I can add a "Hometown" column in admin/people, which lists every user's field_home value along with their user name and roles?
Thanks for any information!
I would recommend creating a new view. You can build a better view than the one provided in admin/people in no time.
Add your own custom fields, edit/cancel-account links and filtering criteria. That'd be much easier and faster.