Overview
This article explains how to increase the maximum length of the page title from 200 to 300 characters in the DNN application. The problem is twofold: firstly, the database schema needs to be updated to allow for longer page titles; secondly, the front-end control also needs to be updated to reflect this change.
Solution
To increase the maximum length of the page title from 200 to 300 characters in a DNN application, follow these steps:
- Modify the character length of the 'Title' column in the 'Tabs' table in your database. You can do this by running the following SQL command: `ALTER TABLE Tabs ALTER COLUMN Title NVARCHAR(300) null;`
- Alter the 'UpdateTab' stored procedure in your database. This will require knowledge of SQL and the specific changes will depend on your current stored procedure (see attached the SQL script as updatetab.sql).
- In your site installation, locate the file `\DesktopModules\Admin\Dnn.PersonaBar\Modules\Dnn.Pages\scripts\bundles\pages-bundle.js`. In this file, find the second occurrence of "_maxLength:200_" and change the value to 300.
- Clear your browser's cache to ensure the new JavaScript file is loaded when the page renders.
Remember to take a backup of any file you modify and take a backup of the database before making any changes. Test any changes in a test environment before applying them to production. As this solution involves customization, there may be issues since changes are being made to JavaScript and database values and procedures.
Summary
This article provides a solution to increase the maximum length of the page title from 200 to 300 characters in a DNN application. It involves modifying the database schema and updating the front-end control.
FAQ
-
What is the maximum length of the page title in a DNN application?
The default maximum length is 200 characters. However, this can be increased by modifying the database schema and updating the front-end control. -
What files do I need to modify to increase the page title length?
You need to modify the 'Title' column in the 'Tabs' table in your database and the `pages-bundle.js` file in your site installation. -
What precautions should I take before making these changes?
Always take a backup of any file you modify and the database before making any changes. Test any changes in a test environment before applying them to production.
Comments
0 comments
Please sign in to leave a comment.