Hello this is my very first discussion here, I would like to extend a flarum extension The thing I want to do is I have to add title to the page added by 3rd party extensions like [Login to see the link] here the group, [Login to see the link], etc.
Usually to add title:
Extend Index Page Prototype and our page content then oncreate function:
import app from 'flarum/forum/app';
import Page from 'flarum/components/Page';
import IndexPage from 'flarum/components/IndexPage';
export default class mycustomPremiumPage extends Page {
oncreate(vnode) {
super.oncreate(vnode);
app.setTitle("This is my Custom Page");
app.setTitleCount(0);
}
}
But the problem is that I have to extend another extension here so any ideas?