wiki | forum | trac | otrs | joomla | tech blog | mailman | bewelcome Branches: test.bw | alpha.bw | www.bw Participate: download | get involved

Ticket #272 (new improve feature)

Opened 8 months ago

Last modified 4 months ago

Title for BW pages

Reported by: jeanyves Assigned to: guaka
Priority: critical Milestone: 0.5.2-short cleanup and framework
Component: BW General Version: all
Keywords: title, easy Cc: lemon-head, steinwinde
Follow up needed: review code Frequently reported: 1
Announce on BW: 0

Description

Currently all BW page in PT mode have the same title : BeWelcome

this is to improve and a core feature is to be designed

for example : - forum thread page should have teh title of the thread - cities pages should have "Bewelcome members in XXXX" as title etc etc ...

This is quite important for pages visibility, so I put this in critical

Change History

01/07/08 20:46:20 changed by micha

  • milestone changed from unassigned to 0.1.2 - more improvements & bugfixing.

It should be possible to solve this in the next release.

01/15/08 01:51:10 changed by lemon-head

Please have a look at 'text/en/page.php', and 'text/de/page.php'.

There the variable 'PVars::getObj('page')->title' is set, which is later read in 'templates/page.php' to determine the page title.

The appropriate place to set a title could be the View classes..

02/02/08 04:18:33 changed by lemon-head

  • follow_up changed from none to review code.
  • owner set to lemon-head.
  • status changed from new to assigned.
  • component changed from unknown to BW General.

See [3915] and [3916]

We need to

  • decide if this is a good way to create the titles.
  • decide if the chosen titles are ok.
  • when we're happy with it, do the same for other applications.

(follow-up: ↓ 6 ) 02/02/08 04:19:30 changed by lemon-head

Not to forget:

  • use MOD_words for the page titles!!

02/02/08 05:13:51 changed by lemon-head

(in reply to: ↑ 4 ) 02/02/08 08:16:24 changed by jeanyves

  • cc set to lemon-head, steinwinde.

Replying to lemon-head:

Not to forget: * use MOD_words for the page titles!!

Good I think this is the idea in general. One point, how to change this title elsewhere than in Page*.php something ? Could it be possible to have a methot for this like Page->SetTitle?($newTitle) ?

It should also be compatible with the new PT version.

And in the same idea, I would like to have (just like in old BW) a :

Page->SetMetaKey?() : to set the meta key word to something tunable (with a default value)

Page->SetMetaRobot?() : to set the meta key for robot to something tunable (with a default value)

02/12/08 19:37:27 changed by lemon-head

  • keywords changed from title to title, easy.
  • freq_reported set to 1.
  • show_on_bw changed.

Now that we know how it works, it should be easy to introduce additional page titles.

PVars::getObj('page')->title = "Collecting stamps is sexier than traveling - BeWelcome Groups";

(you can do that in the view classes)

03/11/08 00:40:05 changed by lemon-head

  • owner deleted.
  • status changed from assigned to new.

Anyone can do this - so I make the ticket open for everyone.

Btw, with the new #436 architecture, a page title is set by overwriting the method inherited from RoxPageView::getPageTitle()

04/04/08 16:56:45 changed by guaka

  • owner set to guaka.

04/04/08 18:41:08 changed by guaka

I tried getPageTitle thing, but it didn't work. I'll try again later.

04/04/08 19:40:00 changed by jeanyves

Andreas and Felix probably have ideas about this.

When you will have find the solution, I will be very happy to have a a thread as title of the page for each forum page thread.

JeanYves?

04/11/08 01:11:11 changed by lemon-head

@guaka:
If you really want to find out, I recommend the following:

  1. make a fulltext search for "$Page->title" (or "$page->title), and "PVars::getObj('page')->title". This should be quite revealing for those applications that work with the PVars::getObj('page') global.
  1. Some newer applications all define their pages as subclasses of "PageWithRoxLayout" (formerly known as "RoxPageView"). PageWithRoxLayout has a method called getPageTitle(), which by default returns "BeWelcome". To define a different page title, you have to override this method in the specific subclass.

You can see this happen in the definition of PersonalStartpage::getPageTitle(), which returns something like "Welcome, Username".

04/23/08 12:06:32 changed by philipp

  • milestone changed from 0.1.4 - improving userinterface for members and volunteers and start work on big 0.2 tasks to 0.5.2-short cleanup and framework.

04/27/08 20:33:15 changed by guaka

for searchmembers: r4638

Trac Customization: trac stylesheet
SourceForge.net Logo