rafd / SkuleCMS

Club server project by the UofT Skule Web-Dev Club
http://myego.ca/webdev/projects/SkuleCMS/
12 stars 7 forks source link

overhaul title system #13

Open rafd opened 15 years ago

rafd commented 15 years ago

Currently, title is always: Skule.ca : "controller" - "action"

This must be made relevant to the content at hand.

"page/content name" - "originator"

Ex. The Digest - Skule "Page Name" - WebDev

rafd commented 15 years ago

also, worth including the 'controller' - 'action' for development purposes at the end of the title... but only when server is set to development mode, use:

if RAILS_ENV.to_s == "development" ...

raymondlam commented 15 years ago

Might need to create a @title variable that needs to be assigned for every controller action.

rafd commented 15 years ago

...or a universal partial with lots of case statements based on the controller/action ...or partials inside of each view directory

It's a question of "what's easiest to maintain" ... needs some thought. The universal partial may be the quickest to implement for now.