Jump to content

Help to converting Python code to PHP (Plone template to Joomla something)


zack509

Recommended Posts

Hello to everyone. Is my first post here. I have tryed to find the solution by myself, but I don't know programmation languages (not Python and not PHP).

 

I write here hoping someone can help me to find a solution.

 

I have one function working on PLONE, but I want to have something similar in JOOMLA.

 

The objective is to have inside my site an external form splitted in different pages, without showing the external url.

 

Example:

http://external.site/form.asp?valueX=10&valueY=20

must become

http://my.joomla.site/registration-article?valueX=10&valueY=128

 

This work fine in PLONE (ZOPE, Python) with this trick in a "page Template" called like "registration-article".

 

<div metal:fill-slot="main">

    <tal:main-macro metal:define-macro="main">

<IFRAME border=0 marginWidth=0 marginHeight=0

tal:define="valueX context/REQUEST/valueX|string:555;

            valueY context/REQUEST/valueY|string:333"

tal:attributes="src python:'http://external.site/form.asp?valueX='+str(valueX)+'&valueY='+str(valueY)"

src="" frameBorder=0 width=512 height=1500 scrolling=no></IFRAME>

  </tal:main-macro>

</div>

 

In the second line the values 555 and 333 are not important because are replaced

 

With this trick I can use an address like "registration-article?valueX=10&valueY=128" to obtain automatically a correct page like "http://my.plone.site/registration-article?valueX=10&valueY=128" that automatically include the iframe with the external url "http://external.site/form.asp?valueX=10&valueY=20"

 

I must use the "iframe" becouse the external form are splitted in different page and because I can't edit the external form.

 

NOW my question is: can I obtain something similar with HTML, Javascript or PHP?

 

I can imagine that this code work with Plone, based on Python, but obviously don't work on Joomla, based on PHP.

 

If anyone understood my english deserves a prize :-)

if anyone understood what I need and can help me deserves a kiss (I'm joking!!!!) :-)

 

Thank you

 

Zack

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.