Same header and footer for multiple sites

Asked

Viewed 56 times

0

Good afternoon! I work in a company that manages several websites (joomla - on different servers). All with the same header and footer.

From time to time, we need to change all the headers and footers of all the sites.

This process, until then, is done manually. Thinking about the agility of this change process, I wondered if it would not be possible to create a server with this material and use some type of include, so I do not need to change one by one whenever necessary.

I did some research here, but I couldn’t find anything conclusive. Someone can give me a light?

  • And each site has a different server or are all on the same server?

  • They’re on different servers.

  • And you intend to include on all sites a file that is on another server?

  • @Thiagomaciel I found this Post that can help you https://answall.com/questions/34240/coloca-camio-do-site-em-include-php or you can use an iframe as well

  • @Andersoncarloswoss I believe so. I would like to know what would be the ideal.

  • @romulohenrique My first idea was iframe. Would you have any though? Or ideal solution?

  • @Thiagomaciel , from a look at the Linck that I commented, la ele ensina um metodo usando o Curl , gave a read on top I think q would help your problem

  • Guy Joomla is all in PHP even by default he already has some includes and requires... Why not continue with the includes? If you have a Bank for each site there is complicated even, but if it is only a bank will facilitate even more

  • The easiest is to keep a file on each server even and include it on the page with include; just automate the process of sending the new file to all Ftps, which is something quite simple.

Show 4 more comments

2 answers

0

just create an XSLT file, and have it uploaded to the body of all htmls with the onload event.

  • 1

    Could you explain a little more or give an example? The answer is very vague

  • Vague question deserves vague answer.

0

Searches the xslt language, it is used to leave xml files in html format. So when you change this single xml or even xslt, all htmls will be updated. But you have to do more research on this, not explain in a simple answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.