Sie sind nicht angemeldet.

  • »spacerywitualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

1

Dienstag, 16. Februar 2010, 11:00

problem with dynamic loading

I want with this code to control with loading to textplugin data:

Quellcode

1
2
3
4
<action name="add_dynamic_datahtml">
set(data[data_%1].content, '<include url="%1.html" />');
set(plugin[text].html,data:data_%1);
</action>


and i have this...



*confused*

I want it to load right file through steering with parameters*:

Quellcode

1
add_dynamic_datahtml(info);


I need something like this:

Quellcode

1
<data name="data_info"><include url="info.html"></data>


best regards
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

2

Dienstag, 16. Februar 2010, 15:11

i dont think you need %1.html

%1 is the vaiable. the .html would be part of what you declare it wouldnt it? %1 = "panos/images/page1.html"

just guessing.

  • »spacerywitualne« ist der Autor dieses Themas

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

3

Dienstag, 16. Februar 2010, 16:13

I need because I create menu which creates dynamically < date txt ... includes...> and right html read in.

Quellcode

1
2
3
4
5
6
<action name="add_menu">
add_dynamic_datahtml(info);
add_dynamic_datahtml(contact);
add_dynamic_datahtml(help);
...
</action>


*squint*

I want to create automatically:

Quellcode

1
2
3
<data name="data_info"><include url="info.html"></data>
<data name="data_info"><include url="contact.html"></data>
<data name="data_info"><include url="help.html"></data>


best regards
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

Ähnliche Themen