No ‘Div Container’ button in CKEditor

No ‘Div Container’ button in CKEditor

I’ve got CKEditor 4.5.0 working on a Drupal 7.42 install. I’m now trying to find a way to wrap more than one HTML element inside a DIV (I want an image and caption to be wrapped in a single DIV). On the CKEditor Profile I got ‘Div container’... read more
Product category filter on the /products page

Product category filter on the /products page

I’ve been looking for a while but I can not seem to find the correct way to tackle the following problem. On my products page, where all the products are, I have the standard drupal commerce kickstart filters. One of those filters lets me filter the shown... read more
No ‘Div Container’ button in CKEditor

How to export ‘Content-Type’ data into JSON?

I’m using Drupal 7 and I’ve created a content type as ‘CONTENT_TABLE’, which includes multiple fields (COLUMNS) as such: CONTENT_ID, CONTENT_NAME, LARGE_THUMBNAIL, ZIP_FILE… I want to export the data (each row of the table) into a JSON. I... read more
How can I enable search on parts of a word and autocomplete suggestions?

How can I enable search on parts of a word and autocomplete suggestions?

I’m using Search API in Drupal 8. I tried with Search API pages and even views, but I didn’t find %like% function query Can I do %like% in Search API or Views? read more
No ‘Div Container’ button in CKEditor

How do I retain the query string after login?

I need the user,opening a certain page of my site (www.foo.com/page_to_visit), to login and then go to the requested page, so I set up an hook_menu for this specific page and a callback. In the callback I added this code which works drupal_goto(‘user’,... read more
No ‘Div Container’ button in CKEditor

How can I render UTF-8 characters?

In nodes, the ‘ character is rendered like ’. Instead of Poland characters, a question mark is shown. In breadcrumbs, ‘ is rendered as ‘. I tried the following code, but nothing works. <?php print stripslashes(render($content));?> <?php... read more
No ‘Div Container’ button in CKEditor

Group node from OG membership doesn’t work

I want to create some views to display Group information on Group content pages. E.g. Display contact info from the group in a block/pane in the sidebar. I did this before, by using the default OG Content view and add the relations. I add the relationship OG... read more
No ‘Div Container’ button in CKEditor

Adding Quick Tabs Programmatically to a node is not working

I’m writing below code in my node–type.tpl.php, but only empty page is loading when i load the node page.Can you please help in knowing my mistake. What i need to add to display quicktab and its corresponding viewmode content? my code is: <?php... read more
No ‘Div Container’ button in CKEditor

How do I store filtered markup?

I am looking at porting Message to Drupal 8. It uses token to generate the message arguments which are HTML escaped. This is the current code. foreach ($matches[1] as $delta => $token) { $output = Drupal::token()->replace(‘[‘ . $token .... read more
No ‘Div Container’ button in CKEditor

How to add alt tag to image from views

I have created views with image gallery. Now I want to add alt tag to image how can I do it. I have not enabled alt field in content type configuration. I want add alt tag to already existing images. Kindly provide the solution to achieve this. read more
No ‘Div Container’ button in CKEditor

How to Add Taxonomy description or other field value in a textarea with WYSIWYG?

I want a content editor to be able to create re-usable content, then have access to that content through the WYSIWYG editor when editing the node body or other text field. The idea is that the information gets used in multiple locations through the site, and they want... read more
Kint breaks in template and doesn’t allow me to view anything

Kint breaks in template and doesn’t allow me to view anything

In my template I am trying to view the contents of Childen in a form template. <form{{ attributes }}> {{ kint(children) }} </form> However, the result I get is a useless broken kint message, that doesn’t allow me to expand any of the fields or view... read more
No ‘Div Container’ button in CKEditor

How to get "User ID From URL" with contextual filter in Pfofile2 page

I’m using Drupal7. I wanted to display some fields from user account in profile2 page by using Views. I tried to do this by using views block and views_embed_view() coded in profile2–ProfileType.tpl.php for profile2 page. So, I created a view and set... read more
No ‘Div Container’ button in CKEditor

Entity Reference multi value fields, filter on parent

I have two content types: Family and Members. Family content type has an entity reference field of type Member and can have unlimited values(multiple values). My question is: How to create a view that enables me to filter Members based on Family. Thanks read more
How to hide nodes in a VIEW where the user is not referenced?

How to hide nodes in a VIEW where the user is not referenced?

This is a follow-up to How to show nodes where the user is (not) in the reference field with Views? I have a node with multiple user references and need a node VIEW that hides all nodes where the current user is NOT referenced. So, if the current user is not... read more