Author Topic: Token confusion  (Read 2886 times)

pmcotter

  • Newbie
  • *
  • Posts: 15
    • View Profile
Token confusion
« on: May 17, 2012, 09:37:23 AM »
My objective is to put a static image in a cell that I may easily change, for example, the picture of last week's winner on a background.   This is similar to the "Chips" token.  If the pictures were all the same dimension, it would be easy enough but I can't find a way to size the pic as it's done with the chips token. The result is that the image ends up covering the words and other images in the background.  I'm obviously not good with html.

I have tried creating an HTML token, saving an image as an html file with IE9, then placing that token in the contents of a blank cell within a column.  I must manually type my created token name into the contents section since the token I created will not be listed when using the "Insert token" button.  The result is a blue bar across the screen with a red X where I assume it is attempting to render the image.  I tried <mytoken height="768" width="1024"> with the same result.

My only workaround has been to resize the photos with an image editor.

It's obviously a little bit of fluff but it would be nice to work this out.

Thanks for any help!

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: Token confusion
« Reply #1 on: May 17, 2012, 10:51:24 AM »
You can't create your own tokens.  There has to be code within the software to support it.

If you're just trying to place an image, it should be easy enough just using:

<img src="path-to-your-image-file" border=0>

* Of course, you need to enter the actual path to your image file for the blue text above.  An easy way to do this is to find the image using Windows Explorer, then right-click on the image while holding down the Shift key, then select Copy as path.  Then just insert the copied path.

You would then just have to change the path-to-your-image-file each time you want to change the image.  In order to size the image appropriately, the <img> element takes height and width attributes:

<img src="path-to-your-image-file" height=300 width=200 border=0>

If you don't specify height or width, the image will appear at full size.  If you specify both height and width, the image will be scaled to that size (possibly changing the image proportions).  If you only specify one of them (height OR width), the image will be proportionally scaled to that size.

pmcotter

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Token confusion
« Reply #2 on: June 06, 2012, 11:02:41 AM »
Thanks, Corey!

pmcotter

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Token confusion - Still confused
« Reply #3 on: June 06, 2012, 11:29:16 AM »
Still confused ???
I attempted to use a blank cell on two different screens and insert different images on each screen.  When I insert an image in the blank cell of the first screen, the second screen inherits the blank cell properties from the first and vice versa as if the blank cell is a global property.  I'm not sure how to make this work.  Should I create a new Global Property set?

I'm also confused why there is an option for new tokens in the "Layout Tokens" Controls if you can't create your own tokens.

Thanks again.
« Last Edit: June 06, 2012, 11:32:29 AM by pmcotter »

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Token confusion
« Reply #4 on: June 06, 2012, 07:20:34 PM »
When you put the "blank cell" into one layout, you're basically putting in a copy of the cell. If you're looking to have two different pictures in a blank cell, what I would suggest is to copy the "Blank Cell" and call it "Blank Cell 2" so that you can have the two different pictures.
My cowboys shot down your rockets
---
If you send a request to me please send that you got me from here w/your TD name to confirm. Thanks!

pmcotter

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Token confusion
« Reply #5 on: June 08, 2012, 02:18:04 PM »
Easy enough.  Thanks again!

Magic_fubu

  • Hero Member
  • *****
  • Posts: 1035
    • View Profile
Re: Token confusion
« Reply #6 on: June 08, 2012, 07:45:23 PM »
Any time! We're all here to help and get help  :)
My cowboys shot down your rockets
---
If you send a request to me please send that you got me from here w/your TD name to confirm. Thanks!