handle northshoreport.org documents

Bug #520233 reported by Dan MacNeil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MVHub
Fix Released
Low
Lee Goodrich

Bug Description

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 affects mvhub
 assignee nobody
 importance low
 security no
 status new
 tag defect
 tag refactor
 done

The problem is that the documents link & directory for
northshoreport.org is outside version control and requires undocumented
manual intervention when we push to release.

The ultimate solution to this problem is to move all site specific
content into the database and to create a documents directory like the
current reports & tmp directories that are outside version control.

...and actually that might be easier than this kludge...

For now, it might be enough to

 1) modify app-mvhub/project-tools/bin/mv_setup to create a
    /var/www/mvhuhb/$USER/custom directory outside versio
    control

 1a) modify apache config to point to custom
 1b) put nsp docs in custom dir

 2) create app-mvhub/DocumentRoot/static/nsp/inc/nsp_left_menu.inc
 ...which includes a link to:
  html/documents.shtml

 2) create
app-mvhub/DocumentRoot/static/nsp/inc/html/documents.shtml
... to have links to documents in 'custom' dir

 4) Modify:
  app-mvhub/DocumentRoot/static/nsp/html/about.shtml
  app-mvhub/DocumentRoot/static/nsp/html/register.shtml
  app-mvhub/DocumentRoot/static/nsp/html/reports.shtml
  app-mvhub/DocumentRoot/static/nsp/html/links.shtml
  app-mvhub/DocumentRoot/static/nsp/html/help.shtml
  app-mvhub/DocumentRoot/static/nsp/html/servicearea.shtml

 ...to include app-mvhub/DocumentRoot/static/nsp/inc/nsp_left_menu.inc

KLUDGE KLUDGE KLUDGE
 5) modify:

 app-mvhub/conf/templates/html/contact_form.tmpl
 app-mvhub/conf/templates/html/main.tmpl

 to include nsp_left_menu.inc if site name contans nsp or
   'northshoreport'

  ---Will need TMPL_INCLUDE and TMPL_IF

 6) create a RELATIVE symlink app-mvhub/conf/templates/html/inc_nsp
  that points to app-mvhub/DocumentRoot/static/nsp/inc/nsp_left_menu.inc

 7) modify:
   lib-mvhub/lib/MVHub/AgencyRecord.pm
  lib-mvhub/lib/MVHub/Page.pm

 8) to handle logic needed by tmpl files.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktzcU0ACgkQLzI3mETyffxGtQCfTQ0zZHq7k5tOeNcP8BRbOTuI
+8IAoJPWipWzk2WPtUtSCtA3gT7qojOd
=AKeu
-----END PGP SIGNATURE-----

Dan MacNeil (omacneil)
Changed in mvhub:
status: New → Confirmed
Revision history for this message
Dan MacNeil (omacneil) wrote :

At a minimum document manual process of in move to production checklist

Changed in mvhub:
assignee: nobody → Lee Goodrich (leegoodrich)
Changed in mvhub:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.