v1.18.x
Baris Usakli 7 years ago
parent 9a59aaa755
commit f177b01022

@ -3,5 +3,6 @@
"description": "Choose what page is shown when users navigate to the root URL of your forum.",
"home-page-route": "Home Page Route",
"custom-route": "Custom Route",
"allow-user-home-pages": "Allow User Home Pages"
"allow-user-home-pages": "Allow User Home Pages",
"home-page-title": "Title of the home page (default \"Home\")"
}

@ -33,7 +33,7 @@ categoriesController.list = function (req, res, next) {
},
function () {
var data = {
title: '[[pages:home]]',
title: meta.config.homePageTitle || '[[pages:home]]',
categories: categoryData,
};

@ -45,7 +45,7 @@ popularController.get = function (req, res, next) {
},
function (topics) {
var data = {
title: '[[pages:home]]',
title: meta.config.homePageTitle || '[[pages:home]]',
topics: topics,
'feeds:disableRSS': parseInt(meta.config['feeds:disableRSS'], 10) === 1,
rssFeedUrl: nconf.get('relative_path') + '/popular/' + (req.params.term || 'daily') + '.rss',

@ -61,7 +61,7 @@ recentController.get = function (req, res, next) {
if (req.uid) {
data.rssFeedUrl += '?uid=' + req.uid + '&token=' + rssToken;
}
data.title = '[[pages:home]]';
data.title = meta.config.homePageTitle || '[[pages:home]]';
data.filters = helpers.buildFilters('recent', filter);
data.selectedFilter = data.filters.find(function (filter) {

@ -54,7 +54,7 @@ unreadController.get = function (req, res, next) {
}, next);
},
function (data) {
data.title = '[[pages:home]]';
data.title = meta.config.homePageTitle || '[[pages:home]]';
data.pageCount = Math.max(1, Math.ceil(data.topicCount / settings.topicsPerPage));
data.pagination = pagination.create(page, data.pageCount, req.query);

@ -24,6 +24,9 @@
<span class="mdl-switch__label"><strong>[[admin/general/homepage:allow-user-home-pages]]</strong></span>
</label>
</div>
<br>
<label>[[admin/general/homepage:home-page-title]]</label>
<input class="form-control" type="text" data-field="homePageTitle" placeholder="[[pages:home]]">
</div>
</form>
</div>

Loading…
Cancel
Save