forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: brynn on September 23, 2013, 06:55:00 am

Title: front page content
Post by: brynn on September 23, 2013, 06:55:00 am
Hi Friends,
In my search of this board for "front page" I didn't find any topics since 2006.  So this shouldn't be a duplicate of any existing....although it seems surprising to me.

Anyway, this is a request for another option for Config page > Album List View > The content of the main page.  I'd like to be able to choose which specific images I want to show on the front page.

I have read about the anycontent.php feature in the manual, which seems designed to show pretty much anything on the front page.  But I don't know how to write php.  If it could be html, I could write html to show specific images.  But php is beyond my reach at the moment (and probably ever).

But, because I don't know much about php, perhaps there is a relatively easy way to insert html into it?  I don't know.  So if it turns out that there's a fairly simple way to do that, you'll probably want to move this topic to a support board.  If so, I have the current version (1.5...)

Thanks for listening  :)
Title: Re: front page content
Post by: Αndré on September 28, 2013, 12:56:14 pm
Just add your HTML code to the anycontent.php file. Alternatively, you could also use the MiniCMS plugin.


Moving from feature requests to themes support board.
Title: Re: front page content
Post by: brynn on October 12, 2013, 05:33:46 pm
Thanks Andre.

Both of those will require some study, for me to be able to use them.  So I'll mark this solved now.  If I run into specific questions while I try to use one or the other, I'll post in a new topic with the specific question.

Thanks again  :)
Title: Re: front page content
Post by: brynn on October 15, 2013, 08:35:25 pm
Ok, I've looked at the anycontent.php feature, and I'm not sure if I'll be able to use it.  It looks like one needs to know php to be able to use it.  And the MiniCMS plugin is for 1.4x, while I'm using 1.5x.

So (aside from my current need to customize my gallery's front page) I'd like to clarify my new feature request for the front page content.  The idea would be to have a config section for the front page, which admins who don't know php (or who don't want write code and/or edit it periodically) would be able to use.  It would have controls that would allow the admin to choose 1 or more specific uploaded images to be shown on the front page.  Maybe it would be called Featured Images, or something like that.  The admin could change which images are featured, in whatever time frame she chooses.  But the images would always be showing on the front page for whatever entire time period the admin chooses (not change every time the page is refreshed/reloaded).

Or (and this is a separate but related idea) maybe it could have controls for how long the specific image(s) should stay in the Featured section.  Maybe it could choose random images, which would stay on the front page for a specific amount of time.  For example, each month (or day or week) it would choose 1 or more images (however many the admin chooses) at random.  They would be displayed for the entire time period, not change every time the page is refreshed/reloaded.

And/Or maybe a Featured Artist section.  Although I do realize that CPG is made more for photos, than for graphic images.  So maybe Featured User would be better.  Then it would choose a random user, at whatever certain time intervals the admin chooses and display 1 or more images from that person's gallery, for whatever amount of time the admin chooses.  Or Featured Album?  Since I'm still rather new at this, I'm not sure if User or Album would be more appropriate.  Or maybe the admin could choose that as well?

I'll be starting a new topic shortly, with some questions about the anycontent feature.  So this could be moved back to the feature request board, if you all feel it's a worthy request  :)

Thanks for listening  :)
Title: Re: front page content
Post by: phill104 on October 15, 2013, 08:54:08 pm
Erm, the minicms plugin for CPG1.5 - http://forum.coppermine-gallery.net/index.php/topic,68455.0.html  ;)
Title: Re: front page content
Post by: Αndré on October 17, 2013, 04:12:08 pm
You don't need to know PHP to use anycontent.php:
An anycontent.php file with just HTML like
Code: [Select]
<h1>foo</h1><p>bar</p>or even plain text like
Code: [Select]
foo barworks without an issue.
Title: Re: front page content
Post by: brynn on October 22, 2013, 01:25:51 am
Ok, I've got something working for my gallery using anycontent.php.  So my problem is solved.  But I still think it would be nice to have my ideas available from Config, for a potential new feature.  But it is just an idea, that's all.

Thank you very much  :)
Title: Re: front page content
Post by: André Müller on October 22, 2013, 08:33:00 am
Dear Brynn,

as suggested before, miniCMS for CPG 1.5 is exactly what you need. Check out my front page's header (http://www.fotowald.de/), or the header of any section (http://www.fotowald.de/index-18.html) or album (http://www.fotowald.de/thumbnails-9.html).
Adding content in miniCMS is WYSIWYG with the additional ability to tweak the source (which is totally html). I chose to show the miniCMS block above everything, but you can also do so below (by changing the breadcrumb pattern on the settings page).

And just another random thought, I think I read something about a hot pictures or "for sale" meta album recently, maybe you want to check these out as well?

Cheers,
André
Title: Re: front page content
Post by: brynn on October 23, 2013, 10:58:10 pm
Ok, thanks Andre Muller.  I will install and have a look  :)

Quote
And just another random thought, I think I read something about a hot pictures or "for sale" meta album recently, maybe you want to check these out as well?

Where do I look?  Plug-ins board?
Title: Re: front page content
Post by: phill104 on October 23, 2013, 11:09:34 pm
I linked to it a couple of posts back... ::)

All the plugins are in the Sub-Board of the plugins board, called strangely enough the "CPG 1.5 Plugin Contributions" - http://forum.coppermine-gallery.net/index.php/board,91.0.html
Title: Re: front page content
Post by: brynn on October 24, 2013, 03:55:23 am
Holy crap, look at all that stuff!!  Yeah, the board name could be more clear.  I assumed that was where people who are writing new plugins (for themselves only) go for help in writing them.  ::)

Anyway, thanks.  I'll look for it there.

all best  :)