Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Blog Categories and other suggestions #20

Open
erikperin opened this issue Jan 26, 2017 · 17 comments
Open

Blog Categories and other suggestions #20

erikperin opened this issue Jan 26, 2017 · 17 comments

Comments

@erikperin
Copy link

Hey, will really great if the blog extension have a Categories, tags system and other forms to comment like facebook and Disqus?

@martinwojtus
Copy link

https://github.com/martinwojtus/extension-blog

Maybe its not perfect but it work.

@donpicho
Copy link

donpicho commented Mar 11, 2018

Dear Marcin (@martinwojtus),
Thank you a lot for your blog exentsion. I installed it to have categories and tags - everything as described in your installation instructions. Unfortunately I get empty pages within the blog extension now. I tried everything, but I can't get the reason for the issue. When I replace (overwrite) all files of the original blog extension from the latest pagekit release (1.0.13) with the files of your extension, the content (options etc.) in the default tabs (posts, comments, settings) appear again, except for the Categories tab. It stays empty. So I guess there must be any incompatibility between the files of your blog extension and the ones in the current pagekit release? On the other hand, I've checked the release dates. Pagekit 1.0.13 was released September 2017 and your last changes took place at a later time (November?). Considering that, I guess your blog extension with categories and tags works fine within your installation?
Any idea how to fix this, troubleshooting? Thank you.

pk blog ext empty

@thekerub
Copy link

Yeah I have the exact same issue. This feature is a must have so I'd be very glad if anyone could help.

@martinwojtus
Copy link

Did you run script from DDL.sql file on pagekit database and modify UrlProvider.php?

@thekerub
Copy link

Yes, I copied the contents of the script.sql and ran it in phpmyadmin and modified the url provider.

@martinwojtus
Copy link

ok, give me some time I will check this.

@thekerub
Copy link

Thanks!

@martinwojtus
Copy link

sorry guys I forgot to write about something in the instructions...
go to /packages/pagekit/blog directory and run:

  • npm install
  • webpack
    commands...

this will create appropriate js files in bundle folder and everything should work great :)

@thekerub
Copy link

thekerub commented Mar 14, 2018

Thanks for the fast reply! How do i run those commands though? I suppose I need some form of command line, but I don't know what to do.

Btw I do not have SSH access to my webspace and can not use something like putty if that's what I need.

@martinwojtus
Copy link

ok, I just add those bundle files into extension, so you don't have to run npm commands, just download my fresh extension from repo...

@thekerub
Copy link

Thanks man, you're awesome!

@thekerub
Copy link

thekerub commented Mar 15, 2018

A follow-up: The interface does work now. However the categories and tags will not show up in the actual blog site.
Any idea? I can only assume that it has to do with the category.php in views?

@martinwojtus
Copy link

martinwojtus commented Mar 15, 2018

List of categories in actual blog site are not implemented (yet ;) category.php is responsible for presenting blog posts by category...
for example if you add category 'awesome' and have 2 posts in this category then you will see them by going to http://[website.url]/awesome

just like on http://frontbackend.com category oracle,
http://frontbackend.com/oracle -> posts from category oracle (category.php file)
http://frontbackend.com/oracle/how-to-generate-random-uuid-in-oracle (specific post view post.php)

@thekerub
Copy link

thekerub commented Mar 15, 2018

Ah, I understand. Thanks! Is there any way to hide posts with certain categories from the standard blog view?

@martinwojtus
Copy link

Ok. thx for fixing this bug in UrlProvider.php i will push it to the repo.

@thekerub
Copy link

No don't, it was a wrong fix. I don't know why it worked before for me, now it doesnt anymore and I had to change it back.

@martinwojtus
Copy link

:)

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

No branches or pull requests

4 participants