Support for user-defined sophisticated page creators via plugins #181
Open
mudasobwa wants to merge 10 commits intoruhoh:masterfrom
mudasobwa:master
Open
Support for user-defined sophisticated page creators via plugins #181mudasobwa wants to merge 10 commits intoruhoh:masterfrom mudasobwa:master
mudasobwa wants to merge 10 commits intoruhoh:masterfrom
mudasobwa:master
Conversation
… (e.g. image is being produced slightly different from normal page: it’s being copied to /media folder, cropped if necessary, scaled to thumbs etc.) via plugins.
Member
|
Sorry I haven't commented on this. Thank you for sharing your customizations! I will have to study your work to understand the problem better and we can try to implement it into core or at least make a nice official plugin for it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Whilst the built-in page creator (called via
posts new) is likely sufficient for standard blog entries, it could be a great helper for some special post types, like photo publishing. E. g. when I publish the photo to my blog, I really want to run smth likeposts new_image ~/Images/Vacation/123456.jpg 'Crocodile eats my leg'and yield the scaffolded markdown with link to image, an alternate text etc. Plus I want the original file to be resized to, say, 500px wide, watermarked, blackjacked and whored (and put to /media folder within all the thumbnails).Or I may want to run
posts publish_newto minimize FTP/SCP traffic.To accomplish the task I have an amount of plugins, extending base
ruhoh postsfunctionality, written. Now the problem is that the infrastructure is not ready to load those plugins within ruhoh executable. The patch below is to support plugins, having monkeypatchedRuhoh::Resources::Pages::ClientwithHelp_WHATEVERconst defined as well as respective methods.