Search found 25 matches
- Sun Jan 08, 2023 7:03 pm
- Forum: Themes
- Topic: [SOLVED] Search issues
- Replies: 2
- Views: 1728
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...
- Sat Jan 07, 2023 10:56 am
- Forum: Themes
- Topic: [SOLVED] Search issues
- Replies: 2
- Views: 1728
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...
- Thu Jan 05, 2023 8:20 pm
- Forum: Themes
- Topic: [SOLVED] Pagination
- Replies: 6
- Views: 18324
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 ...
- Thu Jan 05, 2023 7:28 pm
- Forum: Themes
- Topic: [SOLVED] Pagination
- Replies: 6
- Views: 18324
- Wed Jan 04, 2023 11:37 pm
- Forum: Themes
- Topic: [SOLVED] Pagination
- Replies: 6
- Views: 18324
[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:
Is there a simple way / code snippet example adding also page-numbers between this pagination-buttons, similar like this:
- Tue Jan 03, 2023 10:32 pm
- Forum: Themes
- Topic: [SOLVED] Search issues
- Replies: 2
- Views: 1728
[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...
- Sun Jan 01, 2023 9:12 pm
- Forum: Themes
- Topic: [SOLVED] isStatic doesn't work
- Replies: 3
- Views: 2376
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...
- Sat Dec 31, 2022 8:56 pm
- Forum: Themes
- Topic: [SOLVED] isStatic doesn't work
- Replies: 3
- Views: 2376
Re: isStatic doesn't work
YEAY!!!! THIS WORKS PERFECT!!!
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
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
- Fri Dec 30, 2022 10:22 pm
- Forum: Themes
- Topic: [SOLVED] isStatic doesn't work
- Replies: 3
- Views: 2376
[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 { ...
- Fri Dec 09, 2022 11:47 pm
- Forum: Themes
- Topic: [SOLVED] Add category to blogpost in page-template
- Replies: 1
- Views: 903
Re: Add category to blogpost in page-template
Found it!
This does the job:
Found in the page-Class https://github.com/bludit/bludit/blob/v ... .class.php
This does the job:
Code: Select all
<?php echo $page->categoryPermalink(); ?>