+ 1

Hundreds of webpages, updating navigation bar or others

Well, it's a problem that I'm thinking, but not in that situation, for example, I have hundreds or thousands of webpages, and they have of course, navigation bar, or anchor element connected to main webpage. Then one day, you want to change the navigation bar, or you want to update the anchor href, is it possible? Or it's not? Is there a way I should know on how? I know it's important to make the template first, before making copies, well, changing template can be updated by css, but what if you want to change the html and there are thousands of copies, how to update that? Is there a way?

8th Aug 2021, 4:56 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
6 Antworten
+ 4
For frontend web, unfortunately you cannot split the html page into different mudules. However you could modularize your webpage, create JavaScript layout, more easier way is create layout web component using JavaScript framework like React.js. You could also use JavaScript templating engine like Moustache to make web template with different modules. For modern web build, I wouldn't advise you to use jQuery to make web components. jQuery is a obsoleted web technology, many old jQuery web apps are converted to modern JavaScript app using latest JavaScript framework. ---- If you work from backend, you could modularize your html page by using server scripts e.g. PHP and Nodejs. The server side renders the html page by combining the selected article module with common modules such as header, nav, sidebar and fooer, whenever browsers request any page from server .
8th Aug 2021, 7:30 AM
Calviղ
Calviղ - avatar
+ 1
Jonathan P. Jundarino There is load function in jQuery. You can load any html in html using JavaScript/jQuery https://www.google.com/amp/s/makitweb.com/how-to-include-html-page-with-jquery/amp/
8th Aug 2021, 5:29 AM
A͢J
A͢J - avatar
+ 1
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ Thanks, that was very helpful
8th Aug 2021, 5:44 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
0
Jonathan P. Jundarino If you have included same navigation file in all files then it would be easy to manage. If it's not like that then you have to update phase by phase.
8th Aug 2021, 4:58 AM
A͢J
A͢J - avatar
0
A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ wow, how do you do that? Then how you include it in the html file? Where I can learn to do that? Sorry I can't get what you mean, but the idea, yes, but how?
8th Aug 2021, 5:03 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar
0
Calviղ Okay thanks, I do want to learn backend now.
8th Aug 2021, 8:46 AM
Jonathan P. Jundarino
Jonathan P. Jundarino - avatar