By Guest on Wednesday, 22 March 2017
Replies 1
Likes 0
Views 1K
Votes 0
Hello,

We need to accept the creation of multiple location with same titles.
We will not use location sharing and each users will create his own location.

I see this code wich add "(Copy)" to the title if it exist:

file administrator/components/com_jevlocations/tables/location.php
function Check
if ($xid && $xid != intval($this->loc_id)) {
$this->title = $this->title. " (Copy)";
if(!empty($this->alias))
{
$this->alias = $this->alias."-copy";
}
}

My question is can i remove this test to allow multiple location with same title without having side effects ?

Cordialy,
Hello,

You can allow multiple location titles but you need to set the alias differently. So when you create a new location set the alias to say -1 or -2 and so on.

Many thanks
Tony
·
Wednesday, 22 March 2017 22:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post