Page 1 of 1

question about extension builder

Posted: Mon Mar 05, 2012 7:08 pm
by [RZ]
i need to display (live rendering) and/or publish an image but from a predefined ones.

if i set a property where the user can enter the filename it is not a problem:
<img src="$image$" border="0">

but what i need is that the user select from a list of predefined ones and no others, let's say in this way:
<img src="image$number$.png" border="0">

how can accomplish this?
thanks in advance.

Re: question about extension builder

Posted: Tue Mar 06, 2012 4:25 am
by gp2727
You can use the "Options" type and if your just using numbers for image selections, you can select "Numeric" and set your range if in numerical order.

Re: question about extension builder

Posted: Tue Mar 06, 2012 7:14 am
by [RZ]
sorry, but you didn't understand my question.
the image is not rendered if i do what you say.

i ask the same question again: how i can render an image in live rendering preview from a "list of available images" only?

i need to display (live rendering) and/or publish an image but from a predefined ones.

if i set a property where the user can enter the filename it is not a problem:
<img src="$image$" border="0">

but what i need is that the user select from a list of predefined ones and no others, let's say in this way:
<img src="image$number$.png" border="0">

Re: question about extension builder

Posted: Tue Mar 06, 2012 7:56 am
by Pablo
I'm sorry I don't think what you are asking is possible. Unless you load the images from a server and use the actual file names as an option.

Re: question about extension builder

Posted: Tue Mar 06, 2012 8:01 am
by [RZ]
thanks for your reply.
yes, currently i didn't found anything else yet.
i thought about what you say as a last resource.
may be a suggestion for a future eb update/upgrade?

Re: question about extension builder

Posted: Tue Mar 06, 2012 8:29 am
by Pablo
may be a suggestion for a future eb update/upgrade?
What should it do?
What would be your input (as developer) and what code should it result in?

Re: question about extension builder

Posted: Tue Mar 06, 2012 10:13 am
by gp2727
support wrote:
may be a suggestion for a future eb update/upgrade?
What should it do?
What would be your input (as developer) and what code should it result in?
Reference files internally within the extension. I believe files included in the extension itself are just pointers until previewed or published. They have no reference value to the Web Builder
workspace for display purposes. But you can preview in a browser or publish the extension and it will work.
So would it be possible to have a unique directory in the Extension Builder we could reference for display purposes or is this a pipe dream?

Re: question about extension builder

Posted: Tue Mar 06, 2012 10:36 am
by [RZ]
thanks for the inputs.
i'm planning to make an extension later today (that i'm already using it but manually coded).
it will show you an example of what as developer need.
i live render some images placed on a server to workaround the limitation of showing predefined images locally.
when it's ready, i will post it in the 'Share self-made extensions with other users of WYSIWYG Web Builder' section.
regards and thanks again.

Re: question about extension builder

Posted: Tue Mar 06, 2012 1:32 pm
by [RZ]
here is an extension that explains what i initially needed:
viewtopic.php?f=42&t=46103
regards.