Helpful Information
 
 
Category: vB5 Programming Discussions
Optioncode help

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

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

If you just need the option value..

In PHP...

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


In Templates it's still..

{vb:raw vboptions.optionname}

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.










privacy (GDPR)