Check if "whereRecordNumberInUrl" is set or not
3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 23, 2008 (RSS)
By aev - October 22, 2008
Hi!
I'm using this code:
..to check if there is no Record Number in the url.
Is there a better way to do this?
I would like to use code recommended from Interactivetools so nothing breaks with future upgrades.
-aev-
I'm using this code:
<?php if (whereRecordNumberInUrl() == "num = '0'"): ?>
..to check if there is no Record Number in the url.
Is there a better way to do this?
I would like to use code recommended from Interactivetools so nothing breaks with future upgrades.
-aev-
Re: [aev] Check if "whereRecordNumberInUrl" is set or not
By Dave - October 22, 2008
Yes, there's a function called getNumberFromEndOfUrl() that is actually called by whereRecordNumberInUrl(). Try this:
<?php if (!getNumberFromEndOfUrl()): ?>
or
<?
$num = getNumberFromEndOfUrl();
if (!$num):
?>
Hope that helps!
<?php if (!getNumberFromEndOfUrl()): ?>
or
<?
$num = getNumberFromEndOfUrl();
if (!$num):
?>
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Check if "whereRecordNumberInUrl" is set or not
By aev - October 23, 2008
Hi Dave,
yes it does.
Thank you very much!
-aev-
yes it does.
Thank you very much!
-aev-