0

I have a list and its title column is hidden. The title columnh carries the ellipsis that opens the menu with details of the record.

How to make the ellipsis visible again while keeping the title column hidden?

Thanks

1

Open the AllItems.aspx page for the specific list. Search for the tag

List item LinkToItem="TRUE" to whichever column you want the link:

< ViewFields> < FieldRef Name="Attachments"/> < FieldRef Name="LinkTitle"/> < FieldRef Name="linkThisColumn" LinkToItem="TRUE"/> < FieldRef Name="data_x0020_column"/> < FieldRef Name="Another_x0020_column"/> < /ViewFields>

See the answer here.

  • LinkToItem="TRUE" alone didn't work but with LinkToItemAllowed="TRUE" ListItemMenu="TRUE" how suggested in the link works.thanks – Gyonder Apr 2 '14 at 8:21
2

I realize this post is a few years old, but thought it might be handy to include another option as well. The ellipsis menu can be added to a column using CSR / JSLink as well and is a better solution than editing the AllItems.aspx or any other page directly.

The JSLInk js file might look like this:

(function () {

//   Initialize the variables for overrides objects
    var overrideCtx = {};
    overrideCtx.Templates = {};

//  alert("Override call worked");

    overrideCtx.Templates.OnPreRender = csrMenuAvail; 

    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
})();

function csrMenuAvail(ctx) {
//  Specifying which column you are adding the ellipsis to based on the displayed field name. 
//  As written this will work across multiple web parts on the same page

    var numColumns = ctx.ListSchema.Field.length;
    var columnArr = ctx.ListSchema.Field;
    for (var i = 0; i < numColumns; i++)
    {
        if (columnArr[i].RealFieldName == "ColumnName")  //example 1
        {
            columnArr[i].listItemMenu = "TRUE";         
        }
    }
}

References:

  • Thank you for your contribution, but Please don’t add just a link as answer to a question. If the link breaks, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed, you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer – Mohamed El-Qassas MVP Jun 14 '17 at 23:29
  • Gotcha. :) Updated with code sample and references. Thanks! – Wesley Preston Jun 15 '17 at 0: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.