Problem with detail preview page
3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 29, 2018 (RSS)
By hiroko - May 29, 2018
Hi,
I have a detail page which loads information from many different tables and categories.
Since the "num" becomes ambiguous (I think the "num" on the viewer refers to the category num I use for the navigation menu.), I manually set the permalink for each record.
The thing is, I am having problem with the "Preview" button.
Since the original url of the detail page is like this:
artistDetail.php?this_artist=9
the preview would not work properly, showing "no record found".
So, I set up a new button on the editor like this using the "separator" field, which I thought might be easier to deal with this problem.
<div class='col-sm-2'>
</div>
<div class='col-sm-10'>
<a href="/artistDetailPreview.php?this_artist=" target="_blank" ><div class="btn btn-primary">Use this preview button</div></a>
<br /><br />
</div>
but I need to get the record number at the end.
Is there a way to get the record num from the editor and post it in the url?
Thank you in advance,
Hiroko
By leo - May 29, 2018
Hi,
You can do that by putting <?php echo $_REQUEST['num'] ?> in the seperator content.
Let me know if you have any questions!
Thanks,
interactivetools.com