]]>
Locations of visitors to this page
Blog
 
Menu
Archive
Flickr
Customize Blogger's post date header
I sent some requests to Blogger to implement as I encountered some trouble making my template code blog-independent and customizable.

I asked for a new template tag <­$BlogId$> as I want to be able to simply copy-paste my template from Blog to the Testlab and back, without scrolling through the code to replace the BlogId number. At this moment therefore I only copy parts of code back and forth.

[update] As I already use this code in my comment form: <­input type="hidden" name="blogID" value="<­$BlogID$>"/> I can conclude that this first suggestion therefore was a bit dumb :S
Why can't I find this tag somewhere in Blogger's Help?
 <­more, see permalink>

I also suggested customizable date headers to Blogger, as the possibilities they offer for posts, archives and comments all differ from each other. I suggested usage of dDmMyY hH:nN or so.

I expect those features to take some time. Afaik for the first is no workaround, but the date header has some possibilities. I rewrote the date header so post and comment dates are matching. To make it work javascript needs to be turned on on the client side and you need to set the standard date format to yyyymmdd:



This is the script to be added:

<­BlogDateHeader>
<­script type="text/javascript">
var datum = <­$BlogDateHeaderDate$>;
var datum_string = datum.toString();
var jaar = datum_string.substring(2,4);
if (datum_string.substring(4,5) == 0)
 {var maand = datum_string.substring(5,6);}
else
 {var maand = datum_string.substring(4,6);}
if (datum_string.substring(6,7) == 0)
 {var dag = datum_string.substring(7,8);}
else
 {var dag = datum_string.substring(6,8);}
document.write('<­div class="post_kop">');
document.write(dag+'/'+maand+'/'+jaar);
document.write('<­/div>');
<­/script>
<­/BlogDateHeader>


Put it in stead of the standard code:

<­BlogDateHeader>
<­$BlogDateHeaderDate$>
<­/BlogDateHeader>


It's quite a lot more code, but I like the consistency in the date header.
 <­more, see permalink>

Tags: , , , ,

Labels:


Comments
Comment

 
Search
Links
  • Interesante post(s) elders