Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
7 subscribers
Views
1315 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
It seems that when a image (from the document center) is inserted onto a page, i
depstein
over 12 years ago
It seems that when a image (from the document center) is inserted onto a page, it uses a hard coded path pointing to the environment the image is in. Is there any way to have the image use a relative path instead? This way, we can use the image between environments (dev,test, prod)....
OriginalPostID-28122
OriginalPostID-28122
Discussion posts and replies are publicly visible
0
Jed Fonner
Appian Employee
over 12 years ago
When you say "page", do you mean into a Web Content Channel with Dynamic Data? If so, then yes, the fully qualified URL of the image is used. This is actually a browser thing - when editing the channel and adding an image, IE changes the URL to be the fully qualified URL when the markup is added to the Web Content channel.
An alternative is to create a rule that generates an <img> tag, like
="<img src='/suite/doc/"&ri!imgDocId&"' alt='"&ri!altText&"' title='"&ri!altText&"'/>". Then use that rule instead of selecting a document from the Document Center. You'll need a Constant or PV to represent the image document.
I can't remember if you need to enable document inlining for this to work:
forum.appian.com/.../Post-Install_Configurations
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
depstein
over 12 years ago
You are correct. I was referring to the Web Content Channel with Dynamic Data. Thank you Jed. This is very helpful.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel