Forums

Multiple Joomla Templates New Question

elove 24 Jun, 2011
I'm having a similar issue as the one in this post:

http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=17333&p=47973&hilit=joomla+default+template#p47973

Currently I'm using Chrono Connectivity to display a list of results from a Chrono Form and I've added a pagination, search, view, and edit links in my results. I hard coded the item id to display the view and edit links correctly:

<?php
$id = $MyRow->staff_id;
$photo = $MyRow->photo;
$photo = JURI::Base().'components'.DS.'com_chronocontact'.DS.'uploads'.DS.'AddStaff'.DS.$photo;
?>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr<?php if ($i % 2) echo ' style="background-color: #EBEBEB;"';?>>
      <td style="width: 5%;">{staff_id}</td>
      <td style="width: 10%;"><a href='index.php?option=com_chronocontact&chronoformname=ViewStaff&staff_id=<?php echo $id; ?>&Itemid=275'><u>View Details</u></a><br />{edit_record}</td>
      <td style="width: 10%;"><img width=50 height=50 src="<?php echo $photo; ?>"></td>
      <td style="width: 15%;">{last_name}</td>
      <td style="width: 15%;">{first_name}</td>
      <td style="width: 15%;">{job_title}</td>
      <td style="width: 15%;">{pri_phone}</td>
      <td style="width: 15%;">{pri_email}</td>
      <td style="width: 15%;">{recordtime}</td>
    </tr>
  </tbody>
</table>
<?php $i++ ?>


However, when I submit a search form, or change my list display# in the pagination it goes back to the default template. I tried modifying the chronoconnectivity.php and chronoconnectivity.html.php files to hard code an Itemid into the urls but this didn't work. It seems like the problem is when a form is submitted it strips away the Itemid variable in the url to just:
index.php?option=com_chronoconnectivity&connectionname=FormName
as opposed to
index.php?option=com_chronoconnectivity&connectionname=FormName&Itemid=1
.

Am I missing something? Where do I go so that my page template doesn't change or keep the url from being striped away of all my variables?
GreyHead 25 Jun, 2011
Hi elove,

Which version of ChronoForms is this? I though Max had fixed this in the later releases of CFv3??

Bob

You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomal 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla 1.6.
elove 25 Jun, 2011
I'm using ChronoContact 3.1 RC5.5 and ChronoConnectivity 2.0 RC3
GreyHead 26 Jun, 2011
Hi elove,

Please try upgrading to CFv3.2. I've just checked the code and that version contains the code to re-add the ItemId to the form action URL and should keep the template.

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