coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: dereksurfs on December 04, 2006, 10:19:01 PM

Title: positioning breadcrumb
Post by: dereksurfs on December 04, 2006, 10:19:01 PM
Hello,

While creating a custom theme I have been trying to figure out how to position the breadcrumb.  I would like to move it up higher on my pages.  But I cannot find the section of code that handles it positioning.

You can see it here:
http://www.lightquestphoto.com/coppermine/displayimage.php?album=1&pos=7

I would just like to move it up above the inner table it resides in now.  I have checked template.html and theme.php and couldn't find anything regarding its *position* on within a page.

Thanks for any tips you can provide.

- Derek
Title: Re: positioning breadcrumb
Post by: Joachim Müller on December 05, 2006, 05:44:14 AM
The position of the breadcrumb is determined by the location of the {GALLERY}-token in themes/yourtheme/template.html
Title: Re: positioning breadcrumb
Post by: dereksurfs on December 05, 2006, 07:10:05 AM
Yes,

I guess what I am wondering is where is the code which positions the breadcrumb inside {GALLERY}?

Can it be decoupled from Gallery and lets say placed above or below it?  If not I would like to place it below the images rather than above them within GALLERY if possible.

Thanks,

Derek
Title: Re: positioning breadcrumb
Post by: Joachim Müller on December 05, 2006, 07:23:36 AM
Check the documentation (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#changing) to find out how to determine where the breadcrumb is showing (within the {GALLERY}-block). To move it out of the {GALLERY}-block, you will have to edit core files afaik, which is not recommended.
Title: Re: positioning breadcrumb
Post by: dereksurfs on December 05, 2006, 04:42:04 PM
I read this section of the docs:
QuoteThe content of the main page
This option allows you to change the content of the main page displayed by the script.
The default value is "catlist/alblist/random,2/lastup,2"
You can use the following "codes" to include other items:
    * 'breadcrumb': navigation inside the gallery (e.g. "home > category > subcategory > album")

I then changed this setting in the config under Album List View to place breadcrumb at the end of the arguements as so:
catlist/alblist/breadcrumb
But it didn't change its position on any pages.  This makes sense to me because I am showing the breadcrumb in thumbnail and image view rather than album view.

It looks to me as though it is very tighly coupled to {GALLERY} at this time.  So to position it anywhere else I have two remaining choices:
1.  Change the core.
2.  Use its functionality inside a custom header/footer then place it somewhere else on the page.

Since I write software in my day job I am not afraid to change the code.  Option 2 may be more portable for future releases.  But positioning and layout are *usually* pretty simple tasks in and of themselves.  Of course the tight coupling may make this more of a chore.

Any idea of where this part of the code which makes up {GALLERY} is located.  I would like to take a look at how it is doing things.  I don't have shell access on my host server or I would just do a find on it and windows doesn't search .php file content.

Thanks,
Derek
Title: Re: positioning breadcrumb
Post by: Gizmo on December 06, 2006, 06:05:49 AM
I came across this post about creating a custom breadcrumb. Using this and turning off the one in the gallery may yield what you're after.

http://forum.coppermine-gallery.net/index.php?topic=32580.0 (http://forum.coppermine-gallery.net/index.php?topic=32580.0)