forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: filmar on December 09, 2004, 08:39:16 pm

Title: anycontent.php in a 'sidebar'
Post by: filmar on December 09, 2004, 08:39:16 pm
I would like to use the 'anycontent' for some general text and maybe some links and stuff. But I can only define the order where it comes in the 'body'. Is it possible to place it on the left side, with the categories and albums and ... beside it?

Many thanks in advance,

FilMar
Title: Re: anycontent.php in a 'sidebar'
Post by: Justttt on December 09, 2004, 09:37:58 pm
if you where to place it at the side you do know its only home content and wil be losed when accesing other pages it should be possible i will have ago and if i do it before someone els helps yous i wil post
Title: Re: anycontent.php in a 'sidebar'
Post by: filmar on December 09, 2004, 09:57:52 pm
Thanks Just, and I understand that its only in the 'homepage', that is what I want.  :D

The site is http://www.filmar.ftkm.be/album/index.php and it is the 'Welkom...' part that I rather like to see on the left side and not on top like now.

Many thanks in advance,

FilMar
Title: Re: anycontent.php in a 'sidebar'
Post by: koffee on January 21, 2005, 11:33:58 pm
I would like to use the 'anycontent' for some general text and maybe some links and stuff. But I can only define the order where it comes in the 'body'. Is it possible to place it on the left side, with the categories and albums and ... beside it?

Many thanks in advance,

FilMar
I'd like to know it too :-(
Title: Re: anycontent.php in a 'sidebar'
Post by: humphrey on January 22, 2005, 05:06:09 am
I'm not sure how your site is layed out.
However you can probably insert the following line in your theme.php file, if you can find where you want to put it.
Code: [Select]
<?PHP include "anycontent.php"; ?>For my site, I didn't do it that way.  I just put the links straight into my theme.php file.
Anyway, have a look at my site http://www.humphreysphotogallery.com, and if that's the kinda thing u wanna do, I'll send u my theme.

Humphrey
Title: Re: anycontent.php in a 'sidebar'
Post by: Joachim Müller on January 22, 2005, 09:02:59 am
Long version: this is all a matter of theme setup. The content that get's included using anycontent.php goes into the place you defined using the {GALLERY} token in themes/yourtheme/template.html, but you can only determine the vertical position within your settings of "the content of the main page" in coppermine config. If you want some custom code to show up to the left or right of the {GALLERY} section, you simply can not use anycontent.php - that's just not what it was designed to do. Instead, you need a "custom header" (search the forum for this keyword) - that doesn't necessarily need to be on top of something, it can be to the left of the {GALLERY} section as well (as in terms of html mark-up and page creation it comes before {GALLERY}).

Short version: can not be done with anycontent.php, search for "custom header (http://forum.coppermine-gallery.net/index.php?action=search2;search=custom+header)".

Joachim