Repository navigation
Home
Version: 1.2
A lightweight Movie Database Manager for GetSimple CE to manage, display, and search movie catalogues.
- Add Movies: Add movie details, including title, release year, genre, poster URL, trailer link, and IMDb link.
- Manage Catalogue: Search movie titles, edit existing records, and delete entries.
- Export Catalogue: Export your entire movie collection as a downloadable CSV file.
- Frontend Movie Grid: Display your movie catalogue on any GetSimple CE page.
- Frontend Movie Search: Allow visitors to search your movie collection.
-
SEO-Friendly Movie URLs: Support movie URLs using the
/movies/any-slugformat.
In the Movie Database Manager interface, click "+ Add New Movie" to add a movie.
Populate the available fields, including:
- Movie title
- Release year
- Genre
- Poster URL
- Trailer link
- IMDb link
Save the record to add the movie to your catalogue.
Use the management interface to:
- Search for movie titles using the header search box.
- Edit existing movie records.
- Delete movies from the catalogue.
Click "Export Catalogue" to generate and download a CSV file containing your movie collection.
You can display your movie database grid on your website using a shortcode or a PHP template function.
-
Create a new GetSimple CE page named Movies.
-
Add the following shortcode to the page content:
(% movie_db_grid %) -
Save and publish the page.
The movie grid will be displayed on the Movies page.
To display the movie grid directly within a theme template, insert the following PHP function where you want the grid to appear:
<?php get_movie_db_grid(); ?>You can add a movie search feature to your website using a shortcode or a PHP template function.
Add the following shortcode to the content of the page where you want the search feature to appear:
(% movie_db_search %)
Save and publish the page to make the search feature available on the frontend.
To display the search feature directly within a theme template, insert:
<?php get_movie_db_search(); ?>To support movie URLs in the format /movies/any-slug, add the following rewrite rule to your root .htaccess file:
RewriteRule ^movies/(.*)$ index.php?id=movies&movie=$1 [L,QSA]This rule routes requests under /movies/ to the GetSimple CE page with the ID movies, passing the movie slug through the movie query parameter.
For example:
/movies/inception
is internally routed to:
index.php?id=movies&movie=inception
- Ensure that Apache's
mod_rewritemodule is enabled. - Place the rule within the appropriate rewrite configuration, typically after
RewriteEngine On. - Check your existing
.htaccessfile for conflicting rewrite rules. - Ensure that the
moviespage exists and that the application correctly handles themoviequery parameter. - Back up your existing
.htaccessfile before making changes.