Search found 16 matches

by koljaxyz
Thu May 16, 2024 9:18 pm
Forum: Themes
Topic: Display regular pages on a static page that is not the homepage
Replies: 7
Views: 19481

Re: Display regular pages on a static page that is not the homepage

<?php // Get all pages $allPages = $pages->getList(); // Loop through all pages foreach ($allPages as $pageKey) { // Get the page object $post = new Page($pageKey); // Check if the page is not static if ($post->type() !== 'static') { echo '<h2>' . $post->title() . '</h2>'; echo '<p>' . $post->conte...
by koljaxyz
Sat May 11, 2024 10:46 am
Forum: Themes
Topic: Display regular pages on a static page that is not the homepage
Replies: 7
Views: 19481

Re: Display regular pages on a static page that is not the homepage

CCDzine wrote: Sun May 05, 2024 12:43 am $post = new Page( $key ).
Does not work either :(
by koljaxyz
Sat Apr 27, 2024 12:51 pm
Forum: Themes
Topic: Display regular pages on a static page that is not the homepage
Replies: 7
Views: 19481

Re: Display regular pages on a static page that is not the homepage

🤔 This still does not show me the normal pages and I have no clue why. The pages I have created are listed within the "pages" tab. This should be correct. If you have any additional plugins or themes that modify standard page behaviors, you might need to adjust the code to accommodate thos...
by koljaxyz
Mon Apr 22, 2024 9:54 pm
Forum: Themes
Topic: Display regular pages on a static page that is not the homepage
Replies: 7
Views: 19481

Display regular pages on a static page that is not the homepage

Hello! :) I have the following page structure: • Info (Static, defined as the frontpage in the backend) • Projects (Static) • Contact (Static) • Project 1 • Project 2 • ... In my index.php, I have: if ($WHERE_AM_I == 'page') { if ($page->slug() == 'information') { include(THEME_DIR_PHP.'info.php'); ...
by koljaxyz
Fri Mar 04, 2022 9:18 am
Forum: Themes
Topic: How to fetch all uploaded images
Replies: 4
Views: 5811

Re: How to fetch all uploaded images

nogajun wrote: Fri Mar 04, 2022 5:49 am I had the same problem.
I figured out that I needed to get a file list, so I wrote some simple code.
Nice! This worked, thank you! ♥
by koljaxyz
Thu Mar 03, 2022 1:36 pm
Forum: Themes
Topic: How to fetch all uploaded images
Replies: 4
Views: 5811

How to fetch all uploaded images

Hello there, in the backend, i uploaded a bunch of images. Now i want to render these in my template inside a foreach loop. I do not want to place the images inside the text editor, because i want text and images separately. I know i can get the cover image with <?php echo $page->coverImage() ?> But...
by koljaxyz
Sat May 23, 2020 12:34 pm
Forum: General
Topic: publish .pdf of .doc files
Replies: 17
Views: 24217

Re: publish .pdf of .doc files

Edi wrote: Thu Jan 02, 2020 12:22 am As HTML link (with the absolute path to the file).
And how do I get the absolute path in the backend?
by koljaxyz
Sun May 10, 2020 9:41 am
Forum: General
Topic: How does Bludit handle URLs?
Replies: 4
Views: 4344

Re: How does Bludit handle URLs?

Perfect, this works!
by koljaxyz
Sat May 09, 2020 7:37 pm
Forum: General
Topic: How does Bludit handle URLs?
Replies: 4
Views: 4344

Re: How does Bludit handle URLs?

Edi wrote: Fri May 08, 2020 10:15 pm Is the template contact.php used for a page with a title like contact?
Yes, the page is titled with "contact" and I named the template the same.

How can I link an other page in this mail php file?

Code: Select all

header("Location: contact.php?mailsend");
by koljaxyz
Fri May 08, 2020 12:55 pm
Forum: General
Topic: How does Bludit handle URLs?
Replies: 4
Views: 4344

How does Bludit handle URLs?

Hi guys, in my contact.php template I have built a contact form like in this turoial: https://www.youtube.com/watch?v=4q0gYjAVonI . When I click on the button, the mail will be sent, so everything is alright so far. But I don’t understand what to put in the last line. header("Location: contact....