Advanced search  


CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: CPG theme question / suggestion  (Read 4348 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
CPG theme question / suggestion
« on: March 29, 2006, 05:40:21 pm »

Is there a possibility in the future of splitting the {Gallery} token into separate ones? That would give enormous freedom to do themes by placing elements next to eachother, above, below etc... i.e. something like {album cat}, {thumbails}, {voting}, {comments}, {ImageView}, {Breadcrumbs} etc.


Something close to the way mambo/joomla themes are done.. with content placement blocks and in config you can decide which element of your gallery is shown in which content block. All you have to do in theme.php is to play around with your content blocks.

It is just an idea. What do you guys think?

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
Re: CPG theme question / suggestion
« Reply #1 on: March 29, 2006, 08:22:51 pm »

cpgNG will feature SmartyTemplates. Your idea is good though and would be handy for many who have issues, but you have to keep in mind that stuff like voting doesn't appear on all pages, but only on intermediate image display (displayimage.php), though those token would probably add to the confusion when a token will actually be taken into account or not. The token concept comes into play for the sections in theme.php though.

imagine a layout like this
Code: [Select]
      <td width="10%">
      <td width="60%">
      <td width="30%">
What would happen to the layout on index pages? Funny stuff (or at least a lot of whitespace), don't you agree? So the solution are sub-templates (as this is being done by major BBS apps like SMF or phpBB), which again makes things more complicated for newbies. Either way, you lose: newbie friendliness vs. total freedom of page layout.
The different aspects of this have been discussed on the dev-only boards, with the result that we could possibly only have tokens in template.html for stuff that displays on every coppermine page.


  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: CPG theme question / suggestion
« Reply #2 on: March 29, 2006, 10:23:14 pm »

I will take a close look into smarty templates.

You are right about the blank spaces, which is currently the problem with the mambo templating approach because it is still table based. I believe once tables are dropped there is going to be greater felxibility.

I am happy currently with the theming in CPG as I can do what I want to do. But no matter how you turn your template around, a coppermine driven site looks like coppermine.

Thanks for the clarification. Cheers.
Pages: [1]   Go Up

Page created in 0.023 seconds with 19 queries.