- Global configuration
- Changing the static pages text
- Setting the publication list
- Setting the server
- Make the website run
A test can be found at my webpage.
This is a template to create a professional website for reaserchers.
I created it based on the jekyll hydejack theme. But the Julien Flamant template seems easyer if you want to use Jekyll (his template is inspired from the hydejack theme also).
On the contrary, my template requires some skills in HTML and, eventually, some other in php. It was a way for me to learn smart php programming. Its structure is Model/View/Controller.
Conclusion: This theme is Ok if you want to play with php. You can also use it with html-only coding also, but you will have less flexibility (you could not add or remove a page, as an example).
- A php-based professional website.
- Composed of 6 basic pages: Home/ About me, Publications, Reasearch activities, Teaching, CV and Find-me.
- The zones to modify for website personalization are well defined.
- A configuration file for the global behavior of the website.
- Handles social links (academic or not).
- The publications and talks lists are handles by a sqlite3 file (cf this section).
- Responsive website.
The global configuration of the website is defined in the config/config.php
file. The three main sections are:
- Site description: Title of the website, author, description, etc.
- Icons and images: The website icons and images links.
- Social: The social media definition.
All information about the modifications to give are described as comments in this file.
The website is composed of 6 pages which are described in the following table with appropriate file to modify.
Webpage | Description | File |
---|---|---|
About me | Quick presentation with main skils. | view/en/indexView.php |
Publications & Talks | A list of the publications and talks. | view/en/publicationView.php |
Reasearch activities | A detailed description of your reaserch interests. | view/en/reaserchView.php |
Teaching | A description of your teaching activity. | view/en/teachingView.php |
CV | CV | view/en/curriculumView.php |
Find Me | Informations to contact you, your phone number, location. | view/en/findmeView.php |
Note: The Publication & Talks content should not be modified. Please have a look to the next section for more explanations.
Inside the associated files, the html section to modify is located beetween the <?php ob_start(); ?>
and <?php $content = ob_get_clean(); ?>
lines.
Take care to have a valid HTML code.
The publication list is automaticly created based on the data stored in the central sqlite3 database. This file is located at model/Publications.sqlite3
. To open and modify this file intuitively, I recomend you to use DB Browser for SQLite which is cross-plateform.
Once the file is open, your can observe that 4 tables are created:
InternationalConference
which gathers the International Conferences talks,InternationalJournal
which gathers the International Journal papers,NationalConference
which gathers the National Conferences talks,SubmittedInternationalJournal
which gathers the Submitted International Journal papers.
Each of these tables is composed of the following cells:
- ID: this is an ID number which is auto-incremented. You should NOT inform this cell when creating a new entry.
- IDtext: this is a small ID (whithout space) you should give when creating a new entry. This should be quite descriptive.
- Citation: HTML-style citation of the paper.
- Abstract (optional): Full abstract of the paper.
- BibTex (optional): Full bibtex of the paper.
- ArXiV (optional): ArXiV link of the paper.
- Pdf (optional): relative link of the paper pdf (e.g.
/public/pdf/2017_icassp.pdf
). - Web (optional): web link to the paper.
- Code (optional): relative link of the paper code (e.g.
/public/codes/2017_icassp.zip
).
DB Browser for SQLite is quite intuitive. Select the table and add/remove the entries. For the moment, be sure that the entries are ordered from the older to the most recent.
The serer should have the right configuration to handle sqlite files with php.
- Make sure that the sqlite driver for php is installed. On Linux, the package is
php-sqlite3
for php7 andphp5-sqlite3
for php5. - Configure php to use this driver by de-commenting the following lines
extension=php_pdo.dll
extension=php_pdo_sqlite3.dll
in the configuration file. The configuration file location can be found by using php --ini | grep 'Loaded Configuration File'
in the Linux command.
Upload the files at your server internet root (classicaly /var/www/your-domain.fr). Go to your navigator and test your website.
The code has been developped and tested using php 7.0 on Ubuntu 16.04 LTS.
Written by Etienne Monier.
This project is licensed under the terms of the MIT license.