Adding a custom attribute to the page list block
Permalink
Hi,
I want to add a custom text field handle and display it in the page list.
The handle's name is : 'datum'.
I tried editing the page list block; but it doesn't seem to work. None of my changes seem to have any effect. I refreshed the block in the dashboard, but no effect.
I added a screenshot so you can see what it should look like. The extra text field is on the bottom line.
I also added a zip for the block in it's current state.
Thank you.
I want to add a custom text field handle and display it in the page list.
The handle's name is : 'datum'.
I tried editing the page list block; but it doesn't seem to work. None of my changes seem to have any effect. I refreshed the block in the dashboard, but no effect.
I added a screenshot so you can see what it should look like. The extra text field is on the bottom line.
I also added a zip for the block in it's current state.
Thank you.
Wow, thank you so much for the easy tutorial.
This was my mistake:
i did not create a custom template.
To solve this i made a new map in the application>blocks folder (see the screenshot from siton) and copied the view.php file.
Don't forget, i edited the core files for the pagelist block to. If anyone is interested, i can share the core and the custom template. It should be easy for you to add new custom fields based on the comment above.
Thank you.
This was my mistake:
i did not create a custom template.
To solve this i made a new map in the application>blocks folder (see the screenshot from siton) and copied the view.php file.
Don't forget, i edited the core files for the pagelist block to. If anyone is interested, i can share the core and the custom template. It should be easy for you to add new custom fields based on the comment above.
Thank you.
Hi grafoman,
If you don't mind sharing your files that would be much appreciated as I've been trying to figure out a way to pull pages with a custom attribute using the page list block.
If you don't mind sharing your files that would be much appreciated as I've been trying to figure out a way to pull pages with a custom attribute using the page list block.
I add little "tut" (its hard to explain this without visual screens :) download the pic and zoom in image-preview.
Some tuts about this issue:
- Youtube Renaissance Coders:
https://www.youtube.com/watch?v=yjqkZiwcNNE...
- Youtube Official concrete5:
https://www.youtube.com/watch?v=A2YvfUksrHQ...
- Article from the docs:
http://documentation.concrete5.org/developers/working-with-blocks/w...