3

I am using SharePoint 2007 Enterprise + Publishing portal template + Windows Server 2008. I want to add a list with two columns, one column displays picture, and the other column displayes rich text.

I did not find a way to display picture itself into a list (picture type column of list seems only add a link of picture to the column, not the picture itself). Any ideas how to implement? And is it possible to implement paging on list -- e.g. display 20 items on each page, and if 100 items, display by 5 pages (end user could use page-up and page-down to control paged view)?

3 Answers 3

3

I assume you are talking about SharePoint lists when you say you want to create a list and not that you want to create your own custom list control..

The column type "Image with formatting and constraints for publishing" has a thumbnail preview in list views, the standard Image column type does not, I suspect you are using the one from WSS instead of the one that comes with the Publishing feature in MOSS.

List views also come with paging automatically, I think the default is about 20? But if you drop down on the view menu and click modify this view, you will be able to specify the item limit. Paging is done using two (very small and somewhat hard to find sometimes) arrows that usually appear in a blue bar underneath the listview and sometimes in the top right of the list view.

5
  • "I assume you are talking about SharePoint lists when you say you want to create a list" -- yes.
    – George2
    Nov 21, 2009 at 6:31
  • 1
    column type "Image with formatting and constraints for publishing" -- where can I find the column type? I did not find such column type when I create a list and select data sheet view? Appreciate if you could let me know where to find the column type you mentioned?
    – George2
    Nov 21, 2009 at 6:32
  • "I suspect you are using the one from WSS instead of the one that comes with the Publishing feature in MOSS." -- maybe, I am using MOSS 2007. Appreciate if you could let me know how to find the column type (Image with formatting and constraints for publishing) you mentioned. :-)
    – George2
    Nov 21, 2009 at 6:33
  • 1
    You need to add a new column to your list, as you stated you are using the Publishing Portal Template that means you will have the additional column types that support publishing sites. So, create a new column and in the list of possible column types you will see the "Image with formatting and constraints for publishing". However, you mentioned using the datasheet view, is this something you need to use? Because I am quite certain that this will not render the image even when using the above column type. Standard list views will.
    – Anonymous
    Nov 21, 2009 at 8:51
  • Cool, question answered!
    – George2
    Nov 21, 2009 at 13:44
2

You can create a Content Type with the Picture Content Type as a parent and create a site column for your rich text field. Then you can create a picture library and select to manage the Content Types and change it to your new custom content type and select the fields that you want.

This way, you will be able to create a view of your list with the picture (that will be uploaded as the item is created) and your rich text field. You can also customize this view to page as you prefer. I don't know a way to be able to use the page up/down control, but you can use a jQuery script that can modify the size of the paging commands so that they will be easier to see and use.

4
  • "content type with the Picture content type as a parent" -- can you show me how?
    – George2
    Nov 21, 2009 at 6:30
  • Go into Site Actions>Site Settings and click on Site content type under Galleries. Click on Create. Title your new content type something you will remember and select Document Content Types as the type to select from and Picture as the parent. Click OK.
    – Lori
    Nov 23, 2009 at 16:34
  • When the content type opens, click on Add from new site column under Columns. Title your column what you want it to be, then select Multiple lines of text. Set up your column with the properties you choose (allow hyperlinks, tables, etc..) and click OK. Create a new picture library. Go into the picture library settings and click on Advanced Settings. Select to allow management of content types. Then under content types in the library settings, select Add from existing and select your new content type. Then change it to be the default and click on the original content type and delete it.
    – Lori
    Nov 23, 2009 at 16:36
  • Now you can go into your custom content type and adjust the columns to display the rich text field site column you created. Now you just need to set a view that only shows those two columns and you will have your list.
    – Lori
    Nov 23, 2009 at 16:38
0

An alternative could be to add a calculated column that renders some html, for example an img tag with a src attribute that references the values of another field on your list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.