fensterbaby,
I’m afraid I don’t know how to construct the path. Tried but it ain’t working.
<link rel="stylesheet" type="text/css" media="all" href="{stylesheet=template_group/template_name}" />
Replace the path with your won template group and template name
I’m wanting a fieldname in place of the filename.
more like..
background-image:url(’{myFieldName}’);
You will need the exp:channel:entry tags around this for it to work.
It wouldn’t be the best way of doing things though
A better way to work would be to make a load of predetermined styles with your different background pics
Then dynamically change the class in your template. For example using the entry_id here. But you would use something else depending on what or how frequently you want to use the background image. This gives you great flexibility
{exp:channel:entries limit="1"}
<div class="test{entry_id}"></div>
{/exp:channel:entries}
div.test12 {
width:200px;
height:20px;
background-color:#33FF00;
background-image:url('/images/background.jpg');
}