![]() |
How can I use {vb:raw vboptions.xxx} within CSS template??
Hello everyone, I currently have a slideshow to which I created a couple of options in the admin panel for the admin to be able to control it's width and height easily from the product options, instead of having to go edit style-vars.
The slideshow's width and height are controlled by CSS attributes. I created a custom CSS template and inlciuded it within my page with the slideshow making a call to said template. My problem is apparently it's not reading the CSS correctly using {vb:raw vboptions.xxx} as a replacement for actual values. Here's what I am trying to do: HTML Code:
#slide { HTML Code:
#slide { Note: I was unsure whether to place this thread here or in Design so if any mod wants to move it by all means. Sorry for the trouble in advance if you do. :) |
I used options in my css template for one of my modifications and it worked just fine. What "Data Validation Type" did you select for your option? Is it an Integer?
|
Quote:
Edited: Doesn't..I checked :) |
{vb:raw vboptions.xxx} is working well. try adding ur css code to additional.css template and see if that works
|
Quote:
|
Are you adding it to a template that is called xxxx.css? I created my own .css template and I use the settings in there.
|
Quote:
--------------- Added [DATE]1312739772[/DATE] at [TIME]1312739772[/TIME] --------------- And I am using this to link it in the template: HTML Code:
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}COTW_Adittional.css" /> |
i just created a new css template and its working well..
where you using this code ? Code:
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}COTW_Adittional.css" /> |
Quote:
|
Quote:
i placed my code in headinclude template |
All times are GMT. The time now is 11:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|