[RFC|Replaced] topic_title, forum_title hook

These event requests have either been rejected by the community or have become redundant because of code changes or other events requests.
Post Reply
parasolx
Registered User
Posts: 10
Joined: Mon Feb 02, 2009 3:07 am

[RFC|Replaced] topic_title, forum_title hook

Post by parasolx »

* Name: hook_topic_title, hook_forum_title

* Rationale: it allow to modified the title display of topic title. by passing this hook, it can be used to re-write the actual URL to be more clean by hook it into SEO MODules (seo MODX). also rest MODX such as topic title can easily altered to add tag like [SOLVE], [REQUEST]. also it can capable feature MODX to create auto-topic title by applying any TOKEN based on forum or scheme provide such as date, user create or rest.

* Placement: include/posting.php, viewtopic.php, viewforum.php

* Input arguments: $title, $recursive = null (this will include an array to altered or will be addon by other MODX), $permission

* Output format: $topic_title, $forum_title

* Output semantics:

Code: Select all

$posting_title = hook_topic_title($posting_title, $recursive = null, $permission);
* Infrastructure: void

* Related: hook_topic_row, hook_forum_row

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: topic_title, forum_title hook

Post by MichaelC »

This is already added in the viewtopic and viewforum events.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Post Reply