Coder Social home page Coder Social logo

Comments (9)

ChrisZieba avatar ChrisZieba commented on September 27, 2024

Generating a sitemap would be a pretty simple addition. The menu could also be added to each static page when it's saved, then replaced with JavaScript when the page is loaded. Adding a sitemap may be enough, not too sure.

from dodgercms.

etopian avatar etopian commented on September 27, 2024

Is there any actual need for the dynamic menu? What are the benefits of having a dynamic menu on the published site?

from dodgercms.

ChrisZieba avatar ChrisZieba commented on September 27, 2024

Let's say you delete an entry. If you go to a different entry in your system on the front end, the menu would still show the one you deleted. If the menu were static, every page would need to be regenerated each time the uri structure of any entry were edited or deleted.

from dodgercms.

etopian avatar etopian commented on September 27, 2024

Ok. So you don't have to regenerate the entire site structure because of this. Interesting.

from dodgercms.

etopian avatar etopian commented on September 27, 2024

... and what about the breadcrumbs, is there a good reason to keep them dynamic as well?

from dodgercms.

ChrisZieba avatar ChrisZieba commented on September 27, 2024

It's the same reasoning. For example, let's say this is your URL structure.

root
│   index
└───folder1 (Docs)
    │   install
    │   help

Docs is the label for folder1. The breadcrumbs for the pages /folder1/install and /folder1/help would be Home >> Docs >> Install and Home >> Docs >> Help.

If I change the label for folder1 to Documentation, the breadcrumbs would be incorrectly shown, unless I recompiled each static page in that folder with the new information.

This is the reason it's dynamic - to prevent each page from having to be regenerated each time entries/folders are edited, added and removed.

from dodgercms.

etopian avatar etopian commented on September 27, 2024

Ok. So let's give users a choice of incorporating a static version of the breadcrumbs and menu that is then removed and replaced with a dynamic version. Which obviously will be outdated, but will allow the site to get indexed by bots that don't parse dynamic content. And I guess also add a sitemap.

from dodgercms.

ChrisZieba avatar ChrisZieba commented on September 27, 2024

A static version would be a good. I've been thinking of adding a button in the backend that goes through each entry and updates its html and pushes it up to s3.

from dodgercms.

etopian avatar etopian commented on September 27, 2024

That would probably be ideal. To have a way to regenerate all the pages that is not mandatory. The only concern would be the amount of time it takes to perform the operation. Any concerns with timeouts, etc.

from dodgercms.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.