#11 ✓resolved
S. Shehzed

Repetitive code makes minor changes annoying to deal with

Reported by S. Shehzed | November 16th, 2010 @ 06:57 AM | in v0.1.0

Most of the code is just repetitive HTML and what not. But since it's repeated in each page everytime, any type of change that is needed would have to be changed on each page. Cumbersome.

Comments and changes to this ticket

  • S. Shehzed

    S. Shehzed November 16th, 2010 @ 07:01 AM

    Relates to Ticket #9 and php-ifying code.

  • S. Shehzed

    S. Shehzed November 16th, 2010 @ 07:06 AM

    • Milestone set to v0.1.0
    • State changed from “new” to “open”
    • Milestone order changed from “6” to “0”

    Mid-solutions:
    1. Moved all HTML that isn't part of the unique content for a page into separate files.
    2. Created a routing file that takes in the current url and uses that as the title (changes dashes/hypens to spaces).
    3. Used same procedure as #2 but extended it to look for a folder by the same name as the current url that will contain the content of the page and navigation.
    4. Created a page-structure seperate file that takes in the entire basic structure of the page.

    All pages will be the same exact code now - just including the routing and page-structure files. Only differences will be the content and navigation in the content folders of each page.

  • S. Shehzed

    S. Shehzed December 6th, 2010 @ 12:31 AM

    • State changed from “open” to “resolved”

    This ticket was created because of huge amounts of html repeating. That is done. There is still some repetition since there is no routing done through a central controller, but instead each page includes the routing file and page structure which causes repitition. However this ticket was not created for this more 'advanced' problem. So it's done.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The long over due fixing and updating of the website.

Shared Ticket Bins

People watching this ticket

Pages