|
Home > Archive > Microsoft Content Management Server > March 2004 > Custom Properties for Postings
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Custom Properties for Postings
|
|
| Gurmeet Singh 2004-03-02, 9:35 am |
| Hi everybody,
How can custom property on a posting be set ?
I am making a news site and i want to set custom properties on a posting so
that i can select which postings to show etc while querying on the main page
using PAPI.
How can i use custom properties of postings and then how can i query and use
it by PAPI ?
With regards,
Gurmeet Singh
| |
| Stefan [MSFT] 2004-03-02, 10:36 am |
| Hi Gurmeet,
you need to define them on the template (e.g. using VS.NET developer tools)
To set and read them use
Posting p=...;
p.CustomProperties["propname"].Value = ...
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Gurmeet Singh" <gurmeetsm@hotmail.com> wrote in message
news:eLsXhMGAEHA.1608@TK2MSFTNGP11.phx.gbl...
> Hi everybody,
>
> How can custom property on a posting be set ?
> I am making a news site and i want to set custom properties on a posting
so
> that i can select which postings to show etc while querying on the main
page
> using PAPI.
>
> How can i use custom properties of postings and then how can i query and
use
> it by PAPI ?
>
> With regards,
> Gurmeet Singh
>
>
|
|
|
|
|