As i mentioned before i want to change the Link for the "detail" Button. I just want the same result, as i get if i click on a "file view" link, createt in the menu.
So the question is: how can i change the link, to get a new site instead of the overlib if i press the detail button?
After a little research i think i found the responsible code in: components/com_phocadownload/views/category/tmpl/default_files.php
Code: Select all
else if ($this->tmpl['display_detail'] == 2) {
$buttonDOptions = $this->buttond->options;
$detailLink = JRoute::_(PhocaDownloadHelperRoute::getFileRoute($v->id,$this->category[0]->id,$v->alias, $v->categoryalias, 0, 'detail').$this->tmpl['limitstarturl']);
$pdButtonDetails = '<div class="pd-button-details">';
$pdButtonDetails .= '<a class="pd-modal-button" href="'.$detailLink.'" rel="'. $buttonDOptions.'">'. JText::_('COM_PHOCADOWNLOAD_DETAILS').'</a>';
$pdButtonDetails .= '</div>';
}
1: where it says that the link should be opened inside of the overlay?
EDIT: [solved] just renamed the class "pd-modal-button" into "-" or someting non existing. The Javascript won't work then on this button, so it opens on a new page.
Now if i click the button and open on a new site it is not inside the template but on a blank page. This is caused by the "?tmpl=component" part at the end of the link. So
2: how can i strip this part from the link? (?tmpl=component)
And finally:
What do i have to do, if i want to add this as a third option in addition of the two existing options, instead of changing one of them?
First thing is to copy the code above and change the "2" in the first line into "3" (else if ($this->tmpl['display_detail'] == 2))
But where do i have to add this number, so i can set it in the adminpanel to save it in the database?
Thank you for your help.