How best to manage a large site?

User 1471420 Photo


Registered User
60 posts

Hi guys

We have a quite large site with pages that reuse the same elements, content div's, navigation bar, for example, on every page.

What is the best way to update all of these elements across the whole site in one go? At the moment we have to manually edit each page for small changes in page content but haven't been able to find a way to do this easily and quickly, is there a way to do this in RSD?

Thanks :)
User 2088758 Photo


Senior Advisor
3,121 posts

No there is no quick way at this moment. I hear they will be bringing in libraries in a future update which will let you do what you want.
Taking over the world one website at a time!

Steve Kolish
www.misterwebguy.com

YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
User 78051 Photo


Registered User
201 posts

the best way you could achieve this is by using "includes" but you would need to change your page file names to use either the .php or .asp extension rather than .htm or .html

Using an include basically means that you have 1 page set up just with the navigation (for example) and then using an include (for php it would be <?php include("pathtoyour/navigation_file.php"); ?> )

Replace the navigation code on all your pages with the include statement and then all you have to do is update the navigation file once and the change is reflected across all pages.

You can do this with any elements in your site that are common across multiple pages.

Jamie
User 1471420 Photo


Registered User
60 posts

Great tip Jamie thanks very much for that. Perfect solution :)
User 78051 Photo


Registered User
201 posts

Youre welcome :) If you need any help with setting it up just holler!

Jamie
User 2843676 Photo


Registered User
11 posts

Jamie, after looking at your e-commerce sites this was exactly what I to was wondering. My PHP Autodealer software is built this way. The root index.php file contains only include functions to set session, pull in includes.php file, templates/$template/header.php, templates/$template/home.php, templates/$template/footer.php and a mysql_close($link) statement. $template refers to the name of whichever template (currently 4 options) that user has set in root/config.php file.

Now to figure out how to create this structure w/RSD. Goal is to create multiple new RSD templates to replace the 4 fixed width templates.
I'd really like to 'Pick' your brain on this as you seem to be the only one here familiar with using RSD to build PHP dynamic sites.

Don
User 78051 Photo


Registered User
201 posts

Hey Don
You're more than welcome to pick my brain - it wont take long! There are a lot of talented people on the forum so dont discount getting help from others ;)

Jamie


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.