Use different field instead of the gcb=id on view and edit action link

fasenderos 01 Mar, 2015
Hello,
is it possible to use a different field instead of the id on view and edit action?? Cause I don't want to show how many record are stored in my db

In my table #__items there are these columns: id | unique_id | item_id |title etc
For ex:
id: 30 -> Autoincrement
unique_id: 6c7732e02b84196675b5bd10fe4e7ac75a3d40f1 -> the one generated by chronoforms
item_id: 40434962051 -> a 11-digit random and unique number

So now the view link is:
index.php?option=com_chronoconnectivity5&cont=lists&ccname=items&act=view&gcb=30

The edit link is:
index.php?option=com_chronoconnectivity5&cont=lists&ccname=items&act=edit&gcb=30


I would like something like this:

index.php?option=com_chronoconnectivity5&cont=lists&ccname=items&act=view&item_id=40434962051
index.php?option=com_chronoconnectivity5&cont=lists&ccname=items&act=edit&item_id=40434962051

Thanks in advance
GreyHead 01 Mar, 2015
Hi fasenderos,

I'm not very familiar with CCv5 - I think that you can do this by building custom links. I'm not sure if you can set up CC to do this automatically.

Bob
fasenderos 01 Mar, 2015

I think that you can do this by building custom links


If you mean something like this:
<a href="<?php echo JURI::base() ?>index.php?option=<?php echo $this->data['option'] ?>&cont=<?php echo $this->data['cont'] ?>&ccname=<?php echo $this->data['ccname'] ?>&act=edit&item_id=<?php echo $this->data['item_id'] ?>">Edit</a>

That create a link like this:
index.php?option=com_chronoconnectivity5&cont=lists&ccname=items&act=edit&item_id=40434962051

But of course at that link there is nothing to edit
fasenderos 16 Mar, 2015
Sorry for the up.
If at the moment isn't possible, I would like to suggest this feature for the new CC version
Thanks
This topic is locked and no more replies can be posted.