front page content front page content
 

News:

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

Main Menu

front page content

Started by brynn, September 23, 2013, 06:55:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brynn

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  :)

Αndré

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.

brynn

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  :)

brynn

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  :)

phill104

It is a mistake to think you can solve any major problems just with potatoes.

Αndré

You don't need to know PHP to use anycontent.php:
Quote from: Αndré on October 07, 2013, 03:29:21 PM
An anycontent.php file with just HTML like
<h1>foo</h1><p>bar</p>
or even plain text like
foo bar
works without an issue.

brynn

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  :)

André Müller

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é

brynn

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?

phill104

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
It is a mistake to think you can solve any major problems just with potatoes.

brynn

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  :)