Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Adding content blocks to a static website

by bart (Canon)
on Sep 06, 2011 at 11:12 UTC ( #924358=note: print w/replies, xml ) Need Help??

in reply to Re^2: Adding content blocks to a static website
in thread Adding content blocks to a static website

And I'm not even considering developing "my own CMS".
Well, maybe you should. At least, think of it as an aready existing wheel: what you want is a CMS. So think of it how a CMS would fix this.

What you should do is consider the "static" page as a template. What you fill into the template is variable content. It can be page blocks: a postprocessed (so you're sure it is valid HTML, for example) version of what the user created.

There are CMS-ish systems on CPAN where you can produce static HTML pages out of user content. You should check those out. For example: Blosxom:

Blosxom can operate as a CGI script or produce static HTML files.
  • Comment on Re^3: Adding content blocks to a static website

Replies are listed 'Best First'.
Re^4: Adding content blocks to a static website
by blindluke (Hermit) on Sep 06, 2011 at 12:07 UTC

    Blosxom is a great project - but it's not a solution suitable for my purpose. I do not want to make adding content easier for myself. I want to provide a simple tool for the users. With Blosxom, they would have to create a structured text file in a specified location, then run the generator, then run something that syncs the generated content and the website. Even using "Save As..." is not a simple task, not for everybody. Navigating the directory tree is not simple as well - for some users, "it's on my computer" equals "it's on the desktop".

    This could all be simplified by writing a script that automates the process - it could be placed on the client's desktop, but still - the script would have to be written, Blosxom would have to be configured, and some problems would have to be resolved (even with basic instructions like "put the title in the first line of the text file, the author name in the second line..." - some validation would have to be provided, with two or more users - there will be problems with sync, and so on).

    I love the idea behind Blosxom, and tools like vee, and if I had a personal site, or a weblog, this would be my choice for content management. But those are not tools for this task, not for my users. Adapting them for this purpose would be at least as much work as writing an "Add-a-News-Item app". Again - this is not a question of managing a whole website, it's just about adding text-only news items.

    Luke Jefferson

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924358]
[chacham]: i'm reading an article on and thee is a disturbing message on the bottom right that says, "Fork me on GitHub". Maybe i just have a dirty mind.
[choroba]: Check the ninja on
[chacham]: oh my...
[Corion]: choroba++ # fixed width
marto has a Dirty_Mind on vinyl
[Corion]: Heh. The upside of this phone call was at least commendations from my cow-orkers on how clam I stayed and how I always brought the topic back to my priorities and the established processes of $work (them only getting half of the conversation).

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-08-17 13:02 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (287 votes). Check out past polls.