Combine Filname Fields for descriptive URL
3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 14, 2011 (RSS)
By darrylo - February 12, 2011
I'm using "firstname" and "Lastname" fields instead of "fullname" so I can have a search and order by last name. But I need to have both the first and lastname in the page URL. It seems the filename field only uses the first file name listed. How can I combine them for the URL?
example:
agent.php?firstname-lastname-1
example:
agent.php?firstname-lastname-1
Darryl
http://darrylo.com
http://darrylo.com
Re: [darrylo] Combine Filname Fields for descriptive URL
By Jason - February 14, 2011
Hi Darryl,
You can construct these URL's manually to use more than one field.
For example:
You can combine as many fields as you want in this way, so long as num is the last one.
Hope this helps
You can construct these URL's manually to use more than one field.
For example:
<a href = "agent.php?<?php echo $record['firstname'];?>-<?php echo $record['lastname'];?>-<?php echo $record['num'];?>" >LINK</a>
You can combine as many fields as you want in this way, so long as num is the last one.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Combine Filname Fields for descriptive URL
By darrylo - February 14, 2011
Beautiful thank you!
Darryl
http://darrylo.com
http://darrylo.com