Swetalert forms in Drupal 8 - drupal

I'm trying to use sweetalert modal with complex form. I've already read "https://stackoverflow.com/questions/30655649/" where is shown how to do it whit a plugin.
I wonder how can I use the plugin with sweetalert library for Drupal 8? It seems to be no match between the two filesystem folders.

Related

How to create custom drupal 8 module

I am sure this question will irritate many old Drupal developers, but I just need a quick fix.
I want to
create a brand new custom module by a hook to an existing contributed module.
introduce a feature in my new module which is an alteration of a feature (e.g form) in the parent module.
Can someone please walk me through the coding ?
Say for example , I want to create my custom module from the simpleads module (https://www.drupal.org/project/simpleads), and my module needs to alter some forms in the src/forms folder.
Thanks

Is there the equivalent of the WP plugin Types for Drupal 7?

So I have a Drupal 7 client who needs to have a dynamic content type...
name, description, 3 images
We will show these "objects" (for lack of a better word) in a filterable grid. Also, the client needs to be able to add, update and delete these on their own.
I have done this sort of thing many times in WordPress with the plugin called "Types" (https://wordpress.org/plugins/types/).
Is there an equivalent plugin for Drupal 7? If not, any thoughts as to how I would go about this?
Thanks,
David
One of the great advantages of using Drupal is that it is a framework for creating custom content types very easily using the administrative interface. See this for further reference and good luck!
http://m.linuxjournal.com/content/creating-and-theming-custom-content-type-drupal-7

Drupal 7 - Adding a cycle of images on each page

Im fairly new to developing in Drupal, i am using the 7.x code.
I have a site that i need to develop, which has a cycle of images on each page.
I am usually a wordpress developer, and how i achieve it there is a gallery plugin, then insert the shortcode on each page.
Is there something like this in Drupal, or could someone suggest something similar that i could use?
Cheers,
Drupal 7 is a bit shaky at this stage, so some of the module I listed here might not be suitable for production environment.
-Gallery Formatter
-Colorbox
are the two modules that do the trick for me. Search in drupal official site
To make gallery appear on all page, You can load the gallery in the block.
You could create the site at drupalgardens.com and see how they do it. They offer the required functionality or if you are just starting you could start there and export the site later to run it on your own server.
It took me a while to figure the right search query fot this myself, but I think what you are searching for is called a carousel.
Just browse the Drupal Module search of the keywords carousel.
I found the first one jCarousel doing exacly what I wanted, when combined with the Views Module.
Sometimes it's called a rotator or slider and additionally you could check out this Drupal comparison page

Drupal 7 custom themes

I really need help.
I have decided to build a website with drupal so that i can add drupal to my skills, but i am starting to think i have made a big mistake.
I am a wordpress developer and have built most off my websites with wordpress. The probalm i am have is custom templates with wordpress i can just create a custom temaplate by add some shortcode to the head off my theme file easy.
How do you do this with drupal is it completely modular can you adjust themes i am struggling trying to find a way off doing this. i started with drupal 6 and this was possible by doing the following.
page-node-17.tpl.php
i could just then assign this to the specific page with a node of 17, i have since switch to drupal 7 and this doesnt work.
Can someone please tell me if this is possible.
Thanks
Yes this is still completely possible, however, the naming convention changed. Now you will need to name it: page--node--17.tpl.php. For more information on naming templates, see Drupal 7 Template Suggestions. Also, the Theming Guide is a very useful resource.

Drupal WYSIWYG using CKEditor vs CKEditor module

What is the difference between using the WYSIWYG module pointing to the CKEditor library and using the dedicated CKEditor module.
We currently use the WYSIWYG module with TinyMCE.
The answer seems to be that with the Wysiwyg module, you get an interface for which buttons appear in the profiles, whereas with just CKEditor, you don't? Or at least it's not obvious where choosing which buttons appear happens in the CKeditor module. http://drupal.ckeditor.com/ has some documentation on the subject, which says you can change the buttons.
http://drupal.org/node/606404 for some background on why CKEditor and Wysiwyg are separate efforts (though you can use CKEditor just fine with Wysiwyg).
I'd be inclined to stay with Wysiwyg so that you can swap out editors (that is, the JavaScript libraries for them) without having to swap out Drupal modules.
The CKeditor module gives you have much more granular control around where the editor windows appear, user role level permissions and the buttons available for each. The WSYIWYG API just allows for basic on/off configuration of editor windows for text fields across the whole site. Button profiles are based around input types (filtered & full HTML). The advantages of the API module is that it's not limited to just one editor (there's 10 or so) and really easy to configure.
The Ckeditor module is more difficult to configure and certainly not for most implementations, but very nice to have this module available if you require that level of control.
From my experience, using the Wysiwyg module was a better decision.
In some special cases (mainly when the editing was inside of an Ajaxed page), using ckeditor was a bad chioce.
When using the Wysiwyg, replacing the editor itself wasn't a hard task, which solved several problems very fast.
Therefore, for future situations you might not even think of now - use the Wysiwyg module.
Using the WYSIWYG module will allow you to fairly easily switch to another editor if you find one you prefer (or if new ones come onto the market).
RE: WYSIWYG module using CKEditor library vs CKEditor module
I found the former only allowed the following toolbar;
(source: johnathanthwaites.info)
Later had much more like font colour, flash embed, spell check etc.
(source: johnathanthwaites.info)
Have done a full explanation here;
Link to CKeditor

Resources