Some of my images are being referenced to the files on my pc and are resulting in broken images. How can I correct this?
Sometimes when a filename variable is used in certain contexts, the entire filepath is displayed online, instead of just the filename.
In other words, instead of:
image.gif
... what actually gets included in the code is:
C:\My Documements\Actinic v8\Sites\Site1\image.gif
To avoid this, replace the variable in the code e.g.:
<actinic:variable name="VariableName"/>
...with the following PHP expression:
<actinic:block php="true">echo basename('<actinic:variable name="VariableName"/>');</actinic:block>
Sometimes when a filename variable is used in certain contexts, the entire filepath is displayed online, instead of just the filename.
In other words, instead of:
image.gif
... what actually gets included in the code is:
C:\My Documements\Actinic v8\Sites\Site1\image.gif
To avoid this, replace the variable in the code e.g.:
<actinic:variable name="VariableName"/>
...with the following PHP expression:
<actinic:block php="true">echo basename('<actinic:variable name="VariableName"/>');</actinic:block>