Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Add Site Title to Custom List Column

  Asked By: Mindy    Date: Sep 05    Category: Sharepoint    Views: 1899

Does anyone know how to make a custom list column autofill with the
site's title? I want to be able to use this column (for filtering,
etc.) when I combine different lists from different sites using the
Data View WP.



2 Answers Found

Answer #1    Answered By: Octavio Dotson     Answered On: Sep 05

The SPWeb class property "Title" contains the site  title. The link below
shows how to retrieve and set the value for the current context.


Perhaps this will give you some ideas. I don't have a server to test on at
the moment, so can't take this any further

Answer #2    Answered By: Judy Pittman     Answered On: Sep 05

Thanks for the response, Steve. That's certainly an option. I was
hoping not to have to use the object model. I wanted to see if
someone knew of some nifty way to use a Lookup or Calculated column
to achieve the same end.

Didn't find what you were looking for? Find more on Add Site Title to Custom List Column Or get search suggestion and latest updates.