Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If I have a field in a base template in Sitecore, can I vary its Title depending on which page template is inheriting it?

Tags:

sitecore

In Sitecore, I have a field which is re-used by several page templates. I use basepage inheritance, partly so I don't have to configure the source, help-text and so on each time it is used.

However there are times when the field has a slightly different meaning for one particular page template, and I would like to adjust the Title and help text accordingly to make it easier for the content editors.

Can anyone suggest a good way of doing this in Sitecore? Or is the solution just to make another copy of the field and edit that accordingly, especially as that's only a few seconds work.

Update: Thanks for the answers, I agree with all of them. The difference in the purpose of the fields was so subtle that I didn't think it warranted different fields, but I guess that's a kind of micro-optimisation that will just end up confusing everyone anyway, and certainly isn't worth developing a whole UI / datastore just for this purpose.

like image 628
Steve McGill Avatar asked Jan 30 '26 03:01

Steve McGill


1 Answers

Good question, and one that most Sitecore people arrive at eventually. That fact is that the help text is part of the field item. So if you want different help text, you need a different field.

As you point out, the fields sometimes have a different meaning. This is an indicator that it should in fact be a different field.

like image 104
Martin Davies Avatar answered Feb 02 '26 05:02

Martin Davies