Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last comments and last blog entries in the right sidebar #111

Open
ghost opened this issue May 29, 2015 · 6 comments
Open

Last comments and last blog entries in the right sidebar #111

ghost opened this issue May 29, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented May 29, 2015

I am working for a few hours with QA and would like to know how to make final comments and recent blog entries in the right sidebar?

I've seen the block option in the backend and have thus realized the blogroll. But how can comments and blog entries are displayed? Thank you in advance!

quickapps_blog-sidebar

@quickapps
Copy link
Owner

You need a block for display recent comments and recent blog entries?

Well, there is no such block in QACMS, as this CMS is not really a blogging-oriented platform, however it can be adapted to such platform among others. Actually, default installation process creates the basic setup for a blog-like website... but as I mentioned you are allowed to define virtually any type of content: galleries, shopping cart, etc. You can do this using the option "Contents > Content Types > Define new content type", you will see that Blog Articles are just one predefined content type.

Marking as RFC, I'll work on such blocks for next release. ;)

@ghost
Copy link
Author

ghost commented May 30, 2015

Hello,
thanks for the explanation. Ok, I'm still happy with QA and will already soon imagine on my blog Internetblogger.de.

@botchris botchris modified the milestone: 2.0 Sep 21, 2016
botchris pushed a commit that referenced this issue Nov 6, 2016
@botchris
Copy link
Collaborator

botchris commented Nov 6, 2016

Added "Recent Contents" block, it can be used to render a list of any desired type of content.

It allows you to specify a search criteria that will be used to retrieve the content titles that will be used to fill the list. For instance, if you want to create a list of latest published articles you can use the search criteria type:article. (Is also possible to control the size of the list)


For existing QACMS installations manual DB update is required, simply run the following SQL in order to register the new block:

INSERT INTO `blocks` (`id`, `copy_id`, `handler`, `title`, `description`, `body`, `visibility`, `pages`, `locale`, `settings`, `status`) VALUES (NULL, NULL, 'Content\\Widget\\RecentContentWidget', 'Latest Contents', 'Lists of recently published contents.', NULL, 'except', NULL, NULL, NULL, '1');

@ghost
Copy link
Author

ghost commented Nov 7, 2016

Thanks for a help and I have also realized so. Adding this record to the database was successful.

Unfortunately, when I go to the blocks in the backend, I get an internal error in the browser. There is no correct error message, but only "internal error" and not more.

What did I do wrong?

@botchris
Copy link
Collaborator

botchris commented Nov 7, 2016

ups,
I forgot to update the contents plugin repo.
Now is up to date and you can safely update using composer. However, try composer clear-cache before running update

composer update

If error still persists try to clear your caches (tmp/cache), and enabling debug

@ghost
Copy link
Author

ghost commented Nov 7, 2016

Thanks, it worked so well and I could include last comments and last posts in the sidebar. Now I only have to write content to watch it.

Unfortunately, after the composer update my website was not accessible at http://quickapps.wpzweinull.ch/blog.

I had to reinstall QuickApps. Very bad, but I'm kinda afraid to update the composer next time 😄

I have made it quite normal with php56 composer.phar update.

Previously, I deleted the composer cache.

In the directory /blog is the composer.phar and from there I also made composer update. I can not explain why the website was not available.

Now everything seems to work and I have to be more careful then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants