I'm building a site starting from the magnolia empty webapp with maven.
All is ok but now I'm now writing the contact page of the site. I'd like to use the magnolia mail module for this. So I installed the mail module and the form module.
Problem:
After installing the form module in magnolia 5.4, the template called "Form" does not appear in the template selection when creating a new page in the pages app.
As it seems from the Documentation, it should be there.
Details:
Other templates, created by me with yaml and freemarker, correctly appear (and i can use them correctly).
The mail module is up and running and configured: i can send a mail to myself with the "verify setting" page, using a template i made, but i'd like to create a contact module for my site.
I installed the module with maven like:
dependency: groupId:info.magnolia, artifactId:magnolia-module-form , version:2.3
and installed it with the usual steps (installed module, wait , correctly completed without messages, started magnolia)
I DO NOT have STK installed since i'm using MTE... and i've other modules installed (resources, site, mail, MTE, DAM, etc...)
Am I missing something or doing something wrong? :|
Otherwise, Can the magnolia mail module simply be used standalone without the form module to send out a email, may be pointing a hand-written form to somewhere?
Or, best option imho: can I make a new form template with yaml? I can't find docs about it.
Thank you!.
Edit: I tried to install the STK along with MTE (I correctly updated to magnolia 5.4.1) but it relies on data-module 2.3.6 (which i don't have in my dependencies and which i don't use) so it won't install the STK. Also , installing STK just for a form template seems overkill to me. I'd prefere to understand how to insert a form in one of my templates.
Preinstalled templates are for STK. If you want to use Magnolia without STK, then you need to write template yourself, but in exchange have much more freedom in what you can do with that template. Once you create and register template you should be able to use it.
Re STK - latest version doesn't have any dependency on data module - see module descriptor. Either I'm blind or there is no such dependency. :D
HTH,
Jan
Related
All!
As the title says, I am new to deal with Drupal and I need to make a module that sends emails whose content is based on HTML and preferably using Twig templates. At the same time, these messages are sent by triggering them through restful web services.
I know how to create a custom module, but I have not dealt with Twig templates and I do not know how to read them in the code and how I can inject data into their placeholders.
I have read about some ways to send e-mails programmatically through Drupal and I did not understand well. An example of this is the use of the hook_mail(). What I understood is that I have to make a custom module and then use this function with the word hook replaced with the name of the module and then make a function that uses the mail manager in Drupal \Drupal::service('plugin.manager.mail'), but what I don't understand is where to put that hook_mail() function inside the custom module?!!! Is it in a PHP file inside The src folder and where is inside the src folder?!!!. What I know is that if I make a special Form that I have to put its PHP file inside the Forms folder, which is inside the src folder. So where do I put it? Is the mail manager, \Drupal::service('plugin.manager.mail'), inside Drupal built internally or is it an external plug-in that has to be installed? Does it support HTML messages?
Best Regards,
Amr Rashad
I need help to understand the documentation for Fluent, from here Fluent config documentation
The documentation says:
"You can create locales via the /admin/locales CMS section."
When I create a locale, for example english, and then click on it I get at popup saying "Not Found".
Do I need to install the locale somewhere else before using it?
Did you run dev/build?flush=1 when you installed the module? After installation you should have everything read to go, and can start adding locales in the CMS.
Note that when you add your first locale in the CMS, the existing pages you have will not be available in that locale and you'll need to go into the Pages section and publish the pages you want to show up in your default locale.
I ran into this aswell.
The problem were missing files in the resouces folder. The 'Not found.' message in the admin panel refers to missing static assets like js and css files from the resouces folder. Open up your dev tools and inspect the 404'd requests. There you can see which files exactly are missing.
I watched a Tutorial from Magnolia here is the link: [https://www.youtube.com/watch?v=qdDb-oYt18k].
During watching it I followed his orders. I also read the hello world tutorial in the documentation. That is, I installed magnolia with cli and created a light module and a page. Everything was created with cli so there is no way that my module could have any errors. I restarted my tomcat server and entered the admin panel. First off my module is not shown in the resource folder, neither is it shown in the page template selection menu.
What exactly could this be?
As per comments under the question,solution to this issue was to ensure property in magnolia.properties file denoting folder with light modules points to correct directory.
When in doubt always use absolute path.
I am following these steps: https://documentation.magnolia-cms.com/display/DOCS/Creating+a+page+template. I'm stopped at creating a page definition.
Magnolia does not see my helloWorld.jsp template. I'm using the Enterprise Edition (free trial) if it matters. I watched all tutorials, but I can not find the answer.
Yes, it probably matters.
When you are using EE, you can have defined multiple sites in single server and you don't necessarily want to have each template available in each site you define. So you need to tell Magnolia for which site you want to enable this template. To enable this template for all sites, go to STK group in AdminCentral and open SiteDefinitons app there. In Site Definitions, go to /default/templates/availability/templates and register your template there by creating Node named helloWorld with property id set to value templating:pages/helloWorld (ID is always in format module-name:path-to-template-from-templates-folder)
HTH,
Jan
i'm trying to install the securefiles module https://github.com/hamishcampbell/silverstripe-securefiles on my silverstripe 3 installation.
After renaming, uploading and dev/build
i get two checkboxes in security>groups>groupname>permissions named Access to Secured Files and Manage File Security Settings.
But that's all.
and when i want to access the files section in silverstripe i get a server error.
Can someone tell me what i need to modify that secure files is working?
That extension seems to be only compatible with SS2.x so for SS3 you might need to find another extension, update it for 3.x (http://doc.silverstripe.org/framework/en/trunk/changelogs/3.1.0) or try a custom approach like Silverstripe - google picks links on members only page