Community

Adding Extra Themes / Templates 1.0.6+

Showing 1 of 1
Adding Extra Themes / Templates 1.0.6+
by Nicholas
2 years ago
N

Nicholas

Support Dept.

Please, perform the following steps to add a new theme for phpListings 1.0.6:

Note: The template name must include only lowercase English letters.

1. Create a new directory, e.g.: 'newtemplate' in the /app/Views folder, and copy the contents of the /app/Views/default directory to that new folder.

2. Create a new theme class in the /app/Themes directory, e.g. /app/Themes/NewtemplateTheme.php using the contents of the /app/Themes/DefaultTheme.php script. Make sure to update the name of the class in that new script from

class DefaultTheme

to

class NewtemplateTheme

Note that you must use the new theme directory name as the file name and class name, but with the Theme suffix. Also note that the first letter must be capitalized for both.

3. When logged in as admin, visit the following URL:

https://www.domain.com/admin/themes/create (replace the www.domain.com value in this example with your directory installation domain/directory)

to create a new theme record in the database.

On the theme submission form set the 'Slug' field value to 'newtemplate' - the same name you used for the new theme directory.

Showing 1 of 1
pixel image