Hey all, I'd like some help changing the order of the meta data on my posts so that they go like this:
mood
music
tags
And, while we're messing around in the meta, could you tell me how to switch stuff around so that the mood line has the mood icon first and then the mood text with an actual space between the two, since right now they're all
(
Read more... )
Comments 9
Mike.
function Entry::print_metadata() {
if (($.metadata{"mood"}!="" or $.metadata{"music"}!="" or ((size $.tags>0)and($*layout_position_entrytags=="metadata"))) and ($.itemid!=int($*layout_guestbook_entryid))) {
"""
""";- $*text_meta_mood:"""; print $.metadata{"mood"}+" "+$.mood_icon; """
"""; }- $*text_meta_music:"""; print $.metadata{"music"}; """
"""; } - $*text_meta_tags:
""";
""";if ($.metadata{"mood"}!="") { """
if ($.metadata{"music"}!="") { """
if ((size $.tags>0)and($*layout_position_entrytags=="metadata")) {
"""
$.tags[0].name""";
foreach var int i (1 .. (size $.tags - 1)) {
""", $.tags[$i].name""";
}
"""
}
"""
}
}
Reply
Like so:
Mood: [happy.jpg] happy
Reply
function Entry::print_metadata() {
var string tags_header = $*text_meta_tags;
var string tags_joiner = ":";
var Link edit_tags = $this->get_link("edit_tags");
var string text = "";
var string val = "";
if ((size $.metadata > 0) or ($*tags_aware and (size $.tags > 0))){
var string currents = "";
foreach var string k ($.metadata){
$val = $.metadata{$k};
if ($k == "mood"){
$text = $*text_meta_mood;
}
elseif ($k == "music") {
$text = $*text_meta_music;
}
if ($k == "mood" and defined $.mood_icon){
var Image i = $.mood_icon;
$val = "
( ... )
Reply
Reply
Leave a comment