Forums

Problem is with a reload form inluded in an article

jaem15 06 Mar, 2013
Hi everybody.

I have a problem i believed i had resolved but really isnt. I am lost and i need your help one more time. Its an important question for me, and i beg you for your advice.

My english is not fantastic indeed so i try to explain with images that are attached in a pdf document.
[attachment=0]problem.pdf[/attachment]

Problem is with a reload form inluded in an article pointed by an item menu (type external url) that i cant associate to modules.

Thanh you very much
GreyHead 06 Mar, 2013
Hi Jaem,

I understand the problem but I don't know how to solve it except by adding the modules to display with the new menu item.

Bob
jaem15 06 Mar, 2013
Thanks ... but how can do that? It seems it doesnt work in external url menu items ... is there another way to call to a form with a parameter and asigned to a item menu?
GreyHead 06 Mar, 2013
Hi Jaem,

Ah, I didn't know that you can't associate modules with an External URL menu item. It kind of makes sense though.

The other way round might be to pick up the current article ID from the page URL in the Form On Load event and use that somehow to set the parameter you need?

Bob
jaem15 06 Mar, 2013
In this joomla if i add a item menu to a module it runs, of course, but for the same module, same item menu, when i changed it to use external url, in order to be able to put the complete url (with parameter) it doesnt work! Do you understand?

The parameter is not the article id. The parameter is a number. Fix number. The number (a field in the record of the database associates) of the record i want to show in the form. That parameter i add to the article is the problem .. have you seen my images in the first topic?

i dont know if i understand you. I really dont know if you understand my problem ,,,😟 sorry, english is my problem

You say i can give a value to "number" or "token" when event "on form load"? how can i do this? In this version i feel a little lost yet and i use wizard edition

Thank you very much



Please i need a solution.
jaem15 06 Mar, 2013
I think i solved.

I put these lines
<?php
$form->data['token']=1;
?>


In the custom code box before on load event, so i take the parameter of the record i want to update and no parameter in the article or form call is needed.

More test are needed but i think i got it.

Thanks a lot.
GreyHead 07 Mar, 2013
Hi Jaem,

That should work well.

If the number varies with article or with the user then you could 'look it up' from a table or an array.

Bob
This topic is locked and no more replies can be posted.