I have two sets of boards which I exclude on multiple instances on the site and each time I add a new board I have to change those numbers both in portal blocks/pages and on my index.template-file. I wonder if it would be possible to set this just on one place and have it working everywhere? Would that be my index.template-file perhaps?
So instead of using something like this
$exclude_boards = array(1,2,3,4,5,15,16,17);
and on other places this
$exclude_boards = array(6,7,8,9,10,11,12,13,14);
I could just set that up on index.template and use it everywhere, so when I need to use the first list i could just write "$exclude_boards = $excludeboard_cat1;" and define $excludeboard_cat1 on the index.template?
Of course I still have to change it somewhere every time I add a board which has to be excluded from one of the lists, but at least i wouldn't have to change it on multiple.
Ultimately it would have been nice to define this on the admin-settings or something like that, but that I definitely have no clue have to set up, so just changing one file would be preferable.
What do you think? Is this possible?
/Ahadawan
0 commentaires:
Enregistrer un commentaire