Where to call `env.add_build_program()`? - lektor

I want to add posts generated by faking, to not have manually populate my Lektor blog during themes's development.
I found this piece of functionality which - though experimental - should do everything I need: https://www.getlektor.com/docs/api/environment/add-build-program/
The question is where should I put it? Is a plugin good place for it?

Related

Can i create scenes (menu, highscore and game) without using the Composer library?

I am working to a simple mobile game (the github link is below).
I copied most of the game mechanism from a blog and tried to edit it to make it prettier. Now i would like to add scenes but in Corona tutorial it looks like you have to edit all the code hence i can't do that because i don't know what many functions do. Is there a way to create scenes without editing the code but simply adding a few lines?
P.S. if there is a good good Samaritan here and he want to edit it for me i leave my github link
https://github.com/valeriova96/JumpJump.git
as far as I know, you can do this in native android or iOS but it will be harder for you to do that because it needs more knowledge on Corona, if you tell me what you want to add or edit, maybe I can help you

Workflow to post on Jekyll via Windows

I am currently working on a Jekyll blog on Linux. However I'd like to add contributors to this blog who are using Windows and who haven't any skills in programming or using tools like Git etc.
I was wondering what could be the best process/pratice to enable them to post on the blog?
Installing them the entire environment and writing a script maybe?
Could it cause any issues due to the OS?
Any suggestions or advices are welcome :)
I don't think installing git, and pushing content to your repo is hard task for any non-tech guy.
1: Little tough way
Use team viewer and help your partner to setup git.
Allowed access to your repository.
Teach them, about frontmatter, and some jekyll commands.
2: Simple and smooth way.
Just get doc files dirctly from partner, which contain only content, nothing else, and convert yourself into markdown with manual frontmatter.
3: Create your own dashboard.
You can create your own dashoard like WordPress, where your partner can add categories, tags, title, meta description etc things, that can convert into frontmatter automatically. For that, you need to build yourself. (I find out that kind of generator here, but look's like he deleted, you can find it, by visiting him, old deleted commits).
I had the same problem so I ended up using Wordpress as the interface to it and creating a plugin to marry the systems up.
I figured I'd share it so feel free to have a look:
https://wordpress.org/plugins/wp2jekyll/

Creating inline comments within a wordpress blog post

I'm wondering if there is an easy way to enable users to comment within a blog post in wordpress? For example, in Microsoft word, users can add comments within a article, I'm wondering if the same can be done to a wordpress blog post?
Is there a handy plugin?
What's the best way to go about creating one? Creating overlay with Ajax windows? Any starter code I can pull from?
Has anyone seen this done really well? Surprising that its not more prominent on the web.
I searched for a plugin, too. There WAS no WordPress plugin. So I've written my own, based on inlineDisqussions.
It's called "Inline Comments", try it: http://wordpress.org/plugins/inline-comments/

Joomla 2.5 Add Option Groups to Article

I'm playing with Joomla 2.5.9 (The latest 2.X download). Do you know how you can add additional menu's to the "Article Manager: Edit Article" page? (This is in the Administration)
Their API gives me some hint on several things but I am don't know what this right "Slide Down Option Area" is called in the Administration.
In the right area there are things such as:
Publishing options
Article Options
Configure Edit Screen
Images and Links
etc..
I want to know where to start to add my own, or where they are already built in the system so I can base mine off it -- Is this a plugin, module, or something else? :)
As i say don't change any of the core file in Joomla. If you want to add any functionality into the article manager you can make your own plugin to add functionality in it. For doing this see this link :
Creating a content plugin
I hope this is what you looking for.Good luck.
There are some extensions that allow you to do that.
I recommend (although somewhat buggy and a code mess) this one:
FieldsAttach
It does exactly what you want.
Or, you could make your own as Toretto suggests, there are some tutorials on creating a plugin for extra items in the article form, but the already-made-extension route seems to make more sence.
I've been using FieldsAttach for this sort of thing, for a few years, the code is often a little messy, that is true, but the the concepts are clean and eloquent. Brian Teeman explains it well from an integrator point of view in his talk at https://www.youtube.com/watch?v=f2WLKWbRj5U but in some ways it is even more compelling from a developer's perspective.
However, after watching Marco Ding's Joomla Day UK 2016 talk on https://www.youtube.com/watch?v=KDh1IPuZAVA I think DPFields may be a better choice. The architecture is perhaps more rugged and neater, but also because it may well end up being a core extension in Joomla in the near future. More info on DPFields is at http://extensions.joomla.org/extension/dpfields , https://joomla.digital-peak.com/products/dpfields and https://joomla.digital-peak.com/documentation/162-dpfields .

pyrocms codeigniter widgets modules

My question is do widgets get in on any custom libraries that I add to a custom module? What I want to achieve is create a custom module and I want to add ability to generate pdf documents so I was thinking of making the pdf generation a widget as I would like to use that on another site. If I made it a module, would I be able to share the resources between my pdfmodule and any other module? Sometimes I wish there was a book written on pyrocms that clarifies these issues.
Sorry it took a month to spot this one, but we generally help out on the support forums and don't look here as often.
SO, cross loading resources. Yep that is supported just fine. We use the HMVC plugin for CodeIgniter and often forget that people don't know too much about how it works. I'll get something added to the documentation for this, but basically you just specify the module name like this:
$this->load->library('modulename/libraryname');
Hope this helps anyone finding this in the future. It's probably a bit late for Eagletrophy.

Resources