[PGtheme] Question about OVERALL :: Top Navigation - Link

jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Wed, 2006-04-19 20:34

How can I create another page, like an about page, and have the text displayed in template? Or do I have to create another module to display the contents?

===============

Gallery version = 2.1 core 1.1.0
PHP version = 5.0.4 cgi
Webserver = Apache
Database = mysql 4.1.18-standard-log, lock.system=flock
Toolkits = Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux serv01.siteground118.com 2.6.14.2-grsec-grsec-test #1 SMP Fri Nov 18 02:27:52 CST 2005 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)

=================

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2006-04-20 02:20

You don't have to write a new module as there is a one at:
http://codex.gallery2.org/index.php/Gallery2:User_Contributions#Modules
look for: Static HTML Page

I have not played with it but I bet you would have to add it to your breadcrumb.

Dave

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Fri, 2006-04-21 04:21

I wonder if there is a way, now that I have and am using the html module, for a link to show the static html page on the
OVERALL :: Top Navigation - Link

If I could do that, and find an javascript email page code, then I would be set. No more Joomla.
I would have all the items I need.

Any ideas?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2006-04-21 13:37

Not sure what you mean by "OVERALL :: Top Navigation - Link"
but you could try:
1. First create new subdir "local" in "gallery2/modules/core/templates/blocks/".

2. Copy BreadCrumb.tpl to this new subdir

3. Change local/BreadCrumb.tpl to add your html pages.

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Fri, 2006-04-21 13:59

Sorry, in the PG Theme settings, under the Overall settings, there is a line item to enter a URL.
It is called "OVERALL :: Top Navigation - Link". This is for the Top navigation on the right hand side.
http://www.avvedutiphotography.com/gallery/main.php
Here is my gallery, take a peek. Top right you will see the section for the "OVERALL :: Top Navigation - Link", the Login and Register are there.

You can see the static HTML module on the left.
However I need an About, and Contact Us links. It would see cleaner to have two or more liks at the top.

Your right, the breadcrumbs do not work. Thank you very much for the input.
I will start work on that.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2006-04-21 16:20

I have not played with that but you could try
/gallery/themes/PGtheme/templates/externalLinks.tpl

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Fri, 2006-04-21 19:08

Well, LOL, I just tried that and it is just for external links. I was thinking it might display inside the template. However it is just for going to other places.
The default is mysite.com.
I click on it and it goes to mysite.com..

There has to be a way of simply displaying the content of a simple page of code.
create a module where it adds links to the top and you add in the code, save and bam.

If I could get a start as to where the module is that is handling the links, I might be able to figure it out.
I could start at the externallinks.tpl... go from there I guess.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2006-04-21 19:34

edit http://www.avvedutiphotography.com/gallery/themes/PGtheme/templates/externalLinks.tpl and you can add links as you see fit. Edit the exsisting link in that file that goes to mysite.com to the links you want to display.

Am I not understanding what you want to do?

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Fri, 2006-04-21 23:42

Ok... what I am wanting to do is...
1. Have a link at the top to another section of the site. Not go to an external web page but display another part of the site. For example, if I wanted to display an "About" section. In this section it would contain About::Prints, About::Photographer... etc. in a standard <h3> <p> format.

2. Have a link at the top, by top I am meaning on the right side above where the gallery is being displayed in the same area as the "Login::Register::Options" links are, for "Contact Us". This would contain PHP code for an email form to email me.

I do not want to go to another site, which is what appears the "externallinks.tpl" is doing. Sure I can change it but it appears to be designed to Link to other areas of the web. Not display inside the template of my site.
I say this because when looking at the section, OVERALL :: Top Navigation - More links [?], I hover over the [?] and it tells me "You have to add Title and URL to the externalLinks.tpl" and a checkmark box beside it.

Is this more clear now?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2006-04-22 16:39
jaa1180 wrote:
I do not want to go to another site, which is what appears the "externallinks.tpl" is doing. Sure I can change it but it appears to be designed to Link to other areas of the web. Not display inside the template of my site.

Why not? Changing the text from:
<a href="http://mysite.com" title="activate 'OVERALL :: Top Navigation - More links', to add links customize 'externalLinks.tpl'">A link to Mysite</a> to
<a href="http://www.avvedutiphotography.com/About.html" title="About: Photographer">About Photographer</a> would work. It places the text and links in the location you want. There is also a configuration for this in the theme config. In the config section of the theme there is:

Quote:
OVERALL :: Top Navigation - Link [?]
OVERALL :: Top Navigation - URL for this Link [?]
OVERALL :: Top Navigation - Other Link
OVERALL :: Top Navigation - URL for this Link
OVERALL :: Top Navigation - Other Link
OVERALL :: Top Navigation - URL for this Link
OVERALL :: Top Navigation - More links [?]

It Does NOT have to be external links. I CAN be links to YOUR site as well.

If that is not what you want then I can't help you.

Perhaps some one else will make is automatic for you.

Dave

 
jaa1180

Joined: 2005-02-11
Posts: 48
Posted: Sun, 2006-04-23 00:39

Ok, so if I am understanding it correctly, you are thinking that some how by creating an about.html the gallery program
will read the file and display it in the template area?

I am not a full or part time coder so bear w/ me please.
Ok let me see if I understand... I orginally asked how to use the static html module, but instead of accessing it through the side bar on the left, I want a nice link at the top. You are saying I can just add in a simple about.html to the externallinks.tpl (of course code the page) and it will do the same function as the module?

Am I reading that right? Or are we talking about two different things?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2006-04-23 05:27
jaa1180 wrote:
I orginally asked how to use the static html module, but instead of accessing it through
the side bar on the left, I want a nice link at the top.

I thought that you said you had a working html module because you said:

jaa1180 wrote:
I wonder if there is a way, now that I have and am using the html module, .....

Do you have a html module working?

jaa1180 wrote:
Ok, so if I am understanding it correctly, you are thinking that some how by creating an about.html the gallery program will read the file and display it in the template area?

No you have to create an "about' file with the html module.

jaa1180 wrote:
I am not a full or part time coder so bear w/ me please.

Nor am I. I do this free help to give back to the project.

jaa1180 wrote:
Ok let me see if I understand... I orginally asked how to use the static html module, but instead of accessing it
through the side bar on the left, I want a nice link at the top. You are saying I can just add in a simple about.html
to the externallinks.tpl (of course code the page) and it will do the same function as the module?

No.

jaa1180 wrote:
Am I reading that right? Or are we talking about two different things?

We are talking two different things.
1.> you can create an "about" page with the html module. (edit the .tpl file to you needs)
Have you installed that module? I thought that you said you had a working html module because you said:

jaa1180 wrote:
I wonder if there is a way, now that I have and am using the html module, .....

Did you edit it to create a about page?

2.> don't add the static html page to your sidebar. (edit album > "Blocks to show in the sidebar" don't add the html module)

3.> Edit externalLinks.tpl to add your new link to to your new about page that you created with the html module or add that new link to the config of the module.

Dave