Hello, new to ModX here and ran into an issue I’m not sure how to solve. I’d appreciate any help.
What I’d like to do is the following:
- Home page contains snippet which evaluates the current month and year.
- Automatically fowards / displays a page pertaining to that date, based on the page’s alias.
So for example, something along the lines of:
<?php
$currentMonth = date("m.Y");
$modx->sendForward($currentMonth);
?>
Where the Home page would then automatically display my page with a URL Alias of (currently) "05.2010".
I realize that ’sendForward’ should be using an id instead of an alias, but ideally I’d like to be able to retrieve the alias of other documents without knowing that document’s id.
Is this possible?