Re: Migrating a Joomla 1.0 module to 2.5

60 views
Skip to first unread message

brian teeman

unread,
Aug 15, 2012, 4:27:34 PM8/15/12
to joomla-de...@googlegroups.com
Itemid refers to the unique id of the menu item its nothing to do with the instance of the module

On Wednesday, 15 August 2012 18:59:12 UTC+1, Miłek wrote:
Hi all,

I'm trying to migrate a simple module that I used to display a dictionary on my website. The problem is that in Joomla 2.5, submission of the form causes it to display a new blank page instead of modifying the old page content by writing to it (like it did before here: http://marcinmilkowski.pl/en/Slowniki/Slownik-ortograficzny.html).

Now, my form is like this:


<form id="keybform" method="get" action="<?php echo JRoute::_($url); ?>" id="mod_spell">
<!-- -->
 <input type="hidden" name="option" value="com_content"/>
 <input type="hidden" name="view" value="article"/>
 <input type="hidden" name="id" value="22"/>
 <input type="hidden" name="Itemid" value="33"/>
 

(The values for id and Itemid are hard-coded as this is the only instance of this module). Now, when the form gets submitted, the Joomla page is not rendered at all. How should I change the code above to make my module to handle the request and the rest of Joomla to draw the page?

Thanks in advance for tips, Marcin

Miłek

unread,
Aug 16, 2012, 5:01:02 AM8/16/12
to joomla-de...@googlegroups.com
On Wednesday, 15 August 2012 22:27:34 UTC+2, brian teeman wrote:
Itemid refers to the unique id of the menu item its nothing to do with the instance of the module

Right, but com_content redirects to my php code when it gets the Itemid etc. Maybe it's irrelevant, but skipping it doesn't really affect the problem which is that GET request is routed by com_content only to my module, which is the only thing that displays.

M.

Miłek

unread,
Aug 16, 2012, 1:47:56 PM8/16/12
to joomla-de...@googlegroups.com
Hi all,

the forms and requests were fine, it was a change in the database code that stopped the module from working. Please disregard this question.

Regards,
Marcin
Reply all
Reply to author
Forward
0 new messages