Jump to content

PageTable: Using several templates for subpages each with defined page names


pleini
 Share

Recommended Posts

Hi there,

I want to use the new PageTable field with several templates to use as subpages each with predefined page names and titles.

There is a field "Automatic Page Name Format" but I cannot define a title for each template, it's always the same.

So I want to make sure, the user just generates 1 subpage each template always having the same name.

Is this possible or do I have to use a setup page hook?

Going further this would be defining must-use titles for a template.

Thank you for your help!

Best,

Chris

Link to comment
Share on other sites

  • 3 months later...

I'm pretty sure you could write a module that would do this, and would dynamically set the name and title according to the template and your rules...

so you wouldn't use the auto page name feature, but would write your own, sort of like this:

https://processwire.com/talk/topic/1648-ok-to-change-page-name-path-after-save/?p=15232

  • Like 1
Link to comment
Share on other sites

You don't need a module for it, instead of using the page tables autonaming function, just use the template specific one, which you can find in the template settings. The only backdraw would be, that all pages with this template get autonaming, instead of only the ones, created in a pagetable.

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