EOUtilities.objectWithPrimaryKey

http://www.webobjects.me/API/wo542/com/webobjects/eoaccess/EOUtilities.html#objectWithPrimaryKey(com.webobjects.eocontrol.EOEditingContext,%20java.lang.String,%20com.webobjects.foundation.NSDictionary)

re: title.  If you really want to trick out Google add an attribute called slug 
and load that up with a key word phrase and use that as your qualifier.

best,

Johnny Miller
[email protected]
www.kahalawai.com

On Aug 18, 2011, at 3:58 AM, Kevin Hinkson wrote:

> 
> On 18 Aug 2011, at 09:54, Pascal Robert wrote:
> 
>> 
>> Le 2011-08-18 à 09:47, Kevin Hinkson a écrit :
>> 
>>> 
>>>> 
>>>> I'm not answering your question, but your URL should be 
>>>> /blog/title-of-post instead of using primary keys, to have even nicer URLs 
>>>> and better rank on Google. Are you using DirectActions or ERRest's HTML 
>>>> routing?
>>>> 
>>> 
>>> Direct Actions. The example is just really an example though. There are 
>>> other cases where I might want to use primary key as an identifier in the 
>>> URL.
>> 
>> If you go the ERRest's HTML routing, you can easily use primary keys (and 
>> get a lot of the job done automatically). It's just a suggestion :-)
>> 
> 
> Ah. That makes sense. Thanks. 
> 
> Also, thinking more about what you said about using title-of-post I think 
> that could apply to most if not all situations I can think of.
> 
>> 
>> 
>> 
>> 
> 
> 
> — K.R.H.
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to