Jump to content

PageTable Documentation


bytesource
 Share

Recommended Posts

Hi, 

I have heard about the new field type PageTable available in the next version of Processwire (2.5) that is supposed to work like repeaters but with much better performance characteristics. 

That got me interested, but I haven't been able to find any further information of how to use this new field type.  

Did I miss some thread, or does PageTable work just like a Repeater? 

Cheers, 

Stefan

Link to comment
Share on other sites

Not sure if there are any instructions posted yet, but if you install the module from the core list, the setup of a new field with this type is well documented. I am sure you'll get the hang of things from playing around for a few minutes.

There is some discussion about PageTables from this post onwards:

https://processwire.com/talk/topic/6417-processwire-profields-table/?p=62890

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...

I finally found some time to try out the new PageTable field type, but I ran into some problems.

I created a field sidebar_slogans of type PageTable and set up the table fields like this:

headline=33
summary=33
image=33

However, after assiging sidebar_slogans to a template, I was not able to add any data in the admin. Clicking on the cells did nothing (please see the attached screenshot).

Maybe PageTitle does not support the field types of my custom fields? These field types are as follows:

headline: TextLanguage

summary: TextareaLanguage

image: PageImage

I have installed Processwire version 2.4.3.

Any ideas of how to solve this problem are highly welcome!

Cheers,

Stefan

post-855-0-02029700-1403080563_thumb.png

post-855-0-83261600-1403080604_thumb.png

Link to comment
Share on other sites

I found my mistake.

I assumed adding the names of the custom fields to be displayed in the admin would automatically add them to the selected template. This, however, is not the case. So after also adding each custom field to the template, everything was working.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

I'm wondering about the page tables and how it closes when you hit save - i think it would be better if this behavior was configurable, because some of my templates run actions on save, so i sometimes need to save a page a few times when editing..

but then the modal window closes every time i hit save, so i basically end up going over to the child pages tab and editing directly on the page to avoid editing in the modal with the close issue...

Link to comment
Share on other sites

  • 2 weeks later...

I'm wondering about the page tables and how it closes when you hit save - i think it would be better if this behavior was configurable, because some of my templates run actions on save, so i sometimes need to save a page a few times when editing..

but then the modal window closes every time i hit save, so i basically end up going over to the child pages tab and editing directly on the page to avoid editing in the modal with the close issue...

Provided an example on this post how to prevent it using hooks. It would be great to have this supported natively though, so such "hacky" tricks wouldn't be needed.

  • Like 2
Link to comment
Share on other sites

  • 3 months later...

I think this is on purpose. The first row does always provide the link, which does show/hide the edit / view links. I think it was different some time ago, but it didn't feel nice, to be honest, to click the image and have the extra links appearing besides it, maybe even barely fitting in the rows. I really don't remember images in the first row being a good idea.

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

Just found that with 2.6.13 dev the image preview is broken...see

https://github.com/ryancramerdesign/ProcessWire/issues/1353

can anybody confirm this?

Another question - wich isn't much a problem for me but if you upload a image in a pagetable page imagefield - i first get the image preview if i save the pagetable page?

Using PageTableExented module, too.

regards mr-fan

Link to comment
Share on other sites

  • 1 month later...

Hmm... didn't work with a single image for me. Do you just put in "image" (my field name) to have it display?

Hi... like Pete I have trouble putting images in PageTable to display in the frontend. How did you do it?

Edit:

Got it solved. It had to do with my syntax. Now it works without any problems.

Link to comment
Share on other sites

  • 1 year later...

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