Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: sumondey187873 on 27 July 2012, 13:13:10

Title: Link Open in a new window.
Post by: sumondey187873 on 27 July 2012, 13:13:10
Book Link open in same window(External url).
But I want to Book in a new window .
How to change Link Normal to Do-follow .
Title: Re: Link Open in a new window.
Post by: federica on 29 July 2012, 17:13:17
Hi sumondey187873,
which version of Abook are you using?
Title: Re: Link Open in a new window.
Post by: sumondey187873 on 29 July 2012, 18:42:35
Alexandria Book >com_abook_2_0_3
Joomla >2.6
Title: Re: Link Open in a new window.
Post by: federica on 29 July 2012, 20:01:12
You can modify <your_site>/components/com_abook/views/book/tmpl/default.php row 134

Add
target="_blank" inside tag <a href...

eg:
<a target="_blank" href...
Title: Re: Link Open in a new window.
Post by: sumondey187873 on 03 August 2012, 22:28:06
I don't understand your comment. help me please !
I open default.php row 134

I see

<label><?php echo JText::_('COM_ABOOK_LINK');?>: </label><a href="<?php echo $this->book->url;?>"><img src="/components/com_abook/assets/images/link/<?php echo $this->params->get('linkimage');?>" alt="<?php echo JText::_('COM_ABOOK_LINK');?>" /> <?php echo $this->book->url_label;?></a>


know what should I do?
Title: Re: Link Open in a new window.
Post by: federica on 05 August 2012, 18:52:13
Hi sumondey187873,
You need to add the words written in red.
<label><?php echo JText::_('COM_ABOOK_LINK');?>: </label><a target="_blank" href="<?php echo $this->book->url;?>"><img src="/components/com_abook/assets/images/link/<?php echo $this->params->get('linkimage');?>" alt="<?php echo JText::_('COM_ABOOK_LINK');?>" /> <?php echo $this->book->url_label;?></a>
Title: Re: Link Open in a new window.
Post by: vicky on 13 September 2012, 10:18:54
hi,

i have same problem
i modified <your_site>/components/com_abook/views/book/tmpl/default.php but "read only" is coming

i have Alexandria Book >com_abook_2_0_3 version and joomla version is 1.6

can you please reply
Title: Re: Link Open in a new window.
Post by: federica on 13 September 2012, 11:50:46
Hi vicky,
if the file is "read only" is not a problem related to Abook. You have to change the state of your file to "read write" then modify it.