Rank: Advanced Member
Groups: Registered
Joined: 6/23/2015(UTC) Posts: 59  Thanks: 5 times
|
How to change image sources dynamically via XPath. Any advice? Thanks
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 483
Was thanked: 81 time(s) in 81 post(s)
|
Like any other property, which can be entered either directly or via XPath, simply click the XPath button in the toolbar above bbv attached the following image(s):
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/23/2015(UTC) Posts: 59  Thanks: 5 times
|
Sure, but is it sufficient to change the source name? Do I have to import (embed) such images anyway? And which format should I use for the source name? Thanks
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 483
Was thanked: 81 time(s) in 81 post(s)
|
I believe everything is covered in documentation. Is something unclear?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/23/2015(UTC) Posts: 59  Thanks: 5 times
|
It's unclear how to change source path of embedded images. I want to exchange images (used as icons) dynamically. Those images should be "embedded" within design file. Using XPath to determine or change image source the "embedded" option will be disabled automatically. How to change source path of embedded images? Thanks
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 483
Was thanked: 81 time(s) in 81 post(s)
|
This is correct: to embed image within design, MobileTogether Designer must know which image to embed, therefore XPath won't work. I guess the purpose of image embedding was to eliminate load times? You can embed multiple images in a single XML file (you will need XMLSpy for this, which will pack them for you as base64). By setting Image Source Type to "base64" you can then access them directly from XML nodes. Attached is small sample to illustrate
|
 1 user thanked bbv for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/23/2015(UTC) Posts: 59  Thanks: 5 times
|
Thanks for clarification. Yes, the purpose is to make images available without accessing MT server first.
|
|
|
|
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.