Download  |  Search  |  Log in  |  FAQ  |  Memberlist  |  Online  |  TYPO3.org Developer Resource
Home » TypoScript » Templates
Post new topic   Reply to topic Page 1 of 1 [1 Post] Need Template resource path + name constant in cObject TEXT
Author Message
chris_de_en



Joined: 29 Jan 2007
Posts: 1

PostPosted: 29 Jan 2007 - 4:48 pm    Post subject:  Need Template resource path + name constant in cObject TEXT
Subject description: How to do?
Reply with quote

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
Line:  Code:
1
2
3
headerImage=header_img*.gif
 Show complete code


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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Home » TypoScript » Templates
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum