[TYPO3-english] seo_dynamic_tag
Jan Bednarik
info at bednarik.org
Sun Dec 28 09:27:19 CET 2008
> I configure seo_dynamic_problem to extract the parameters myid and all run
> good when I shpow the detail page. If I access to list page
> (index.php?id=34) I receive the error $1: is empty![DANGER]
Because there's no parameter myid in the URL.
> How colud rewrite the code:
>
> special = register
> debug = 1
> register = description
> query {
> select = mycolumn
> from = `mytable`
> where = `uid` = $1 && `deleted` = 0 && `hidden` = 0
> var.1 = myid
> }
You can wrap it in a condition:
[globalVar = GP:myid>0]
...your code...
[GLOBAL]
this way the code will be used only when myid is set.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
More information about the TYPO3-english
mailing list