Good morning to all!
Hope somebody could help me on this: I'm building a site in Joomla! 1.5.23, CC V2 RC3, CF V3.2.0, CF Plugin V3.1 RC5. The main menu module is NOT set to all views (should i assign the main menu to all the views the problem is gone). One menu voice links to a CC page linked to a db table which displays a dropdown list of one field (building names). After selecting from the list, a submit button displays the whole record related to that field just underneath in the same page; it works fine but the main menu disappears. This is the url before the submit (main menu voice linked to cc): http://127.0.0.1/SPMN/index.php?option=com_chronoconnectivity&Itemid=342 and this is the url after the submit: http://127.0.0.1/SPMN/index.php?option=com_chronoconnectivity&connectionname=Territorio_Denom where "Territorio_Denom" is the name of the cc page. I think the problem is that the result page does not generate and itemid in the url thus the main menu doesn't know it needs to display. I was wondering if there is a way to assign an itemid to the result cc page with a fixed itemid as if it was a joomla article so to assign the main menu to it thru an extension called Advanced Module Manager which assigns modules to articles. Or maybe could the results be displayed in a joomla article? Any suggestions are greatly appreciated. Many many thanks. Here's my code:
WHERE SQL
HEADER
BODY
Hope somebody could help me on this: I'm building a site in Joomla! 1.5.23, CC V2 RC3, CF V3.2.0, CF Plugin V3.1 RC5. The main menu module is NOT set to all views (should i assign the main menu to all the views the problem is gone). One menu voice links to a CC page linked to a db table which displays a dropdown list of one field (building names). After selecting from the list, a submit button displays the whole record related to that field just underneath in the same page; it works fine but the main menu disappears. This is the url before the submit (main menu voice linked to cc): http://127.0.0.1/SPMN/index.php?option=com_chronoconnectivity&Itemid=342 and this is the url after the submit: http://127.0.0.1/SPMN/index.php?option=com_chronoconnectivity&connectionname=Territorio_Denom where "Territorio_Denom" is the name of the cc page. I think the problem is that the result page does not generate and itemid in the url thus the main menu doesn't know it needs to display. I was wondering if there is a way to assign an itemid to the result cc page with a fixed itemid as if it was a joomla article so to assign the main menu to it thru an extension called Advanced Module Manager which assigns modules to articles. Or maybe could the results be displayed in a joomla article? Any suggestions are greatly appreciated. Many many thanks. Here's my code:
WHERE SQL
<?php
$Denominazione = JRequest::getInt('Denominazione', '99999', 'post');
if ( $Denominazione) {
echo " WHERE `ID` = '$Denominazione' ";
}
?>
HEADER
<div class="form_item">
<div> </div>
</div>
<div class="form_item">
<div>
<label style="width: 150px;">Seleziona un edificio dalla lista: </label>
<select id="Denominazione" size="1" title="seleziona" name="Denominazione">
<option value="1">...</option>
<?php
$Denominazione = JRequest::getInt('Denominazione', 0, 'post');
$db =& JFactory::getDBO();
$query = "
SELECT `ID`, `Denominazione`
FROM `jos_spmn_territorio` ORDER BY `Denominazione` ;
";
$db->setQuery($query);
$data = $db->loadObjectList();
foreach ( $data as $d ) {
$select = '';
if ( $d->ID == $Denominazione ) {
$select = "selected='selected'";
}
echo '<option value="'.$d->ID.'" '.$select.' >'.$d->Denominazione.'</option>';
}
?>
</select>
<input value="visualizza scheda" name="button" type="submit" />
</div>
<div> </div>
</div>
BODY
<p><table border="0" cellpadding="0" cellspacing="0" width="750" id="table10" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td align="left" width="717" valign="top" colspan="3">
<font face="Trebuchet MS" color="#000080">{Denominazione}</font></td>
</tr>
<tr>
<td align="left" width="717" valign="top" colspan="3">
</td>
</tr>
<tr>
<td align="center" width="300" valign="top">
<table border="0" cellpadding="0" cellspacing="0" id="table13">
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="0" bordercolor="#111111" id="table14" cellpadding="0">
<tr>
<td width="100%" align="center"><img border="0" src="{Immagine01}"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td align="left" valign="top" width="20">
<p> </td>
<td align="left" valign="top" width="397">
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table12">
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Tipologia:</font><font face="Verdana" size="2" color="#000080"> {Tipologia}
</font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Compl.
appartenenza:</font><font face="Verdana" size="1" color="#000080"> </font><font face="Verdana" size="2" color="#000080">{Compl_Appartenenza}</font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">
Altra denominazione:</font><font face="Verdana" size="2" color="#000080"> {Altra_Denominazione}</font></td>
</tr>
<tr>
<td height="15" colspan="2">
<font size="1" color="#F1F1F1">
{ID}
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Indirizzo:</font><font face="Verdana" size="1" color="#000080"> </font><font face="Verdana" size="2" color="#000080">{Indirizzo}</font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Quartiere:</font><font face="Verdana" size="2"> <font color="#000080">{Quartiere}</font></font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">
Utilizzo:</font><font face="Verdana" size="1" color="#000080"> </font><font face="Verdana" size="2" color="#000080">{Utilizzo}</font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Resp. proTempore:</font><font face="Verdana" size="1" color="#000080"> </font><font face="Verdana" size="2" color="#000080">{Resp_proTempore}</font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">
Telefono: </font><font face="Verdana" size="2" color="#000080">{Telefono}</font></td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Stato:</font><font face="Verdana" size="1" color="#000080"> </font><font face="Verdana" size="2" color="#000080">{Stato}</font></td>
</tr>
<tr>
<td colspan="2"><font face="Verdana" size="1" color="#808080">Orari:</font><font face="Verdana" size="1" color="#000080"> </font><font face="Verdana" size="2" color="#000080">{Orari}</font></td>
</tr>
<tr>
<td height="10" colspan="2">
</td>
</tr>
<tr>
<td width="24%"><font face="Verdana" size="1" color="#808080">Curatore SPMN: </font>
</td>
<td width="76%">
<font face="Verdana" size="2" color="#000080">
{Curatore}</font></td>
</tr>
<tr>
<td width="24%">
</td>
<td width="76%"><font face="Verdana" size="2" color="#000080">
{Cur_Tel}</font></td>
</tr>
<tr>
<td width="24%">
</td>
<td width="76%"><font face="Verdana" size="2" color="#000080">
{Cur_Email}</font></td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2">
<font face="Verdana" size="1" color="#808080">Cenni storici:</font><font face="Verdana" size="1" color="#000080"> </font></td>
</tr>
<tr>
<td colspan="2">
<font face="Verdana" size="1">
{Cenni_Storici}
</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" colspan="3" height="8">
</td>
</tr>
</table>
</p>
Hi gabri,
Please try this.
Create a new menu and call it 'hidden'. Add an item to the hidden menu that links to the CC listing. Add then new menu item to the module for the main menu.
Bob
Please try this.
Create a new menu and call it 'hidden'. Add an item to the hidden menu that links to the CC listing. Add then new menu item to the module for the main menu.
Bob
Thank you Greyhead for you time to help me. The menu item links to the cc page listings and when the page opens the main menu is still there. The problem occurs after I select from the listing and press the submit button (which is in the same page underneath the listing). The listing page opens and shows the record but the menu disappears only at that point not before. I hope i'm explaining myself, but just to be clearer (english is not my language), the menu does not disappear when i open the cc listing page, but only after the submit button and the showing results.
Thank you again.
Hugs from Italy.
Thank you again.
Hugs from Italy.
Dear Greyhead, I need to be more specific: it looks like cc generates a new url when it displays the results:
This is the url when displaying the cc listing page:
index.php?option=com_chronoconnectivity&Itemid=342
this is the url when displaying the results:
index.php?option=com_chronoconnectivity&connectionname=Territorio_Denom
This is the url when displaying the cc listing page:
index.php?option=com_chronoconnectivity&Itemid=342
this is the url when displaying the results:
index.php?option=com_chronoconnectivity&connectionname=Territorio_Denom
Hi all,
I solved the problem installing an extension called Advanced Module Manager which displays modules on child pages of a component that aren't in a menu.
Hope this helps others.
Thanks for your time and help.
I solved the problem installing an extension called Advanced Module Manager which displays modules on child pages of a component that aren't in a menu.
Hope this helps others.
Thanks for your time and help.
This topic is locked and no more replies can be posted.