pagekit / extension-blog Goto Github PK
View Code? Open in Web Editor NEWA blog extensions with a built-in comment system.
A blog extensions with a built-in comment system.
Would be great to add support for categories and tags.
I've read an interesting article about binding the well known 3rd party comment system "disqus" into your blog extension as a substitution for the comment system currently used (https://www.eugenesivokon.com/blog/adding-disqus-comments-in-pagekit) Is their a way to implement and allow to switch between the native comment system and this one in future version?
As a blogger, I'd like to pin a post to the top of my blog so it appears before all other posts.
Todo:
https://github.com/pagekit/extension-blog/blob/master/src/Model/Post.php
Add pinned bollean field.
https://github.com/pagekit/extension-blog/blob/master/src/Controller/SiteController.php#L42
Order by pinned first.
Admin edit page: Add pinned checkbox.
Some other minor places.
Wouldn't it be great to create more then one blog? And when i setup an Hero-Image to the blog-page it's not so great that it also appears in an single blog article... can this be changed?
I just subscribed to the feed of my Pagekit test site and there are double curly braces on top of every post:
{{ "2016-06-15T11:41:00+00:00" | date "longDate" }}
I'm unsure how this happens as there is no such occurrence when I just curl
the URL. Maybe it's worth to take a look into this. I'm using Miniflux as an RSS reader, so it may be related to it, though I doubt it because I never had this appear in any of my other 100 or so feeds.
I want to schedule a date and time in the blog, bu the time fail.
If I put 22:00 hs changes to 10:00 hs; If I put 20:30 it changes to 08:30 and so on.
Any ideas?
I think the pagination is missing the prev/next buttons
It's a little thing, but a lot of people find it easier to use
I've added it myself, I did it this way:
<?php if ($total > 1) : ?>
<ul class="uk-pagination">
// PREV
<?php if($page!=1): ?>
<li><a href="<?= $view->url('@blog/page', ['page' => $pageIndex]) ?>"><i class="uk-icon-chevron-left"></i></a></li>
<?php endif; ?>
// PAGINATION CODE //
// NEXT
<?php if($page!=$total): ?>
<li><a href="<?= $view->url('@blog/page', ['page' => $pageIndex + 2]) ?>"><i class="uk-icon-chevron-right"></i></a></li>
<?php endif; ?>
</ul>
<?php endif ?>
I think you should consider adding it by default, and/or making it an option
Using Pagekit 1.0.3 with PHP 7 and Apache 2.4.
Allowing the post slug to auto-generate from the title on save (a GREAT feature) does not properly account for punctuation in titles. Example...
This title: Jaylon Smith: He's Got The Rush, But No Interceptions?
Makes this slug: jaylon-smith-he-s-got-the-rush,-but-no-interceptions
The comma isn't such a big deal, but since we're on the subject, it should be filtered out. But the apostrophe in "He's" being transformed into a hyphen is just bad seo; should've been stripped and not replaced.
The proper slug of that title should be: jaylon-smith-hes-got-the-rush-but-no-interceptions
Haven't test other special characters or punctuation, though I suspect special characters are handled just fine (like the question mark was).
Thanks.
Have problems opening blog posts in admin panel
Whoops, looks like something went wrong.
3/3 DriverException in AbstractMySQLDriver.php line 115: An exception occurred while executing 'SELECT user_id, name, username FROM pk_blog_post INNER JOIN pk_system_user ON user_id = pk_system_user.id GROUP BY user_id, name':
SQLSTATE[42000]: Syntax error or access violation: 1055 'pagekit.pk_system_user.username' isn't in GROUP BY
in AbstractMySQLDriver.php line 115
at AbstractMySQLDriver->convertException('An exception occurred while executing 'SELECT user_id, name, username FROM pk_blog_post INNER JOIN pk_system_user ON user_id = pk_system_user.id GROUP BY user_id, name': SQLSTATE[42000]: Syntax error or access violation: 1055 'pagekit.pk_system_user.username' isn't in GROUP BY', object(PDOException)) in DBALException.php line 116
at DBALException::driverExceptionDuringQuery(object(Driver), object(PDOException), 'SELECT user_id, name, username FROM pk_blog_post INNER JOIN pk_system_user ON user_id = pk_system_user.id GROUP BY user_id, name', array()) in Connection.php line 836
at Connection->executeQuery('SELECT user_id, name, username FROM pk_blog_post INNER JOIN pk_system_user ON user_id = pk_system_user.id GROUP BY user_id, name', array(), array(), null) in Connection.php line 178
at Connection->executeQuery('SELECT user_id, name, username FROM @blog_post INNER JOIN @system_user ON user_id = @system_user.id GROUP BY user_id, name', array(), array()) in QueryBuilder.php line 670
at QueryBuilder->executeQuery() in QueryBuilder.php line 590
at QueryBuilder->execute()
at call_user_func_array(array(object(QueryBuilder), 'execute'), array()) in QueryBuilder.php line 181
at QueryBuilder->__call('execute', array()) in PostModelTrait.php line 29
at Post::getAuthors() in BlogController.php line 28
at BlogController->postAction(null, null)
at call_user_func_array(array(object(BlogController), 'postAction'), array(null, null)) in ControllerListener.php line 60
at ControllerListener->executeController(object(ControllerEvent), object(Request))
at call_user_func_array(array(object(ControllerListener), 'executeController'), array(object(ControllerEvent), object(Request))) in WrappedListener.php line 63
at WrappedListener->__invoke(object(ControllerEvent), object(Request))
at call_user_func_array(object(WrappedListener), array(object(ControllerEvent), object(Request))) in EventDispatcher.php line 123
at EventDispatcher->trigger(object(ControllerEvent), array(object(ControllerEvent), object(Request))) in TraceableEventDispatcher.php line 126
at TraceableEventDispatcher->trigger('controller', array(object(Request))) in HttpKernel.php line 148
at HttpKernel->handleController() in HttpKernel.php line 77
at HttpKernel->handle(object(Request)) in Application.php line 67
at Application->run() in app.php line 24
at require_once('/webroot/app/system/app.php') in index.php line 40
My config:
Pagekit 1.0.11
nginx 1.11.12
php 7.1.3
MariaDB 10.1.22
When I try to edit a existing post, there is nn content in the form.
It looks like the same to add a new post.
And I try to reinstall blog extension. The issue is still here.
I have page kit installed in a subfolder (example.com/blog). I only want to use pagekit as a blog so my problems is that when I go to a post, the url is normal but under a subfolder looks off (example.com/blog/index.php/blog/postslughere). I need it to be (example.com/blog/postslughere) just like it would be if it was installed on the root directory.
Any ideas?
schema.org is the preferred way for Google to read structured data and display that data in the search results. This allows search results to contain relevant information.
The schema.org way of pointing out relevant data, albeit verbose, is pretty easy to add to existing sites or templates.
The schema http://schema.org/BlogPosting
provides most, if not all, the property fields a blog post can fill.
That way a blog post can be displayed in a rich way in search engines that utilize schema.org properties.
Looking a bit through the templates, it should be not too hard to add the necessary and optional properties to blog pages.
For more information about the markup of structured data using schema.org, you can visit http://schema.org/.
If I can find the time, I will try to add this functionality myself.
I'd like to hear your opinion about this as well.
Best Regards
Marvin
This more a question actually.
Is it possible to make the blog the home page.
In the Blog Extension, there is an Option to deactivate the Gravatar Service for Blog-Comments. But the Option doesn't work. Gravatar is not deactivated and all new Comments have the Connection to Automatic Gravatar Service and shows the Avatar.
In the Source Code of the Blog-Entries there are this Line:
<img class="uk-comment-avatar" width="40" height="40" :alt="comment.author" v-gravatar="comment.email">
Do you accept suggestions?
Thanks.
If I rename the posts page to, for example, "News" I'd expect the posts page title tag to be the following:
<title>WEBSITE_NAME | News</title>
However, it currently is:
<title>WEBSITE_NAME | Blog</title>
Would be amazing if this changes with the name of the posts page.
Hey, will really great if the blog extension have a Categories, tags system and other forms to comment like facebook and Disqus?
Hello, I can't manage to see the custom theme form I've built with vue in the node-theme.vue file.
I see the tab correctly on pages, but not on blog posts.
Note: in the node-theme.vue I removed any v-if="node.type === 'page' clause
Would be very nice to have some auto-post functionality on this extension. On a blog post level you could be able to select which social network (based on connected accounts on a settings level) and it could be automatically published after blog post went live or at a given time as the blog post is able to go live at a specific time.
Hi there,
It seems I cannot enable spell-checking verification when writing a post.
Is this bug or is there something wrong with my configuration?
I am using Firefox.
An exception occurred while executing 'SELECT id FROM pk_system_role WHERE (id = ?) OR (permissions REGEXP '(^|,)(blog: manage all posts|blog: manage own posts)($|,)')' with params [3]: SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
Could we have images in rss feed? Or how to add in code?
I need to consume this images in other sites...
:/
It would be nice to be able to add comments to any page, not just blog posts. Would there be any interest in factoring the comments code out of this extension into its own?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.