I have tried under several circumstances to test for the identity of the current page/directory by checking if title_or_id is equal to some string, and it never is... Am I doing something wrong? Even when <!--#var title_or_id--> seems to return exactly the string I'm comparing with, it still isn't true... -- Magnus Lie Hetland www.pvv.org/arcadia <arcadia@pvv.org>
Magnus Lie Hetland wrote:
I have tried under several circumstances to test for the identity of the current page/directory by checking if title_or_id is equal to some string, and it never is... Am I doing something wrong? Even when <!--#var title_or_id--> seems to return exactly the string I'm comparing with, it still isn't true...
Are you using: <!--#if "title_or_id()=='spam'"--> ??? That is, are you calling title_or_id? It is a method. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (540) 371-6909 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
On 21 Jan 99, at 23:30, Magnus Lie Hetland wrote:
I have tried under several circumstances to test for the identity of the current page/directory by checking if title_or_id is equal to some string, and it never is... Am I doing something wrong? Even when <!--#var title_or_id--> seems to return exactly the string I'm comparing with, it still isn't true...
I think this might work <!--#if expr="document_title == 'The Title I want'"--> or <!--#if expr="document_id == 'The id I want'"--> Still, I think this might acquire from above, so you need to be careful. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 We must come down from our heights, and leave our straight paths, for the byways and low places of life, if we would learn truths by strong contrasts; and in hovels, in forecastles, and among our own outcasts in foreign lands, see what has been wrought upon our fellow-creatures by accident, hardship, or vice. - Richard Henry Dana, Jr. 1836
participants (3)
-
Brad Clements -
Jim Fulton -
Magnus Lie Hetland