Search found 25 matches

by ctuxboy
Sun Jan 08, 2023 7:03 pm
Forum: Themes
Topic: [SOLVED] Search issues
Replies: 2
Views: 1575

Re: [SOLVED] Search issues

Found another search issue: All the pages with a page-description, don't shows up in the search results. So i did a small 'hack' in this function: private function createCache() in plugin.php On line 208 , change this code: $cache[$pageKey]['description'] = $page->description(); To this: $cache[$pag...
by ctuxboy
Sat Jan 07, 2023 10:56 am
Forum: Themes
Topic: [SOLVED] Search issues
Replies: 2
Views: 1575

Re: Search issues

The issues are solved :) A friend, professional developer (Kenny Liard), helped me a lot. I will post here the solutions, so it can help others: 1. Search problem, that not only shows the matched posts: Now the search plugin works correct, shows only the matched posts. Replace the code in the privat...
by ctuxboy
Thu Jan 05, 2023 8:20 pm
Forum: Themes
Topic: [SOLVED] Pagination
Replies: 6
Views: 17035

Re: pagination

Found some themes that have this pagination-function, so i'm looking to the code from this themes, hope found how they do it ;) Interesting, I wasn't aware of it! Yes, some themes have nice options where can learn a lot. i love it ;) In the meanwhile ported a pagination-function from a theme; do a ...
by ctuxboy
Thu Jan 05, 2023 7:28 pm
Forum: Themes
Topic: [SOLVED] Pagination
Replies: 6
Views: 17035

Re: pagination

Edi wrote: Thu Jan 05, 2023 12:46 pm No, not yet. You have to code it. And it's an idea for a plugin.
Hi @Edi, thanks for your reply :)
Found some themes that have this pagination-function, so i'm looking to the code from this themes, hope found how they do it ;)
by ctuxboy
Wed Jan 04, 2023 11:37 pm
Forum: Themes
Topic: [SOLVED] Pagination
Replies: 6
Views: 17035

[SOLVED] Pagination

On my blog, there are the 'default' bludit pagination buttons Home, Back and Previous

Is there a simple way / code snippet example adding also page-numbers between this pagination-buttons, similar like this:
Screenshot 2023-01-04 23.37.03.png
Screenshot 2023-01-04 23.37.03.png (4.6 KiB) Viewed 17035 times
by ctuxboy
Tue Jan 03, 2023 10:32 pm
Forum: Themes
Topic: [SOLVED] Search issues
Replies: 2
Views: 1575

[SOLVED] Search issues

Hello, I made a search-page (search.php), for the search results. Adding this to the index.php page <?php if($WHERE_AM_I == 'search'){ include(THEME_DIR_PHP.'search.php'); } else { if ($WHERE_AM_I == 'page') { include(THEME_DIR_PHP.'page.php'); } else { include(THEME_DIR_PHP.'home.php') } } ?> 1. wh...
by ctuxboy
Sun Jan 01, 2023 9:12 pm
Forum: Themes
Topic: [SOLVED] isStatic doesn't work
Replies: 3
Views: 2041

Re: isStatic doesn't work

Found it! Follow the documentation: https://docs.bludit.com/en/dev-snippets/categories Adding the code to home.php: <?php // Check if the user is browsing a category if ($WHERE_AM_I=='category') { // Get the category key from the URL $categoryKey = $url->slug(); // Create the Category-Object $catego...
by ctuxboy
Sat Dec 31, 2022 8:56 pm
Forum: Themes
Topic: [SOLVED] isStatic doesn't work
Replies: 3
Views: 2041

Re: isStatic doesn't work

YEAY!!!! THIS WORKS PERFECT!!!
Screenshot 2022-12-31 20.57.11.png
Screenshot 2022-12-31 20.57.11.png (2.73 KiB) Viewed 2024 times

Another question:
When click on a category,
It shows all the pages from this category, but how can i show the following breadcrumb:

Home >> category_name
by ctuxboy
Fri Dec 30, 2022 10:22 pm
Forum: Themes
Topic: [SOLVED] isStatic doesn't work
Replies: 3
Views: 2041

[SOLVED] isStatic doesn't work

Hello, Try made custom breadcrumbs, and this is my code: <?php if (!$page->isStatic()) { ?> <a href="<?php echo Theme::siteUrl() ?>">Home</a> » <a href="<?php echo $page->categoryPermalink(); ?>"><?php echo $page->category(); ?></a> » <?php echo $page->title(); ?> <?php } else { ...
by ctuxboy
Fri Dec 09, 2022 11:47 pm
Forum: Themes
Topic: [SOLVED] Add category to blogpost in page-template
Replies: 1
Views: 781

Re: Add category to blogpost in page-template

Found it!

This does the job:

Code: Select all

<?php echo $page->categoryPermalink(); ?>
Found in the page-Class https://github.com/bludit/bludit/blob/v ... .class.php