[TYPO3-english] seo_dynamic_tag
Roberto Torresani
erreti at gmail.com
Sun Dec 28 09:49:46 CET 2008
Hi Jan!
Thanks for your answer. It's ok.
Bye
Roberto
2008/12/28 Jan Bednarik <info at bednarik.org>
> > 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list