Generate division pages. Need to update text.

This commit is contained in:
Kim Taylor
2025-03-04 21:44:12 +11:00
parent 608ed0f92c
commit 0bddcb7520
2 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
# The folder containing data for each council. # The folder containing data for each council.
# Includes the list of candidates and any media. # Includes the list of candidates and any media.
DATA_PATH="../spl-data" DATA_PATH="../spl-data/federal_2025"
# Controls the flags that are passed to every usage of the wp command. # Controls the flags that are passed to every usage of the wp command.
#WP_FLAGS="--allow-root --path=/var/www/html" #WP_FLAGS="--allow-root --path=/var/www/html"

View File

@@ -35,12 +35,12 @@ if (isset($config["survey"])) {
<?php <?php
$wardCount = count($config['wardNames']); $wardCount = 1; //count($config['wardNames']);
if ($wardCount > 1) { if ($wardCount > 1) {
$wardsDescription = $config['councilName'] . " is divided into " . $wardCount . " wards:"; $wardsDescription = $config['divisionName'] . " is divided into " . $wardCount . " wards:";
} else { } else {
$wardsDescription = $config['councilName'] . " is unsubdivided and does not contain any wards."; $wardsDescription = $config['divisionName'] . " is unsubdivided and does not contain any wards.";
} }
?> ?>
@@ -106,7 +106,7 @@ if (isset($config["survey"])) {
$groupNames = $config['groupNames']; $groupNames = $config['groupNames'];
$propertyOnCandidate = 'Group'; $propertyOnCandidate = 'Group';
} else { } else {
$groupNames = $config['wardNames']; $groupNames = ['Fixme']; // $config['wardNames'];
$propertyOnCandidate = 'Ward'; $propertyOnCandidate = 'Ward';
} }
?> ?>