1
I am using a photo gallery template. Clicking on a photo in the list that is displayed opens a new page perfectly well. But does not create a new page, add to the current page.
I have noticed that the URL has incorporated Itemid = 435
at the end of each link. If I remove this element the page works well again. Any idea how to prevent this from happening?
The code is this:
**<form action="index.php?option=com_igallery&view=category&id=<?php echo $this->category->id; ?>&Itemid=<?php echo $this->Itemid; ?>" method="post" name="ig_menu_pagination">**
<?php
if(count($this->categoryChildren) != 0)
{
?>
<div id="cat_child_wrapper<?php echo $this->uniqueid; ?>" class="cat_child_wrapper">
<?php
$counter = 0;
$columns = $this->profile->columns == 0 ? count($this->categoryChildren) : $this->profile->columns;
while( $counter < count($this->categoryChildren) )
{
for($i=0; $i<$columns; $i++)
{
if( isset($this->categoryChildren[$counter]) )
{
**$row = $this->categoryChildren[$counter];
$link = JRoute::_('index.php?option=com_igallery&view=category&igid='.$row->id.'&Itemid='.$this->Itemid);
?>**
<div class="cat_child" style="width: <?php echo $row->menu_max_width; ?>px;">
**<h3 class="cat_child_h3">
<a href="<?php echo $link; ?>" class="cat_child_a">
<?php echo $row->name; ?>
</a>
</h3>**
i want to remove Itemid = 435 that appears at the end of the link.
– Washington
Then change "$link = Jroute::('index.php? option=com_igallery&view=category&igid='. $Row->id. '&Itemid='. $this->Itemid);" to "$link = Jroute::('index.php? option=com_igallery&view=category&igid='. $Row->id);"
– Arivan Bastos