I want to create a site with a channel. On this channel, I want to post activities. Inside the entry, there will be a category selectable with an email address within. Once I publish the entry, craft should send an email to the email of the selected category with the details of the entry (like an info mail "hey, there is a new activity. have a look).
I googled and searched for hours, but I couldn't find a suitable solution. I stepped over craft modules, but I am new to programming and the explanations are pretty overwhelming. Is there anyone who can help me and would walk me step by step through creating such a solution?
Modules are indeed the way to go. They allow you to write custom code to extend Craft CMS functionality.
What you want can be achieved with the help of events: Craft CMS dispatches a lot of events at various points in the lifecycle of every request. You can listen to these events to react accordingly.
In your case, you should have a look to the EVENT_AFTER_SAVE of the craft\elements\Entry class. To help you get started, Craft provides an event listener code generator.
You then need to write a module that includes the generated code. This article from the Craft knowledge base should help you. This article from NYStudio107 is also a nice introduction.
There's a discord community for Craft CMS where you can ask for help as well as a dedicated stackexchange site.
If you need more help here, we'll need to see some code.
Related
I have the following use case:
The user starts a chat and selects options (something like a tree), in some cases an administrator can enter the chat and give a response.
My question is: are chatbot systems useful in this case?
I have no experience in chatbot but all the examples that I find on the internet are about NLP.
I appreciate if you can recommend an open source library
I think Dialogflow is a pretty good one to create chatbots. It is free and using custom payloads (tree with options, buttons, chips, etc.). You can make them say some repeated stuff. You would have to type instead.
I have a video where I create a simple chatbot that can take data stored in google sheets and send that details to a user if he asks for the details. If you are interested, please check it out!
Also, here is the Dialogflow console link.
Any tips on getting started using the "Workflow for XPages" on OpentNTF? The documentation is pretty high-level, and mostly about the sample app. Page 24 is the only one with info about using the simple workflow engine. I'm digging into the EmployeeReview.nsf example database, but could use some pointers?
One of my developers evaluated the workflow stuff over the last couple of days. Unfortunately, I cannot share the documentation that came out as a result of her efforts.
So the only way for you by now is to analyse the parts of the sample application.
Find the Simple Workflow Control und Workflow Action controls in the sample application and take a look at the source code.
You will see that the Simple Workflow Control deals with persons and roles. Roles in the context of workflow are not ACL Roles. They are roles that ere defined in the configuration ( like [Manager] )
So you need to have some kind of configuration in your application that contains a person name an the role this person has in your workflow. If this person is a manager for example, you have also to describe, which other persons he/she is managing.
Then, in your workflow steps you describe, in which wf state a specific person is involved, what is the next step and if any mail is send around.
Once ayou have done a bit of analysis, you will be able to create your own sample application.
I also hope that there will be more documentation around. I will provide more detailed information about how to use the wf controls, but I'm going on holiday in the next days. So I do not have much time left, to put a manual together.
But looking at the source code should help to understand how all the stuff works.
I help out at a local soup kitchen, and they are wanting to create a website. Most of their criteria are pretty simple, they want to be able to have a calendar, post pictures, and have a blog. However they also want to be able to manage volunteer's. They want to be able to post a event, have a list of jobs that they need volunteer's for that event, and allow people to sign up for the jobs. I would like to base this website on a well known platform like DotNetNuke, WordPress, or Drupal. Before I go and code my own plugin for managing volunteers I decided to see if I could find a platform that already has a module available. So far I have not been able to find anything. Has anybody heard of one or used one in the past? I would appreciate any suggestions.
There's a whole range of ways to do this, but I haven't ever seen a dedicated solution (plugin or otherwise).
On the one hand, a blog could do all that you're asking. Posting pictures and blog entries? That's wordpress all over. Want a calendar? We have a plugin for that. Want to let volunteers sign up for stuff? Let them post comments.
On the other hand, the problem you're describing isn't unique: In my own experience I've wanted the software you describe. May I suggest that, if you have the time, you make something totally awesome for the volunteer community?
Our company, Wired Impact, recently released a plugin called Wired Impact Volunteer Management that provides exactly the functionality you're looking for. You can learn more and download the plugin at https://wordpress.org/plugins/wired-impact-volunteer-management/.
I'm creating a site for a video store and it needs to be CMS. I'm doing this for free so I need to use a free CMS like Wordpress, Drupal or Joomla.
Do I need a new CMS, a plugin or some PHP of my own?
What I need:
User accounts
Categories
Custom post
Here's the site as it stands with WP: http://sundancevideo.ca. Right now an experimental site to try to work this out.
What I've done now, is created a "Draft" that includes a template table with images and text and so on. The user would then have to copy everything, past into a new post and replace necessary. This really isn't working well. As you may notice by the condition of the posts.
What I would prefer is if it was integrated into the WP UI. Like a field for "Description" and field for "Image" where they can upload the images as necessary. This would then generate post, with a table including all the information and images, for as many movies that were added in the UI.
I would suggest taking a look at PodsCMS as a great way to implement real CMS functionality in to WordPress. It allows you to create various content types, relate these content types, and more importantly live outside of the "WordPress bubble".
You'll find a fairly good codex and user guides (the ones authored by Johnathan Christopher are a great start). There is a solid API for this in the event that you need to integrate Pods in to an existing plugin or one you are creating. There are also developer and user contributed packages for Pods and there is even a YouTube video package you may want to check out.
PodsUI (soon to be merged with PodsCMS) allows you to create administration menus in WordPress very easily and allows you to pretty much make it look and feel how ever you want.
Flutter is a dead project and while it may be a little more user friendly than PodsCMS it lacks in in development, support, and over all usability.
Feel free to drop in the Pods Chat or # them on Twitter.
As for the user accounts you should read up on WordPress user roles/capabilties and also check through the WordPress PHPxref. A lot can be done in the way of using WordPress' current user system and you can even add other meta information for users if needed.
If you want a full CMS backend then you can't use Wordpress without extensive customising. You might want to check out pods cms for Wordpress which is an extension to attempt to turn Wordpress into a CMS. However, I have tried using it before and you will still be left with a confusing UI for your users. It will allow you to do the custom fields you want, however.
If you want full control over the UI, you will have to use either your own PHP or Drupal. Which one depends on how complex the project is and how much experience with Drupal you have had. If it is simple and your Drupal experience is limited, definitely go with your own PHP because Drupal is hard to learn. I think it would take you more time to learn Drupal than it will be to get a simple interface going with PHP.
I think this post will be helpful, depending on your experience, if you go with your own code.
i don't have particular suggestion for you custom need. Except beware for how much you give permission for your member. Please make sure they were a contributor and not author. In wp, the contributor role has no ability to publish. They have ability to post something just as a review. Thus, Administrator can review them and then published if it appropriated.
The problem with this situation is when you need them to upload things. The member with contributor role has no ability to upload video, image, or song. You have to custom this.
But if you only need their snippet or HTML link to the video (probably in youtube), then you don't have to change default wordpress role.
sorry if i mislead by your question. just trying to help as much as i can
I guess it depends on your shop's needs. I understand wanting to use wordpress, and you can do it, but at this point it almost makes people think... 'why?' If youre just going to use paypal and have a few products it might be a good idea but I think carts like zencart and oscommerce that are much better suited to store's needs. Though they are a little older. Magento and opencart are more modern, and all free. Though I've only ever used zen cart. None of these are terribly hard to set up. I guess You could always have you wordpress from page and use a link to your carts store menus.
MODx is brilliant for customisability - it was designed from the ground up to be extensive. It runs on PHP and MySQL.
You can create your own templates, add fields to those templates that appear in the UI when someone wants to create or edit a page based on that template. It has widgets for different data types, like images, dates etc that your users can use to add data to a page.
You also have full control over the HTML because you write the templates yourself. If the core code doesn't do what you need, you can write snippets in plain PHP to change the behaviour.
I've used it on a few projects over the past 3 years and I love it. I'd recommend MODx Evolution (v1.0.3) as that's stable. There's a brand-new rewritten version (Revolution 2.0.0) which is a release candidate at the moment, so you might want to have a play with that instead.
I reckon once you know MODx enough to create the site design, it'd be fairly easy to implement an off-the-shelf shopping cart into it (there may even be a MODx plugin that already does this.)
I want to consolidate all the loose information of the company I work for into a knowledge base. A wiki seems to be the way to go, but most of the relevant information is buried inside PST files, and it would take ages to convince people to manually translate their emails one by one (including attachments) into wiki pages. So I'm looking for a wiki engine that supports page creation by email, that is, capable of receiving email (supporting plain text, html and attachments) and then create the corresponding page. Supporting file indexing and looking for duplicates would be a huge bonus.
I tried with WikiMatrix, but didn't find what I was looking for. I wouldn’t mind to build my own engine (borrowing a couple of snippets here and there for MIME decoding), but I don’t think is that a rare problem so there is no implementation.
Both Jotspot and MediaWiki allow you to do this. The latter has support for a lot of plugins, of which this is one. The format is essentially PageTitle#something. Jotspot is a hosted solution where you get your own email address, MediaWiki is self-hosted and you give it a mailbox to monitor for incoming.
Articles are appended to pages if they already exist, or a new page is created if it does not. This does require a degree of discipline for naming conventions, but is great for CC'ing.
We use MediaWiki here and I like it a lot. It has the same flaws as many other Wiki packages (e.g difficult to reorganize without orphaning pages) but is as good if not better than other Wiki packages I've used.
I don't know if this is exactly what you're looking for, but I know many of 37 Signals' products support adding data through email. I use Highrise to keep track of some of my business correspondence, and I'm able to CC or forward emails to Highrise and they get added to the appropriate contact.