Drupal 7: Wysiwyg - Insert Blocks Plugin - drupal-7

Drupal 7 + WysiWyg + CKEditor 4
I am using Insert Blocks plugin to add blocks to content via Wysiwyg. Inserting code manually (like [block:block=1]) works. But there is no Icon in Wysiwyg which I can use to get the same result.
I was wondering if anyone is aware of a plugin that can already do that? Basically, after clicking icon, blocks will be loaded in a window and when user selects a block, above code will be automatically added.
Thanks

You can create such buttons using the Shortcode module that creates shortcodes similar to the Wordpress functionality.
You can also try Token Insert, Token Insert Entity and Token Filter modules that are using tokens and are doing similar job but not as buttons on the wysiwyg editor.

Related

how to debug form rendering issues when using angular-schema-form

i am using angular-schema-form to render some forms dynamically. the forms are rendering mostly as expected, but when i use tabs, only the tab names are getting rendered, but not the content of the tabs. i have tested the json schema and the form on the schemaform.io test page (http://schemaform.io/examples/bootstrap-example.html) where it renders correctly, but the same doesn't render the tab content in my application.
Note 1: it is worthwhile to note that i am using angular-schema-form within a larger application that is based on spring-boot + angularjs (the application itself is generated using JHipster (https://jhipster.github.io)
any pointers on where i need to start looking for debugging this issue? i looked at the google chrome developer tools but did not find anything useful to help debug.
Note 2: i am not using any custom decorators or validators. both the schema and form are generated from a YAML template which is more 'user friendly'

Can we use drupal AHAH in webform module of drupal 7

I intend to add dynamically fields like text boxes, radio buttons, checkboxes ,select boxes on a click of button like "ADD More".
I heard we can use AHAH to add fields dynamically, since I used a webform module to build my form, can I still be able to use AHAH to add the feature of "dynamically addition of fields" ?
I found an alternative solution, Simply used php files in building web pages and got the required functionality.
Simple web pages will have an option to add php scripts directly. And relying on AHAH is No- No for the required functionality.

Drupal 7: Add duplicates for form fields on the fly

I've got a form that's being generated using the Form API. There is a fieldset that contains several text fields. What I need to do is have a link or button that a user clicks if they want to add a duplicate of that fieldset to the form so they can add another set of similar information to the form. This is to essentially allow them to add multiple records without having to add each record individually. Is there a good way to go about adding this kind of functionality using the Forms API in Drupal 7?
There's a good example of this in the examples module package:
http://api.drupal.org/api/examples/ajax_example%21ajax_example_graceful_degradation.inc/function/ajax_example_add_more/7
It's a little complex, but that is very well documented, so you should be able to follow along.
You'll want to look at the entire ajax_example module (part of http://drupal.org/project/examples) for the relevant menu callbacks as well.

Handling Images in drupal 7

How to add single image in drupal in a block region and how to manage slideshow in drupal 7.
I am newbie in drupal Please give me step by step explaination.
You can add a simple image by just including it in code <img src="<url>"> and selecting the FULL HTML Filter
There are tonnes of options for slide shows, see the list here:
http://drupal.org/node/418616
You can add an image in the block region by creating a custom block and use a PHP code
sites/default/files/image-name.jpg">
For creating a slideshow in drupal 7, you can use view slideshow cs module.
For making a slideshow in drupal you have to follow few steps :
Create a content type for slideshow
create view and use a slideshow in the setting
add the images using content type
enjoy the slideshow

Custom page in drupal

hi i m new to drupal i want to know that how could i add my custom page for the display the some information which is come from databases, i have create that page in core php (for example information.php)but i want to add that page in drupal 7 how it is possible
looking for the quick and best reply
The quickest way would be to add a content type "Information" to your drupal site, rename your information.php file to node--information.tpl.php and use the Drupal Database API to get stuff from your database. Finally you'd want to put node--information.tpl.php in your theme/%themename/templates/ folder and add new content with the Content Type "Information".
The best way would be to make a new module. Build your menu structure and add a theming function that calls a template file. When calling the template file using theme(), pass along the data that needs to be displayed.
In addition you might want to check out the Custom Page module: http://drupal.org/project/custompage

Resources