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

Features for new blog guide: tag selection, restricted sub_pages, min img dim, content editor selectors, content editor loaded event #1764

Closed
mickenorlen opened this issue Mar 27, 2020 · 2 comments

Comments

@mickenorlen
Copy link
Contributor

mickenorlen commented Mar 27, 2020

I have a couple of features I would like to have for the new multi page blog guide. AlchemyCMS/alchemy-guides#98. I'm just gonna gather them here for now (in no particular order). Any help/feedback with this is ofc appreciated.

  1. Restricted sub paging for page_layouts (Add support for parent and child page restrictions in page_layout definition #1776). Eg:
- name: blog
  sub_pages: 'blog_post'

- name: blog_post
  parent_pages: 'blog'
  sub_pages: false # no sub_pages can be created
  1. Tag selection essence. Simlilar to https://guides.alchemy-cms.com/essences.html#essencepage-available-since-alchemy-4-4. So users can select which categories of posts they want to show.

Update. I'm not gonna do this as it's not so important for me.

  1. Minimum img dimension validation. To make sure images in lists etc are always same size. Would also be useful in general eg for banner images. Example:

Update. This was so easy so i think im just gonna use this an example of how to add validations in the docs instead.

- name: 'blog_post'
  contents:
      - name: main_image
      type: EssencePicture
      settings:
        size: '1280x720'
        crop: true
      validate:
      - min_size: '1280x720'
  1. Unique targetable content editor selectors. So css/js can manipulate different sections easier. Done Add content editor data attributes based on name/id and css_classes presenter method #1761

  2. Content editor loaded event
    Closed: Add element editor loaded event #1766

@mickenorlen mickenorlen changed the title Features for new blog guide: tag selection, restricted sub_pages, min img dim, content editor selectors Features for new blog guide: tag selection, restricted sub_pages, min img dim, content editor selectors, content editor loaded event Mar 27, 2020
@tvdeyen
Copy link
Member

tvdeyen commented Apr 2, 2020

Interesting things in here.

I am wry interested in the EssenceTag. This is a nice idea.

@mickenorlen
Copy link
Contributor Author

Closing this as whats left has their own respective issues/PRs anyway

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

No branches or pull requests

2 participants