[development] Passing options to the front page via the URL

Jeff Greenberg jeff at ayendesigns.com
Tue Jul 13 22:39:45 UTC 2010


Agreed, but the timing seems to be a problem. If I pass it in arg, the 
url needs to be mydomain.com/myarg  as opposed to mydomain.com?q=myarg 
or something similar. With that done, I hook 
phptemplate_preprocess_page, and the argument is there, but the result 
is a 404 because the router goes looking for a path using that argument.

On 07/13/2010 05:32 PM, As If Productions wrote:
> At 02:11 PM 7/13/2010, Jeff Greenberg wrote:
>> The parameter should be provided via the url, so that it can be
>> bookmarked, entered directly into the browser by the user, or selected
>> from a link. How can that be done?
>
> I would still do this in phptemplate_preprocess_page().  Just grab 
> arg(2) or whatever arg it is.
>



More information about the development mailing list