Working with foundation 2010.

I'm trying to create an admin configurable read-only hyperlink field.

I'd like a column type where I can specify the url and description (in the content type administration), but when it's used in a list on the site, those values are read-only.

How can I go about this?


You will need to create a custom field type

For what you need the code will be very easy to produce.

| improve this answer | |

So you want to create a column that is going to be static, and the same for all items in the list? What a waste! Instead, it would make more sense to store the link in a separate location, and append it to the rendered views.

| improve this answer | |

You should get most of your answer from here as it goes into detail with examples:




hope it helps :)

| improve this answer | |
  • Thanks for the links, although they don't seem to apply 1) - It's not external data, just a column I want to contain a link to a specific list 2) I only want the one field/column read only, not the whole item, and I can't restrict to 'owner/creator' – Trevor Sep 10 '12 at 15:53
  • He meant field not the whole content type chap. – Hugh Wood Sep 10 '12 at 16:10

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.