Edit Custom Dialogue/properties window > Match Report

Permalink
Hi there I am looking for some advice and a little tech now how on the side ;)

I have set up a website for my hockey team and one of the main areas is for match reports.

I am going to display the data by the "page list" block where the user will input their data into the custom attributes fields I have generated i.e score, scorers, oppo, report, etc...

I have 2 queries about this:

1) Is this how you would do it?

2) is there a way to customise the properties dialogue box for just the certain page type. i.e change "name" to "Versus" and Description" to "Report". I have found the file "collection_metadata.php but if I change this it changes across the entire website. I would like some like the custom templates one uses for blocks

In an ideal world I would like all my custom attributes and page properties in the same view as well...

THanks in advance

D!!

p.s I am not a php techie

dancer
 
jordanlev replied on at Permalink Reply
jordanlev
Not entirely clear on what you're trying to do, so I can't answer #1. But for #2, if you mean change the names of the fields in the Page List block edit dialog, then no you cannot do that. But you can copy that block out of the concrete/blocks directory into the blocks directory (NOT in the "concrete" directory), but you will then need to change a lot of names in various files (the folder name, the class name in controller.php, the database table name in db.xml, anywhere in controller.php that refers to that table name, probably some other places I can't think of off the top of my head). Then make the changes to the field labels in page_list_form.php (or maybe it's called form_setup.php -- depends on your concrete5 version). Now you can add that copied/altered block to the page instead of Page List.

Might take some trial and error to get right, but should be doable.

Good luck!