Mobile app version of vmapp.org
Login or Join
BetL925

: Yes, frames are getting obsolete. Other methods that allow you to include a single element onto multiple pages include SSI, or a single JavaScript script that adds the element to each page

@BetL925

Yes, frames are getting obsolete. Other methods that allow you to include a single element onto multiple pages include SSI, or a single JavaScript script that adds the element to each page (and each page then calls the single SSI or JS, which can be edited once to update the whole site).

You mention PHP, which can be used to have common elements across a site. You can include a separate PHP script with the include() function, which can include a separate script that draws the navigation. Or you can implement a whole template system, like Smarty, which gives lots of control.

You will have to add some HTML (or PHP or JS if you go that route) to each page, but only a small call to an external source. Ideally the call to the included sidebar won't change in the long run, and any changes to the sidebar will be done in the sidebar file (one edit that updates the sidebar across the site).

10% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme