PDA

View Full Version : Optioncode help


TheSupportForum
10-20-2012, 11:58 AM
I Guys

i need support in knowing the option code for vboptions

basically i want to show images from a specific folder
so that when you select the dropdown it displays the image

Christos Teriakis
10-20-2012, 01:52 PM
I Guys

i need support in knowing the option code for vboptions

basically i want to show images from a specific folder
so that when you select the dropdown it displays the image

Can you be more specific??... eg let's say that there is a directory with images. What do you want to do? To have a dynamic droplist selection having as options the filenames?

Christos

nhawk
10-20-2012, 03:51 PM
If you just need the option value..

In PHP...

$option = vB::getDatastore()->getOption('optionname');


In Templates it's still..

{vb:raw vboptions.optionname}

BirdOPrey5
10-22-2012, 12:01 AM
You just need to make sure the option you are trying to get the value of is set to be "public." That is a new option each option has if you edit it.