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

Add the ability to add snippets as in the module pages #65

Closed
oim37 opened this issue Aug 7, 2024 · 2 comments
Closed

Add the ability to add snippets as in the module pages #65

oim37 opened this issue Aug 7, 2024 · 2 comments

Comments

@oim37
Copy link

oim37 commented Aug 7, 2024

Sometimes i want to add a gallery or some code to blog article, this is easily done in the pages module using snippets, I really want to be able to add snippets in this module too.

For example, i want to add a gallery to a blog article, i can, but need to go into the template and use a selection from the link, which is not very convenient.

if(strpos($_SERVER['REQUEST_URI'], '/news/my-article') !== false){
$this['newsurl']=true;
}

{% if newsurl == true %}
    {% partial 'second/my-article' %}
{% endif %}

While in the pages module this is done in the admin panel, by moving the mouse.

@LukeTowers
Copy link
Member

@oim37 see wintercms/wn-pages-plugin#36, feel free to test that out and see if you can get it across the finish line, or if you're interested in sponsoring finishing that feature feel free to reach out to me.

@oim37
Copy link
Author

oim37 commented Aug 9, 2024

Super, thank you!

@oim37 oim37 closed this as completed Aug 9, 2024
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