quickapps / cms

Modular CMS powered by CakePHP
GNU General Public License v3.0
164 stars 69 forks source link

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

Open ghost opened 9 years ago

ghost commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

botchris commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 :smile:

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.