Re: Search Engine optimization
Re: Search Engine optimization
- Subject: Re: Search Engine optimization
- From: Chuck Hill <email@hidden>
- Date: Wed, 11 May 2005 12:20:58 -0700
It is really very simple:
public String itemCatalogUrl(Item anItem) {
return "http://" + domain() + "/itemCatalog?itemID=" +
anItem.idForDirectAction();
}
domain() can return a static string, a value from a config file, a
value from the request headers (search archived for "host name"), etc.
Item.idForDirectAction() just needs to return the unique key you want
to use. Often this is the PK.
Chuck
On May 10, 2005, at 6:21 PM, Greg wrote:
On 11/05/2005, at 9:54 AM, Chuck Hill wrote:
yes, WO won't do it for you. I usually make a URL factory class.
Is there any chance you could post an example please Chuck?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden