Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Alex] Browser Folder Color Suggestion

Quote Reply
Re: [Alex] Browser Folder Color Suggestion In reply to
Hi Alex,

I haven't given up on this one yet!

Let's say I have my own tag which returns true if there is an editor in the category which is being displayed: <%haseditor%>.

I then want to alter the function to display a different color folder if this is true:

Code:


/**
* Returns HTML code that represents the
* folder which is being clicked to be selected.
*/
function UnloadedNode_folderHtml()
{
var node_id = this.getId();
return '<a name="' + node_id + '" href="#" onClick="return parent.clickEvent(' +
"'" + 'UnloadedNode' + "', " +
"'" + 'select' + "', " +
node_id +
')"><img src="' +
<%if haseditor($node_id)%>NODE_EDITOR_BUTTON<%else%>NODE_UNSELECTED_BUTTON
<%endif%> +
'" border=0></a>';
}


The problem is passing the category/node_id to the perl funciton, I am not sure how to do this. I guess then I just need to define NODE_EDITOR_BUTTON as my new folder image.

Any plans to move the image references out of the .pm into the template? Or perhaps even better/easier, to modify the JFunction.pm to check to do the editor check and return a different color folder itself.

Thanks,

Ian


http://www.iuni.com/...tware/web/index.html
Links Plugins

Last edited by:

Ian: Jul 16, 2002, 12:38 AM
Subject Author Views Date
Thread Browser Folder Color Suggestion Ian 1925 May 1, 2002, 3:45 PM
Post Re: [sooke] Browser Folder Color Suggestion
Ian 1767 May 6, 2002, 2:32 PM
Thread Re: [sooke] Browser Folder Color Suggestion
Ian 1714 May 12, 2002, 8:06 AM
Thread Re: [sooke] Browser Folder Color Suggestion
Ian 1693 May 14, 2002, 3:26 PM
Thread Re: [sooke] Browser Folder Color Suggestion
Alex 1709 May 14, 2002, 8:42 PM
Post Re: [Alex] Browser Folder Color Suggestion
Ian 1676 Jul 16, 2002, 12:34 AM
Post Re: [Alex] Browser Folder Color Suggestion
Ian 1683 Jul 16, 2002, 12:42 AM