0

link rel=... for favicon with Richlets?

asked 2009-06-13 23:52:26 +0800

lfdoherty gravatar image lfdoherty
6

I'm trying to set a different favicon for each richlet, by placing link tags in head e.g.:
<link rel="icon" type="image/gif" href="http://example.com/image.gif">

I know zscript supports this:
http://docs.zkoss.org/wiki/Developer_reference_The_ZK_User_Interface_Markup_Language_Processing_Instructions_The_link_and_meta_Directives

However, I can't work out how to do it with richlets.

Thanks,

Liam

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-06-15 04:31:04 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

you can use link component.

/robbie

link publish delete flag offensive edit

answered 2009-06-16 09:10:31 +0800

lfdoherty gravatar image lfdoherty
6

Thanks - but that just changes my question to: how do I get the Head object to add the link to? I can't find any mention of how to do this in the docs or forums. I tried using ZScriptInitiator plus ZScript to run the link directive, but that didn't seem to have any effect. The Page class seems like the logical place to get a handle to the HTML/document structure, but I can't see anything there either.

Thanks,

Liam

link publish delete flag offensive edit

answered 2009-06-30 11:06:02 +0800

robbiecheng gravatar image robbiecheng
1144 2
http://robbiecheng.sys-co...

why do you have to get the head object? does the link component satisfy your requirement?

/robbie

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-06-13 23:52:26 +0800

Seen: 299 times

Last updated: Jun 30 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More