In both cases, the tokens are rendered as is, so you get something like this http://www.mywebsite.com/drupal/sites/etc/etc/[my_token-here]

CommentFileSizeAuthor
#12 screenshot.jpg140.47 KBsimonfunk

Comments

jenpasch’s picture

Title: Tokens do not work in the Rewrite text area (or the link text box) » Tokens do not work in the Rewrite text area

correction: DOES work in the "Output this field as a link" text field just NOT in Rewrite text area

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Here it works fine. Attached a view.

Things you might want to check: Take sure that the token appears on the replacement pattern fieldset.
If no you might have to move around the fields so that the fields you want to use as token is before the other field, where you want to rewrite the output.

In addition it might help here if you could export your view... as always.


$view = new view;
$view->name = 'awesomeness';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'awesomeness';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$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['title'] = 'awesomeness';
$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'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$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']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Field: Content: Nid */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['alter']['alter_text'] = 1;
$handler->display->display_options['fields']['nid']['alter']['text'] = '[title] [nid]';
$handler->display->display_options['fields']['nid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nid']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['nid']['alter']['external'] = 0;
$handler->display->display_options['fields']['nid']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['nid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nid']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['nid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nid']['alter']['html'] = 0;
$handler->display->display_options['fields']['nid']['element_label_colon'] = 1;
$handler->display->display_options['fields']['nid']['element_default_classes'] = 1;
$handler->display->display_options['fields']['nid']['hide_empty'] = 0;
$handler->display->display_options['fields']['nid']['empty_zero'] = 0;
$handler->display->display_options['fields']['nid']['link_to_node'] = 0;
/* 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';
/* 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'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'awesomeness';
$translatables['awesomeness'] = array(
  t('Master'),
  t('awesomeness'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('Nid'),
  t('[title] [nid]'),
  t('Page'),
);
jenpasch’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

email/contact, facebook, blog rss fields have various permutations of attempts to get tokens to work.
This is a term view. The fields com from a taxonomy term.

removed
merlinofchaos’s picture

$handler->display->display_options['fields']['field_email']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_email']['alter']['text'] = '<a href="[field_email-email]">contact</a>';

This shows rewriting as actually disabled, so won't rewrite unless the box is checked.

In all cases, the tokens you're using are all the "self" tokens, which are tokens for extra fields on a particular field. That's a pretty important distinction. We know that those tokens were broken in beta3, but they should be working again in the latest -dev. Can you try that and verify?

jenpasch’s picture

Oops. My bad on that rewrite check-off (I did a workaround when this didn't work, so was resetting to previous config). Now, trying again (with latest dev). Same result. Using "self" token for page email field...

removed
sf_wind’s picture

same here. Seems the raw url cannot be rewritten, other tokens can be rewritten.

jenpasch’s picture

Tokens seem to work fine after latest dev version.
grazie!

dawehner’s picture

If someone else says it works in the latest dev this issue can be marked as fixed. Feel free to do this.

avizzino’s picture

Confirm: problem solved in the current Dev version!

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

So this is fixed. Thanks

tomas_fenix’s picture

I am currently having the same problem but with the dev version

simonfunk’s picture

StatusFileSize
new140.47 KB

also confirmed: works with current Dev version, but some display problem in admin area are there. have a look on screenshot.

simonfunk’s picture

also confirmed: works with current Dev version, but some display problem in admin area are there. have a look on screenshot.

simonfunk’s picture

also confirmed: works with current Dev version, but some display problem in admin area are there. have a look on screenshot.

bojanz’s picture

You need to update your ctools to the latest dev and clear cache. That is unrelated to this issue.

simonfunk’s picture

you're right, thx!

simonfunk’s picture

after update to ne newest dev version, the token doesn't work anymore.

simonfunk’s picture

sry my fault, i used the updater and it updated to the beta version not dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Postponed (maintainer needs more info) » Closed (fixed)