Last Comment Bug 380348 - Create new RDF-based title-override mechanism
: Create new RDF-based title-override mechanism
Status: RESOLVED INVALID
:
Product: Mozilla Developer Network
Classification: Other
Component: General (show other bugs)
: unspecified
: All All
: -- major (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-10 17:13 PDT by Eric Shepherd [:sheppy]
Modified: 2012-09-18 23:12 PDT (History)
4 users (show)
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Eric Shepherd [:sheppy] 2007-05-10 17:13:05 PDT
Since we're not using RDF for our upcoming breadcrumb system, we should look at leveraging that to implement title-override.

This new title-override should also be able to override the main article title, not just the one in the breadcrumbs.

Adding a template of the form {{titleOverride|new title here}} should insert an RDF entry for the page; then, when rendering pages, we should check for that entry and use it for the page title and breadcrumbs as applicable.
Comment 1 Nickolay_Ponomarev 2007-05-10 21:15:38 PDT
> Since we're not using RDF for our upcoming breadcrumb system
Since we _are_ using RDF... got me confused for a bit.
Comment 2 Mike Shaver (:shaver -- probably not reading bugmail closely) 2007-05-11 07:32:27 PDT
(In reply to comment #0)
> Since we're not using RDF for our upcoming breadcrumb system

"now using"?

> Adding a template of the form {{titleOverride|new title here}} should insert an
> RDF entry for the page; then, when rendering pages, we should check for that
> entry and use it for the page title and breadcrumbs as applicable.

We need to take care that we don't end up with the ghost-override problem we had before, where removing the TO indicator doesn't remove the TO entry in the database. I don't know how the RDF arc management works; removing the TO arc at the very beginning of the save process would likely work.

(As long as the TO template is processed at save time, and not just parse time, that is!)
Comment 3 Eric Shepherd [:sheppy] 2007-05-11 07:35:33 PDT
Oops.  That was supposed to be "now using," yes.

The RDF gets updated automatically any time you save an edit to a page (this is done already), so if you remove a T-O, saving the page will remove the RDF from the database.
Comment 4 Eric Shepherd [:sheppy] 2009-02-04 12:06:49 PST
Invalid now that we're on Deki.

Note You need to log in before you can comment on or make changes to this bug.