Problem: redirect on mobile version of detail multi-listing page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 27, 2014   (RSS)

By Damon - May 27, 2014

Hi Meg,

The _link variable is already set and used on the main part of the site so you need to recreate the detail page link for the mobile version.

So if a URL like this works for the mobile version, the title with the record number on the end:
http://name.com/mobile/article.php?Example-Article-18

this can be recreated with this code:

<?php echo $record['_filename'] ?>-<?php echo $record['num'] ?>

And to add this into a link:

<a href="/mobile/article.php?<?php echo $record['_filename'] ?>-<?php echo $record['num'] ?>"><?php echo $record['title'] ?></a>

Give this a try and let me know if this works for you.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By meg - May 27, 2014

Problem solved. Thank you!