I am working on archive pages for the blog application right now and
couldn´t figure out a way to query for Modules dates, so I added a
function to erlydb_base that allows me to do:
4> entry:find_date('YEAR(created)').
mysql_conn:426: fetch <<"SELECT DISTINCT YEAR(created) FROM entry">>
(id <0.69.0>)
[{entry,false,2007},{entry,false,2008}]
That was a first shot on it, if there is no way right now to do this,
I would try to make a patch.
The next thing I am struggling with are error pages. Looking at vimagi
and wrotit, they respond with error pages if a record wasn´t found,
for example if you add a character to the end of a painting-detail on
vimagi, the site responds with a "Oops, this content doesn´t exist",
but the status in response headers is 200 ok instead of 404 Not found.
The same for wrotits post details. Maybe erlyweb should respond as
default with a 404 if no records are found and have an option to
disable this behaviour?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---