positioning breadcrumb positioning breadcrumb
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

positioning breadcrumb

Started by dereksurfs, December 04, 2006, 10:19:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dereksurfs

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

Joachim Müller

The position of the breadcrumb is determined by the location of the {GALLERY}-token in themes/yourtheme/template.html

dereksurfs

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

Joachim Müller

Check the documentation 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.

dereksurfs

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

Gizmo

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
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision