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

New feature: blog #103

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from
Draft

New feature: blog #103

wants to merge 40 commits into from

Conversation

fballiano
Copy link
Contributor

@fballiano fballiano commented Jan 30, 2025

This is far from being testable but I wanted to have it here already.

The nice thing of this implementation is that it's all built on EAV, instead of a static table like all the modules from the past.

TODO

  • ACL
  • grid is not showing tile and publish_date
  • associate a post to a store
  • the form looks bad
  • add url-key with auto-slur
  • translations
  • post image
  • frontend

QUESTIONS:

  • do we add a link to the blog in the templates? where? how? under what conditions?

Copy link
Contributor

@justinbeaty justinbeaty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice code, using the $installer object to set up the attributes is super clean.

Comment on lines 16 to 25
/*
$installer->getConnection()->query('drop table blog_post_entity');
$installer->getConnection()->query('drop table blog_post_entity_char');
$installer->getConnection()->query('drop table blog_post_entity_datetime');
$installer->getConnection()->query('drop table blog_post_entity_decimal');
$installer->getConnection()->query('drop table blog_post_entity_int');
$installer->getConnection()->query('drop table blog_post_entity_text');
$installer->getConnection()->query('drop table blog_post_entity_varchar');
$installer->getConnection()->query('delete from eav_entity_type where entity_type_code="blog_post"');
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be removed

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

Successfully merging this pull request may close these issues.

2 participants