Drupal 7: dynamic elements/tokens (logged in user's name) in basic page -


i'm looking simple , clean way create basic page shows this:

hello $user, id: $userid

$user , $userid should show respective values. want achieve drupal 7 without having to:

  • enable php filter
  • hack drupal core files (like http://drupal.org/node/1073886 do)
  • use unstable modules (if possible)
  • create new modules/code (if possible)

thanks help!

you creating view using views module:

  1. set logged in user argument.
  2. then can add user name , user id fields select not display them.
  3. add global text can insert user id , user name values in text using placeholders.

Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -