H-PaGe is a PHP program for generating dynamic web pages on the fly from a specification file. It allows separating a website's design from its content so pages do not need to be created physically. Websites generated by H-PaGe have a standardized structure including pictures, menus, and contents specified in a configuration file called "web.config". This file defines elements like the color scheme, images, and menu items for the site.
Drupal 8 configuration management
Video of the presentation: http://2014.drupalcampmsk.ru/node/44 (Russian)
You can also check my article on this topic: http://amazeelabs.com/node/1093 (English)
Alexander Tkachev @ Amazee Labs
DrupalConf Moscow 2014
Drupal 8 configuration management
Video of the presentation: http://2014.drupalcampmsk.ru/node/44 (Russian)
You can also check my article on this topic: http://amazeelabs.com/node/1093 (English)
Alexander Tkachev @ Amazee Labs
DrupalConf Moscow 2014
A slide presentation for local Drupal multi-site set-up. This is for beginners wishing to learn more about Drupal and want to try it in their local PCs, Windows or Linux.
A slide presentation for local Drupal multi-site set-up. This is for beginners wishing to learn more about Drupal and want to try it in their local PCs, Windows or Linux.
Presentation that I will give at the 2011 IEEE Ultrasonics Symposium, Orlando, Florida.
In this presentation I describe 2 ideas of how to decrease grating lobes in the beam patterns, by building array transducers with non-rectangular elements.
Despre influenta crizei economice din 2009-2010 asupra Politicii Agricole Comune in Romania. Exista 2 hyperlinkuri in slide-ul 20 (poze stanga). Poza din ultimul slide este tot un hyperlink dar din pacate spre o alta prezentare.
Creating and Deploying Static Sites with HugoBrian Hogan
Most web sites don’t have data that changes, so why power them with a database and take the performance hit? In this talk we’ll explore static site generation using Hugo, an open-source static site generator. You’ll learn how to make a master layout for all pages, and how to use Markdown to create your content pages quickly.
Then we’ll explore how to deploy the site we made to production. We’ll automate the entire process. When you’re done, you’ll be able to build and deploy static web sites quickly with minimal tooling.
An exploration into what a WordPress theme is. How does it work and what is it made up of?
If you're interested in getting into theme development this presentation will help you get started on that journey.
Creating Custom Templates for Joomla! 2.5Don Cranford
In this presentation to the Dallas/Fort Worth Joomla User Group, we covered the basics of custom Joomla templates for Joomla 2.5. We discussed:
The Basics of Joomla Templates
- Overall File Structure
- templateDetails.xml file
- index.php file
Some Advanced Template Topics
- HTML Overrides to override the output of Joomla components and modules
- Template Parameters to use in the Template Styles
- Language Overrides
Two Methods of Installing Your Custom Template
Stepping into theme development can be daunting. Sure anyone with a little PHP skill and a basic understanding of the loop can create theme templates, but there are a number of things you can learn which can take your theme development to the next level. We’ll discuss the skills that can take you from a beginner theme developer to a master.
A video of this talk given in Boston, MA can be seen at https://www.youtube.com/watch?v=IdMEOO0JmZA
(Updated for 2017)
2. Background (why)
• The structure of the DTU web pages is quite
complicated (http://www.oersted.dtu.dk)
• The designer must replicate the menu for
each web page.
• The idea – keep them separate. The
designer just writes the content.
3. What is H-PaGe
• H-PaGe is a program
for generating
dynamic web pages.
• Written in PHP.
• Pages do not exist
physically.
• Created on the fly
from a specification.
4. Structure of Ørsted’s Pages
• Pictures:
– Upper left and right
– Middle left and right
– Lower left.
• Menus:
– Top.
– Left.
– Bottom.
• Contents
5. Structure Of a Web Site
• Here ”web site” means a place to which we
return when we click on a button ”home”.
For example Ørsted’s site.
• The personal web sites are located at:
http://www.oersted.dtu.dk/personal/$USER
6. Directory Structure
Each web site has one ROOT DIRECTORY and a
number of sub-directories
root_dir sub_dir_1
sub_dir_2
sub_dir_3
The ”root_dir” for the personal pages is on the
web server under: /home/$USER/2www/
7. Create Web Page With H-PaGe
1. Obtain the distribution of H-PaGe.
2. Copy ”index.php” to the root directory, for
example in ”/home/$user/2www/”.
3. Specify your web site in the file ”web.config”.
Give color scheme, names of pictures, etc.
”web.config” is in the same directory as
”index.php”
4. Create the files with the contents for each of the
web pages in your web site.
8. What Is ”web.config”?
• ”web.config” is a file with commands to the server
defining the looks and the structure of the web site.
• ”web.config” is created with a text editor. For example
Word Pad or NEdit.
• The file looks like this:
<?
// This is a comment
# This is also a comment
/*This is also a comment*/
set_style(’green.css’); // This is a command.
?>
9. Define Color Scheme
The color scheme is defined with a command set_style
<?
set_style(’name_of_style.css’);
?>
Possible options are:
• green.css, red.css, blue.css,
lila.css, cyan.css, brown.css
These files define not only the colors, but also the font
names, sizes, etc.
10. Specify Images
Images are added by the command add_image.
<?
//add_image(’position’,’file’,’descript’,’link’);
add_image(’upperright’,’dtu_logo_ur_green.gif’,
’DTU’, ’http://www.dtu.dk’);
add_image(’middleright’,’~/pictures/sn_name.png’,
’SN’);
add_image(’menu_line’,’.pictures/line_blue.gif’);
?>
11. The Images
upperleft upperright (600 x 20)
middleleft middleright
(151 x 72) (600 x 72)
menu_line (130 x 3) or (130 x 1)
lowerleft
(151 x 72)
12. Create Menus
H-PaGe was initially developed to create the menus
automatically from the directory structure.
/31000 --+-- /Slides
+-- /Notes Home
+-- /Exam
Slides
Notes
Exam
../31000 contains:
index.php,
web.config
13. Expected Files
In the root directory, say, 31000, it is expected to
have ”index.php”, ”web.config”.
In the rest ot the directories, ”index.php” expects to
find a file with a name ”main.html”, or ”main.htm” or
”main.txt”.
If you make sub-directories, they will appear as
sub-menus.
Only the menu on the left can be created like this.
15. Specifying Menus In web.config
Items in the mennu can be added to the web site from
web.config using the command add_menu.
<?
//add_menu(’position’,’text’,’directory’,’file’)
// Absolute web address
add_menu(’top’, ’DTU’, ’http://www.dtu.dk’);
// Specify only directory
add_menu(’bottom’, ’Pictures’,’./pictures’);
// Specify directory and file
add_menu(’left’,’Links’, ’./’, ’links.html’);
?>
16. Other Commands
show_updated(’true’);
set_substitute(’true’ | ’false’);
add_bottom_text(’Some text instead of menu’);
set_title(’Some title for the page’);
Some Browser – Title of
page
http://www.oersted.dtu.dk
bottom_text
Last updated: 1 Jan 1970
17. The Contents
The contents are
simple html files.
Usually their name contents
is ”main.html” if
you work with
directory structure.
These files can be created with any editor – text or
web editor. They can even be simple text files
without any HTML formatting.
18. Things To Remember
• All links are relative to the root directory,
not to the current file with contents.
• Do not use any formatting on the page like
”background color”, ”text color”, etc. The
CSS files take care of it.
• Make pages as simple as possible.