I have a problem with a pagesetter block that displays ONE publication : when this publication is not available (when expire date is over), the block is not displayed (which is what i want) but i do get the following error :
/home/www/modules/pagesetter/pnuserapi.php(1047): _PGUNKNOWNPUB [setVar] on line 302 in /home/www/includes/pnobjlib/SessionUtil.class.php
Is there a way of avoiding this error ?
Thanks very much in advance for any help!
Guitch
Posted: 19.08.2008, 21:29
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Sometimes people have strange ideas !! I surely do...
Please discard my above question... of course if the publication has expired, then it raises an error when trying to get it... we probably want that to happen.
For my request, i just found a workaround by using a different expiration date field than the one from the publication... hence, the publication is always available... and i can display it or not (according to the new expiration date field) in my template...
In case you're still reading and wondering what the 'ell i am trying to do, i want to give the ability for specific users to publish a simple alert bloc without creating themselves an HTML block, and have this block displayed automatically on the home page... hence i use a pagesetter publication type (with only one publication) to provide a nice form with 4 simple fields : title, message, publication date and expiration date, and i am displaying this pagesetter pub block only when the dates are right...
Sorry to bother you with that...