I am already there.
It will look like:

"I have read the [EMAIL PROTECTED]:conditions} conditions {/@} and the [EMAIL PROTECTED]:privacy} privacy statement {/@} and agree with it."

and generate page links on the right places...

ציטוט Adam Greene:
The only other solution I can think of is to indicate that a certain character marks the beginning and end of the part to be wrapped with a link. example: Click *Here*

Then write a component that takes three parameters, the first being the message, the second being the page to go to, and the third being the delimiter and then within the component, locate the delimiters, split the string and wrap the text. It will take a bit of acrobatics, but would be doable.

----- Original Message ----- From: "Ron Piterman" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 23, 2005 1:03 PM
Subject: Re: creating a link around a part of a sentance


Yes, thats a possibility, but I find splitting the resource not so nice: in some languages this will need 3 resources.
Translation is also not straight forward then.

I guess I will need to hack something.. :(


ציטוט Geoff Longman:

If you're willing to give up the <span key> and split the resource
entry you could do this.

<span jwcid="@NestedMessage" resource="DID_YOU">
   <span jwcid="@PageLink" page="FindPassword"><span
key="FORGET_PASSWORD"/></span>
<span>

Where DID_YOU_FORGET=Did you {0}?
FORGET_PASSWORD=forget your password

NestedMessage would be a custom component that renders it's body into
newly created (and not nested I think) writer, then it calls
format("DID_YOU", contents of the writer).

I think this would work although I've never tried anything like it.

Geoff


On 8/23/05, Ron Piterman <[EMAIL PROTECTED]> wrote:

Hi,
Maybe someone has a cool component or a solution to the following problem:

Say there is a resource: "Did you forget your password?"
And I wish to add a link only on the words "forgot your password"

Or: "I read and agree with the *Conditions*" , where "conditions" is a link.

Doing this on simple text is no problem, but on a resource? did anyone
face this problem (successfully...) ?

Cheers,
Ron


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to