Jump to content

Recommended Posts

Posted

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

  • 3 weeks later...
Posted

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

Posted

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
  • 2 months later...
Posted

Image fields work fine, just not very practical to display on the table if you have multiple images. In that case it's better just remove them from the list.

post-88-0-05855200-1408693578_thumb.png

post-88-0-58490700-1408693578_thumb.png

Posted

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

  • 1 month later...
Posted

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

Posted

On 2.5.3 the images don't seem to be respecting their widths, which is odd. Inspect element is telling me the column is 20% width but the reality is a huge image. Strange.

  • 2 weeks later...
Posted

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
  • 3 months later...
Posted

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
Posted

hm.. you're right, those links would maybe feel strange beside the image - but i don't have those links in my setup. it just opens a modal to edit the item and that would totally be ok with a linked image in my opinion :)

  • 6 months later...
Posted

hi mr-fan,

seems that you are using croppableimage - have you tried it with the standard image field? maybe i can try to reproduce it lateron.

ps: ads, not adds ;)

Posted

Ok i', little silly on my english labels...thanks for that... :-[

created a new normal image field on this and it looks the same...

  • 1 month later...
Posted

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.

  • 1 year later...
Posted
On 3.9.2017 at 5:10 PM, hellomoto said:

Oh is it only supposed to populate via api? 

You need a bit of coding experience but we can help you.

 

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
  • Recently Browsing   0 members

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