javascript alerts
3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 17, 2011 (RSS)
Why am I getting this javascript alert message on this page?
I have made so many 'detail' pages on this site, and I usually don't put a Viewer URL in on the section editor page when I am only using the Single record view.
javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls')
The url is http://www.strafford.org/energy.php
You can compare it with this page.. which is built on the same template ( I think!) and with similar content, shows no alerts. No viewer URL was specified in this section either.
http://www.strafford.org/transportation/srts.php
thanks in advance for your prompt answer! Julia
I have made so many 'detail' pages on this site, and I usually don't put a Viewer URL in on the section editor page when I am only using the Single record view.
javascript:alert('Set Detail Page Url for this section in: Admin > Section Editors > Viewer Urls')
The url is http://www.strafford.org/energy.php
You can compare it with this page.. which is built on the same template ( I think!) and with similar content, shows no alerts. No viewer URL was specified in this section either.
http://www.strafford.org/transportation/srts.php
thanks in advance for your prompt answer! Julia
Re: [macwebster] javascript alerts
By Jason - October 17, 2011
Hi,
This happens when you output the psuedo field "_link" when you haven't set a detail page url for that section.
If you need to use the _link pseudo field, edit your selection and click on the Viewer Urls tab. Put in a value for Detail Page Url (ie the page you want to link to) and click "Save changes. From the look of your page, however, it looks like you don't need a detail page, so the best solution would be to remove a line that looks like this:
Hope this helps
This happens when you output the psuedo field "_link" when you haven't set a detail page url for that section.
If you need to use the _link pseudo field, edit your selection and click on the Viewer Urls tab. Put in a value for Detail Page Url (ie the page you want to link to) and click "Save changes. From the look of your page, however, it looks like you don't need a detail page, so the best solution would be to remove a line that looks like this:
<?php echo $record['_link']; ?>
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] javascript alerts
I had a feeling it was something really simple like that, thanks very much Jason.
Julia
Julia