How to create additional page to Gallery2?

Twilight4Ever
Twilight4Ever's picture

Joined: 2006-08-07
Posts: 130
Posted: Mon, 2009-12-21 03:48

My G2 is my entire site. I want to create a new page (order.php) that looks just like all the other gallery pages, except that instead of a photo or album, have content. I'm not sure if this is what htmlblock is for (I looked over the instructions, but I don't really need a block). Any ideas?

________________________________________________
NOT a "Twilight" fan... Just a fan of sunsets. :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2009-12-21 05:04

You could edit the about ( http://codex.gallery2.org/Gallery2:Modules:aboutpage ) or contact owner ( http://codex.gallery2.org/Gallery2:Modules:contactowner ) modules.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2009-12-21 11:00

You definitely want the HTMLblock module. See the module instructions:
http://codex.gallery2.org/Gallery2:Modules:htmlblock: "Display HTML pages."

That's how I use it.

 
Twilight4Ever
Twilight4Ever's picture

Joined: 2006-08-07
Posts: 130
Posted: Wed, 2009-12-23 03:41

I'm a bit confused about HTMLBlock. I followed the instructions, and I've got it going, but I thought it would display a link in the sidebar to a new page, rather than displaying the page's content in the sidebar.

 
Twilight4Ever
Twilight4Ever's picture

Joined: 2006-08-07
Posts: 130
Posted: Wed, 2010-01-13 00:59

To reiterate, I was looking for a separate page of its own, like order.php, to have the same template as the gallery. I can easily link the page to Gallery, that's not a problem. But I'm not looking for the content to be in a sidebar, like HTMLBlock does.

________________________________________________
NOT a "Twilight" fan... Just a fan of sunsets. :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2010-01-13 02:48

The HTML block module will do that for you but the docs for it are not complete.
The community has given the module and it was up to the community to do the docs. Seems that the users just want to take and not give back. When I get time I will see what I can do to fix the lack of community contributions.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2010-01-13 03:10

* install and activate the rewrite module
* install HTML block the module
* activate HTML block module
* configure the rewrite rule to allow the html block module to use the default file/%file%
* Admin -> html Block ... add a new file called test.html with some text, click: Save
* you should now be able to browse to:
** http://example.com/gallery2/file/test.html

* Now you can use the links in head module to add a link to the new file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Twilight4Ever
Twilight4Ever's picture

Joined: 2006-08-07
Posts: 130
Posted: Tue, 2010-02-09 02:30

You, Dave, are wonderful. Thank you. :)

floridave wrote:
* install and activate the rewrite module
* install HTML block the module
* activate HTML block module
* configure the rewrite rule to allow the html block module to use the default file/%file%
* Admin -> html Block ... add a new file called test.html with some text, click: Save
* you should now be able to browse to:
** http://example.com/gallery2/file/test.html

* Now you can use the links in head module to add a link to the new file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

________________________________________________
NOT a "Twilight" fan... Just a fan of sunsets. :)