Jump to content

Customise page tree titles


alexm
 Share

Recommended Posts

Hi guys,

Just a quick one which I imagine someone has come across before. I don't feel like it warrants a module and might be as simple as editing a method in the admin module but can't see where to start.

Is it possible to customise the titles that you see in the page tree?

At the moment it displays the title. Which is absolutely perfect for everything apart from one thing which i would like to customise the page title display.

I have a page called properties with children which are the properties themselves.

I have renamed the title field to House Number/Name for the property template context and then separately I have a street field.

I would like to concatenate the street field onto the title so you would get.

the "House number" "Street name" as the title you see for these pages in the page tree.

Any thoughts?

Thanks in advance!

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.
  • Similar Content

    • By quickjeff
      Hi Guys, 
      I have been debugging a site for the last 2 hours and cannot solve the issue. 
      I have a site running on 3.0.148. 
      I installed the Kongondo Blog module and was updating the templates to include the website style. 
      Once everything was set and done, I checked the page tree to see an error appear. 
      Template must be assigned a name before 'filename' can be accessed
      The same error appears in templates. 
      Debugging Steps
      I checked the templates in the server to ensure I didnt accidentally delete the namespace.  Deleted cache in browser and server under assets Still no go. 
      Any help is appreciated. 
      Thanks! 
    • By Falk
      Hi!
      I have lots of blogposts in my pagetree and I want the pagelabel to include the value of the post’s datefield (only the year).
      Adding date | title in the template settings results in something like…
      1536012000 | my blogpost title
      Is it possible to convert the timestamp to a readable date?
       
    • By jploch
      Hey!
      I just finished working on a website for a client.
      To restrict the use of PW for the client (so he can't brake the website), I created a new User and asigned some permissions.
      The problem is, that the link to the page tree is missing, when I login with the new user (see screenshot).
      Only the "Add New" shortcut works.
      When Iam logged in as admin, everything works fine.
      I never had this problem before. Iam using PW 3.0.25
      Any Ideas?
      THX!
       

    • By Jason Huck
      When logged into the admin as the superuser, the 404 page appears in the page tree per usual. When logged in as a "site administrator" (a custom role), the 404 page is missing. The 404 page uses the basic-page template and hasn't been edited or altered in any way. Under "who can access this page", it shows the expected permissions (site administrators can definitely edit basic pages), and in fact, if a site administrator navigates directly to the edit screen for the page, it works fine. So it's not a permissions issue per se, it just doesn't show up in the page tree for users in that role. It is a multilingual site, and English is not the default language, in case that's relevant. Any thoughts?
       
    • By Chris
      Please read the following before looking on the big picture )
      Here's an idea i got, while experimenting with PW:
      A lot of cool icon fonts are avaible, on the other hand the page system of pw can be used verry flexible. why not bring these together to improve customized backend usabillity,
      version a (more complicated to build, i guess): when creating a template you choose the icon of your choice for this kind of content.
      in the page tree, based on the template that you've choosen for every page, the pages uses an little icon.
      version b (i guess, maybe simpler): based on the choosen template, the page <a> get's a css class with the name of the template.
      so you need to attache an custom css in the backend that styles your page list with icons using the :before/:after css-technics,
      i've seen that each page list item already get's a unique class, but it doesn't look like every page list item gets an class/id based on the used template.
      i think version b of my idea is nicer, and would bring up more flexibilty so style the page tree, additionaly to the icon solution.
      however, i did a dirty mockup of version a for better illustration.
      what do you guys think about the draft?
      writing something like this myself with php would be a realy big and scary task at the moment, since i'm a young padawan, but maybe some of the jeddai masters like it?

      <- i did an mistake..on the mockup i mean with "<-*click* a click on the picture symbol, not the pencil >.<
      EDIT:
      another "sourcecode mockup" to illustrate what would be cool the get with version b of the draft, so page list items get automatic an template name based icon

      , styleable with
      div.basic-page:before { content: "a"; } div.sitemap-template:before { content: "k"; } link with more infos about the css part etc,
×
×
  • Create New...