Jump to content

Is it possible to choose columns in admin?


Martinus
 Share

Recommended Posts

You can add more fields to display by editing the templates for the relevant pages, clicking the Advanced tab, scrolling down to "List of fields to display in the admin Page List", then entering multiple fields such as {title} {a_field} {another_field}.

You can also mix in other text, such as {title} | {a_field} > {another_field}.

Link to comment
Share on other sites

Not that I know of, though maybe it's possible to create a module to do this.

You could instead consider using Lister. If you go to Pages > Find, you could save various searches as bookmarks, then add shortcuts to those bookmarks which would be used instead of the Page Tree. You can have different columns for each bookmarked search.

Link to comment
Share on other sites

You can use the new getPageListLabel() method of custom page classes to mimic a table-like list:

KNmZXuI.png

<?php namespace ProcessWire;
// placed in /site/classes/BasicPagePage.php
class BasicPagePage extends Page {

  public function getPageListLabel()
  {
    return "<span style='display:inline-block;width:200px;outline:1px solid black;'>{$this->id}</span><span style='display:inline-block;width:300px;outline:1px solid black;'>{$this->path}</span>";
  }
}

Brilliant new feature 😎

hnPE1fV.png

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...