Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to use qr codes to track items. Is there a way of setting up a view that would print a qr code that contained say 'model#', 'Brand', 'code' in one code?
Comment | File | Size | Author |
---|---|---|---|
#5 | Knipsel.PNG | 33.4 KB | nielsvoo |
Comments
Comment #1
nielsvoo CreditAttribution: nielsvoo commentedSubscribe!
Comment #2
Deciphered CreditAttribution: Deciphered commentedYes, simply make a standard view that has a Text field with the data you want in the QR code and use Mobile Codes Field Formatter for that field.
Comment #3
nielsvoo CreditAttribution: nielsvoo commentedDear Deciphered,
This is not possible because there is no field formatter option available on the text type field. do i miss something?
Niels
Comment #4
Deciphered CreditAttribution: Deciphered commentedHmm,
I just did a quick search and I definitely had a Formatter for the Text field that I tested wich.
Can you provide me with more information? A feature containing the content types and the view, or similar?
Cheers,
Deciphered.
Comment #5
nielsvoo CreditAttribution: nielsvoo commentedHere is a print screen of the options available for a Global text field, i do not see any formatter?
Comment #6
Deciphered CreditAttribution: Deciphered commentedThe Views Global Text field is not a real field. I'm referring to Fields attached to the field UI.
If you don't want to use a regular field you will need to use either the Filter or PHP approaches.
Comment #7
nielsvoo CreditAttribution: nielsvoo commentedDear Deciphered,
Am i right you are saying this must be a single field in the content type (based on the text type) that could be rendered as qrcode?
if so maybe there is a misunderstanding, what i really want is this:
In my site i work with profile2 fields containing various content, like: name, address, phone number etc... it should be great if i could combine those in one single qrcode, so people can scan the code from a screen to put those details in there phone book or so.
I know there is a possibility to use the v-card module but this one only support native profile module which is less powerful then the one i use. not only for this kind of stuff, combining fields in one code could be a good approach, in my opinion there are many.
Thanks for your help.
Niels
Comment #8
Deciphered CreditAttribution: Deciphered commentedCan I ask why you are using Profile 2 and not regular Fields?
The User entity in Drupal is fieldable, as in any fields you could apply to a Content Type can also be applied to the User entity, without the Profile or Profile 2 modules.
Profile 2 fields aren't Fields, and therefore anything that supports Fields (such as Mobile Codes) won't support them out of the box.
Give standard Fields a try and a suspect that will resolve your problems.
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI do not see the mobile code field formatter either:
$view = new view();
$view->name = 'mobile_code2';
$view->description = 'Mobile Code';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Mobile Code';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'load_more';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Link */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view_node']['text'] = 'Content Link';
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: Content: Nid */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'node';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
$translatables['mobile_code2'] = array(
t('Master'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('« first'),
t('‹ previous'),
t('next ›'),
t('last »'),
t('Load more'),
t('Content Link'),
t('All'),
);