Popeye template customization

Post Reply
audricd
Jr. Bludit
Posts: 8
Joined: Mon Jul 29, 2024 9:03 pm
Has thanked: 2 times

Hello,

First of all, sorry I am not a web developer. Or a developer of any kind for that matter, I have some concepts in HTML / CSS / PHP / Python, but very novice at it all.

I would like the Popeye template, at its frontpage: to display the content of the articles, rather than just linking them.

Popeye listing one article:
Image

Alternative listing the content of the article:
Image

I am assuming it is somewhere along these lignes of php/home.php,
Image
but I am far too unfamiliar with PHP and Bludit, and I dont want to break it over and over by myself until I figure it out. If I even do.
wjar
Ssr. Bludit
Posts: 11
Joined: Fri Dec 16, 2022 6:58 pm
Been thanked: 2 times

This should work: replace the following part of the file php/home.php in the Popeye theme folder

Code: Select all

<!-- Page description -->
<?php if ($pageTmp->description()) : ?>
<p class="mb-1 form-text"><?php echo $pageTmp->description(); ?></p>
<?php endif ?>
<!-- End Page description -->
with

Code: Select all

<!-- Page content -->
<p class="mb-1 form-text"><?php echo $page->content(); ?></p>
<!-- End Page content -->
audricd
Jr. Bludit
Posts: 8
Joined: Mon Jul 29, 2024 9:03 pm
Has thanked: 2 times

Hello,
Thank you very much for your reply!
Image

That is definitely a step in the right direction, but there is more I would like to do from this point. The title / category and timestamp of the article entry above it. And its still not clear to me but a column / menu on either side (it looks weird / empty as I see it right now)

I think I will try with other themes and see if I like something else better and is more configurable without manually tweaking php files.

Thank you very much!
wjar
Ssr. Bludit
Posts: 11
Joined: Fri Dec 16, 2022 6:58 pm
Been thanked: 2 times

Since themes are not really configurable, you have to try other themes until you find one suiting your needs. The other way is to create your own theme. This is what I did on basis of an existing theme.
joho
Master Bludit
Posts: 63
Joined: Thu Jun 08, 2023 3:02 pm
Location: Sweden
Has thanked: 17 times
Been thanked: 19 times

audricd wrote: Mon Jul 29, 2024 9:36 pm First of all, sorry I am not a web developer. Or a developer of any kind for that matter, I have some concepts in HTML / CSS / PHP / Python, but very novice at it all.

I would like the Popeye template, at its frontpage: to display the content of the articles, rather than just linking them.
I know this is not what you asked for, but maybe the bs5plain theme gets you closer to what you want?
Post Reply