Forums: [SOLVED] Detail field as hyperlink? - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[SOLVED] Detail field as hyperlink? hyperlink anchor Rate Topic: -----

#1 User is offline   mike_ceb 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 27-January 10
  • Gender:Male
  • Location:NJ, USA

Posted 08 February 2010 - 10:12 PM

I just downloaded the trial version today - an amazing product - I've been able to do so much so quickly :)

Question - I'd like users to be able to copy links from email or Word documents for example and be taken to specific view record in my app. I can of course do it by copying the big long URL of a specific detail record view page but it would be nicer if I could attach it to a field name in the list page so it has meaningful anchor name that users can simply copy.

I've found the "view as" menu of a field inside the visual editor and can turn a field into hyperlink but can't find if there is a way to attach the dynamic URL of the current record.

Example - the view of an item has URL looks like this...
http://localhost/mya...hp?editid1=Item
I'd like Item to be the anchor name in a link for a field in the list page so if user copies it they would taken to the the longer URL location.
Thanks,
-Mike
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 8092
  • Joined: 03-February 03

Posted 08 February 2010 - 11:11 PM

Mike,

I'm not 100% sure I understand but here it is.

Set 'View as' type of any field to 'Custom' and use the following code:

Quote

$value = "<a href=http://yourwebsite.com/myapp/TABLE_view.php?editid1=" . $data[keycolumn] . ">" . $value . "</a>";


Replace code in bold with actual URL and key column name.
Best regards,
Sergey Kornilov
0

#3 User is offline   mike_ceb 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 27-January 10
  • Gender:Male
  • Location:NJ, USA

Posted 09 February 2010 - 05:22 PM

Yes I want to build the same URL that is exposed in the small magnifying glass icon for viewing an item from a list. It looks like I can construct the parts of the URL, thanks. Is the keycolumn in your example a variable of some kind? Can those be found by looking i the PHP code files.
Thanks,
-Mike
0

#4 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 8092
  • Joined: 03-February 03

Posted 09 February 2010 - 05:29 PM

keycolumn is name of key column i.e. ID.
Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users