Viewer URL Question

2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 26, 2010   (RSS)

Re: [aquaman] Viewer URL Question

By Jason - July 26, 2010

Hi,

The '_link' field will just output a relative url (ie. detialPage.php?Page-name-123).

If you're using rewrite rules, however, this can cause some problems. Your best bet would be to not use the '_link' field and create your own link.

For example, if your using the title and num fields for (Page-name and 123) you could do something like this:
(EXAMPLE)

<?php
$queryString = str_replace(" ","-",$record['title'])."-".$record['num'];
$queryString = strtolower($queryString);
?>
<a href="http://www.domainname.com/<?php echo $queryString;?>/">TEXT HERE</a>


You would have to change the names based on what you're using in your .php file and what you have in the database.

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/