2

I have added a new website types (Administer> Customize Data and Screens> Dropdown Options> Website Types) called 'Portfolio' and want to add it on my CiviMail Message Templates using a token. I have tried to use the {contact.custom_id} but it doesn't work. I'm not sure if i'm doing it right but I follow the instruction in Token Help w/c is to get the ID in edit link (Please see the screenshots below):

enter image description here

so my custom code would be {contact.custom_844} right?

PS. I'm using it on Organization. CiviCRM 4.7.14 on Wordpress 4.7.2

Thanks!

  • 1
    Welcome to StackExchange! It would be helpful if you could edit your post to include the version of CiviCRM and WordPress that you are using as this can sometimes affect the answers given. – William Mortada Jan 30 '17 at 12:57
2

You are adding a new option for an existing field, rather than creating a new custom field. The existing website token will show the URL of your new website type: {contact.url} But if you want a token to show the website type (to output 'Portfolio'), you would need to create one

  • Thanks Aidan! I'm not a good programmer. any code to follow? or to edit? – RaffyM Jan 30 '17 at 12:14
  • There's some code in the blog post I linked to previously. What output do you want your token to produce? – Aidan Jan 30 '17 at 16:10
  • Yes, but the code seems too hard for me to follow. It will be good if there a easier guide. I just want to create a token that will output the Portfolio link. – RaffyM Jan 31 '17 at 0:10
  • If you want the link, have you tried {contact.url} ? – Aidan Jan 31 '17 at 0:18
  • Hey Aidan. Yes, but it ouputs the url in Work Type. – RaffyM Jan 31 '17 at 0:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.