Jump to content

Button Labels For PageTable


Chris Falkenstein
 Share

Recommended Posts

Is it possible to change the label of the 'Add New' button that appears with the PageTable field? Please see attached.

I see folks have different labels for these buttons.  How is this achieved? 

Furthermore i see that some developers have multiple 'Add New' buttons with their PageTable implementation - as if setting up a feature very similar to a 'Matrix' found in Craft CMS - where each block of content gets its own 'Add New' button.  How is this achieved? 

Is this only possible with the PageTable Extended module?  I'm not really interested in styling the Admin page to mimic the frontend.  I just want to custom-label those buttons and find out more about the multiple button setup. 

Please advise.

post-3015-0-96415300-1436918090_thumb.jp

Link to comment
Share on other sites

Each type of template you allow for the page table will have it's own button with the label of that template.

on the details tab of your page table field, add some more templates and it should all work how you want.

Link to comment
Share on other sites

thanks for the quick reply. your confirmation led me to a discovery...

it turns out that if you create a PageTable field and assign only one (1) template you get a 'add new' button (as shown in the attached pic above). it does NOT use the label from that template.  but when you assign two (2) or more templates the system will use the template labels to lable the buttons.

i feel it should use the template label for the button even if one template is assigned. 

i posted this on the wish list here.

  • Like 1
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

×
×
  • Create New...