I’ve got an online signup form (eForm) that should change once it’s too close to the event to register online. So once it’s too close, it should display a text message instead of the eForm. I could get it to expire (using the unpublish date) and create a new document that will become published at the same date/time, but I want to keep the alias the same so that external sites that reference the URL won’t break. Any ideas?
Here’s a quick thought (probably not the only way to do this):
Create a Template Variable with the event date and have it set correctly for each event page.
1. Put the eForm code in one chunk.
2. Put the "Sorry, you’re too late" message in another chunk.
3. Use a snippet on the page to evaluate the date and select which chunk to show (using $modx->getChunk()).
thanks bobray, that thought had occurred to me. hmmm, anybody else?
Not using Evo or Revo yet, but this setting IS available in 0963 as well (allow duplicates). I had forgotten about it since I always set it to use unique aliases. I’ll try this. Thanks for the reminder jusicgn
I’m curious if this works. So any feedback would be great!
Greetz
JUSI