chris_de_en
Joined: 29 Jan 2007 Posts: 1
|
Posted: 29 Jan 2007 - 4:48 pm Post subject:
Need Template resource path + name constant in cObject TEXT
Subject description: How to do? |
|
|
Hi,
[Newb alert]
i've got the following problem:
My output html code need a <style> area in the <head> area. This maybe could be look like this:
| Line: |
Code: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| |
page.headerData.10 = TEXT
page.headerData.10.value (
<style type="text/css">
<!--
div#headerimage {
height: 95px;
background: #c6d3d3 url("") no-repeat;
}
-->
</style>
)
|
|
Show complete code
|
I configured the Constant Editor by something like this:
| Line: |
Code: |
1 2 3 4
| |
# cat=basic/file/a, type=file [*.gif], desc=...
headerImage=
|
|
Show complete code
|
Next step was to upload a *.gif file in the template resources with the Constant Editor. Constant Editor adds the headerImage constant to
And here's my question:
How could I insert the full qualified resource path in the CSS property like this (could it be in the cObject TEXT like in top of my comments?):
| Line: |
Code: |
1 2 3
| |
'url("[resource path off this template (/upload/tf/)]+[{$headerImage}]")
|
|
Show complete code
|
Thanks in advance.
Chris |
|