« German coastguard - or how to introduce yourself to an audience as a non-native speaker | Main | @Command([OpenDocument]) and "Cannot execute the specified command" »

Preparing yesterdays blog post for tomorrow, or so

by florian vogler ::  |  | 
After I prepared a new blog post yesterday (a funny one) and published it today, it showed up in the list of yesterdays posts on PlanetLotus.org ... looking further into the design of the BlogSphere template, I believe the reason is in the field "EntryDate", which by default is @Now at the time of creating a blog entry, but apparently doesn't get updated when actually publishing a post ...

The solution to this should be in the "Publish Story" action in the "CONTENT - Blog Entry" form - its formula is:
FIELD EntryStatus := "Published";
REM("'added the following line to update the EntryDate when publishing a story:");
FIELD EntryDate := @Now;
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])

I haven't tested it yet, but believe that should fix it ...
 
 

Post a comment

 

Search

 

Calendar

Tag cloud