Questions about 'HTML' not related to Drupal should be asked on 'Stack Overflow'. Don't use this tag to generally mean the question is about HTML code.

learn more… | top users | synonyms

3
votes
0answers
9 views

Is it possible to include HTML embeds like Twitter on the WYSIWYG section of the CKEditor in D7?

I have staff writers who want to include embedded tweets in their articles. However, they don't know HTML and aren't able to use the "source" section of the editor. Is there a way to embed the HTML ...
0
votes
1answer
9 views

Using views_embed_views() to generate content for an email message. How can I get it to insert images and urls correctly for this purpose?

I am using views_embed_views() to generate content for an email message. How can I get it to insert images and urls correctly for this purpose? Or, asked another way, how can I put the contents of a ...
1
vote
1answer
26 views

Is it possible to programmaticaly change the HTML rendered by Drupal 7?

Imagine that we have a project completely finished, with lots of modules, themes, etc. Is it possible at all to have a module, which will be called at the last stage, and change the HTML output. For ...
0
votes
0answers
19 views

use jquery to add a div wrapper to a dynamically created drupal modual div

I need to add a div with class=row around a bunch of divs that are being dynamically created by a drupal module (cant do it in the view either) i was trying this, but since it is created dynamically, ...
0
votes
1answer
24 views

How to change programmatically the link of a field in a View

I have a View, with a hidden field with a URL, and an image field which has the following property: Output this field as a link and linked to the URL field: [field_url_slider] and _blank as Target. ...
1
vote
2answers
47 views

Getting “--> ;” on front page after editing custom html.tpl file [closed]

I am newbie and using Drupal - 7. I have added script tags into my customized html.tpl file. <script async ...
0
votes
0answers
7 views

How to stop Views from encoding HTML?

I'm using the Views module to organize data from my own database tables on a page. Some of that data is text that includes HTML, such as "<strong>" and "&#151;" to govern the details of its own ...
0
votes
1answer
11 views

Static Html elements on different pages

So, I have a frontpage where I simply have a big image and a button that leads to a second page. On that page I want this: Which are two sections. However, when I'm on the contact page I don't want ...
1
vote
1answer
18 views

why drupal reads js from external url?

at the top of my page drupal reads something like this: <html class="js" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" ...
0
votes
1answer
29 views

How to set up html email from rules?

I want to send a HTML email from rules but I cannot get it correct. Installed mime, html, mail. Created rule. only a trigger and action send html email. In the rule: no message key defined, subject ...
0
votes
1answer
25 views

Rendered block doesn't match HTML source

I have entered HTML into the body of a block with the Full HTML filter (with all filtering disabled). I am using CKEditor with ACF completely disabled. The editor shows me the source rendered the ...
2
votes
3answers
85 views

How to create and send an HTML formatted eMail using CSS?

I am going crazy in making a welcome eMail in Drupal. What I want is sending a nicely formatted eMail using HTML and CSS. I do not need to send an eMail to user except a welcome eMail after user ...
0
votes
1answer
35 views

invoking a block and attaching it to a specific html element

I have been having this problem for quite some time now and I don't know how to proceed. I am trying to get a block by invoking it, the simple way: $block2 = module_invoke("module", "block_view", ...
1
vote
1answer
67 views

How to send HTML/Rich text email from /contact

I want to allow other text formats on the /contact form than just plain text. I haven't been able to find a module that does this. Is it possible to do this in D7?
0
votes
1answer
38 views

HTML img code does not work?

I'm using Drupal7 with CK editör. When I add html code for an image (<img src="...") I can see it on the editing page; but when I save it, I can't see anything on the page. How can I solv it?
0
votes
1answer
41 views

HTML comment based tokens in hook_views_post_render()

I am trying to figure out why my HTML comment based tokens are not getting replaced in hook_views_post_render(). I have a view where I've got a couple of fields, let's say, nid and the content title. ...
0
votes
1answer
33 views

Adding html subsites to Drupal 7 installation [closed]

Newbie here, and would appreciate any insight. I have a Drupal 7 site and am looking to create a few small HTML subsites (e.g., Drupal site www.mykittenmittons.com, html subsite ...
0
votes
1answer
63 views

send user registeration mail in html format

I want to send any email of my site in HTML format, I install smtp , mimemail and mailsystem modules, and smpt configured correctly and test it(I check Allow to send e-mails formated as Html), also ...
0
votes
1answer
63 views

How to display plain html

I have inherited a drupal site with a few modules. They're not exactly written according to best practices... they return html code instead of renderable arrays. In other words, they do this: ...
1
vote
2answers
16 views

Is Drupal cache as set in the core enough for simple sites?

Let's imagine a site which is almost completely static. There are news which are rarely updated and from time to time some new content in the form of more news. If there are only anonymous users apart ...
0
votes
0answers
27 views

Adding a styled progress bar under Form Title but above #prefix text in Custom Module

I have a multi page form. This form has a title set in the hook menu function at the top as they are wont to do. It displays the title of the form, with this code: 'title' => 'The Tool', I then ...
1
vote
3answers
394 views

Add <a href> link around each row in views

So basically i want to add a link to original node around each row in views. I have added the following code to the style and row template override in views. Both come up with the same result. ...
0
votes
1answer
46 views

Page Title outputting leading/trailing whitespace within H1

My Drupal 7 site is printing out leading and trailing whitespace and a line break within the page title <h1>. The following is an exact copy and paste of the HTML that's being delivered to the ...
1
vote
3answers
29 views

Export menu to html?

The project I'm working on has a specific requirement where I need to export the main menu as an HTML file. I figured the simplest way to do it would be using views but I found that views doesn't ...
0
votes
0answers
31 views

Bootstrap strips off “type” and “media” attribute from tags <style> and <script>

Bootstrap theme uses the hook_process_html_tag in the file themes\bootstrap\theme\system\html-tag.vars.php which strips off the type attribute from the tags <style> and <script>. This ...
0
votes
0answers
31 views

Sending information from JS to Module File

In one of my webpage I print one button multiple times and all have different logId. I want that when user click then there will JQuery into the picture and there should be no server side post-back. ...
-1
votes
2answers
58 views

How to insert HTML that includes an ampersand>

I've created a custom block, and I'm trying to get this custom block to output a specific piece of HTML. The HTML needs to be different on every page, because it needs to include the page's URL in it. ...
0
votes
0answers
41 views

Generate and include a form in a custom admin template

I have spend six hours, I am stuck on a problem. I try to create a custom admin page for my module. For this, I use the hook_menu in which I have pass the name of a method in the argument ...
0
votes
0answers
56 views

Drupal views fields printing html tags without rendering

I have my data from sql with table html tags e.g. tr and td with table html tags. When I render it in drupal views it displaying all the html table tags without rendering it. I put some code in ...
0
votes
0answers
32 views

How to add CSS and HTML div's to my custom form [duplicate]

I create a form using custom module. That form contains text fields and text areas, check boxes. I place a URL in mymodule_menu() I render that form on page. Now i need to display my form elements in ...
1
vote
1answer
49 views

Print node tags in html header

I am trying to print the articles tags in the meta area of the html. I am able to print them, however, they contain all the markup, where as I just need the plain text, comma separated list, much like ...
0
votes
1answer
104 views

Get the url of image field

I am using this solution to print the image for a node in the html.tpl.php file. This works, except it has the full markup. I need just the url for the image. Any ideas of how to print this out? For ...
1
vote
1answer
68 views

Returning HTML through an ajax-call in Drupal 8

I am trying to grasp the MVC/Symphony integraton of Drupal and am making use of the controllers. My controller has a function named "returnHTML" which is called by a normal XMLHttpRequest. Problem is ...
0
votes
1answer
98 views

How to insert html tags to a node content? [closed]

I am wondering is it possible to insert a plain full html tags to a node content? Currently I have a node content type having a list of fields, but if I add some html tags in tpl.php file for that ...
0
votes
0answers
12 views

Some RSS Feed imports wrapped in EM tags

I'm importing some rss feed items using the feed importer module. It works well for most items, but some seems to have an <em> tag wrapped around them which is destroying my layout: <div ...
0
votes
1answer
40 views

Build custom module with similar maintenance mode behaviour

I'm building a custom module that denies access to the site based on some custom rule. I;ve already build the module form, variables get stored, in hook_init I do my check against the variables I set ...
1
vote
1answer
200 views

Check if its the front page in twig template DRUPAL 8

Im trying to show content when I'm on the front page of my Drupal 8 test website, but the content shows on every page: {% if front_page %} <header role="banner"> {% if logo %} <a ...
1
vote
2answers
90 views

PHP Output in module

I am creating a module that is outputting a static php page into my Drupal install. Here is my module file: <?php function mymodule_menu() { $items = array(); ...
0
votes
1answer
87 views

Static HTML page within custom module [closed]

I need to create a custom module that produces a static HTML page on a specific menu item. I know how to create the menu item with the menu hook, but how would I go about having the module produce the ...
2
votes
1answer
106 views

Add a small javascript/HTML to a page

So I have a small bit of HTML and Javascript that I want to embed in a basic page. I go to edit the page, turn off rich text editing, and paste the HTML/javascript. I save, and then the javascript ...
0
votes
1answer
185 views

rate module thumbs up / down widget with button

i am using rate module to count like and dislike. here i am using Thumbs up / down widget. my question is that how can i show a button below thumbs up and dislike button below thumbs down. into the ...
1
vote
1answer
416 views

Drupal-8 Css styles not working while included in .info.yml file

For some reason my theme cant find css/style.css in drupal 8. This is the .info.yml: name: Adminimal type: theme description: Drupal Administration Simplified. # version: VERSION # core: 8.x base ...
-2
votes
1answer
25 views

How to add content into topic item [duplicate]

I want to add content into a topic item on a website. I am using drupal and have admin access. I want to edit code that will return the below objective. How do I access the files that would have the ...
0
votes
2answers
108 views

Title encoding to display correctly foreign characters

In my html.tpl.php file in the <head> tag I display the page title as follows: <title><?php print $head_title; ?></title> This displays the foreign characters not correctly ...
0
votes
1answer
44 views

How to add paragragh information under hovered menu item?

Hi all, I want to add descriptions under my menu items like above (Eg. Home (ADD my description) Products (etc)? Do I have to create children under these menu items and enable these???? Any advice ...
0
votes
2answers
124 views

HTML Form that Passes Information to Hidden Fields Through URL

I am trying to build an html form that is stretched across several pages. My intention is to use the GET method to send all of the fields data in the query string (URL parameters) and then store this ...
1
vote
1answer
66 views

How to hide username displayed in code with Omega 3 theme

Drupal 7 with Omega version 3 theme generates a username class for the article tag in the HTML code, something like : class="node node-page node-published node-not-promoted node-not-sticky ...
0
votes
1answer
39 views

video html5 won't display in content type? [closed]

I uploaded some videos to our site and I can view them just fine using an HTML5 tag in a basic page. <video controls> <source src="sites/default/files/videos/a03.mp4" type="video/mp4"> ...
2
votes
3answers
510 views

Custom search form

I am currently printing the search from like this: $block = module_invoke('search', 'block_view', 'search'); print render($block); Wich generates: <form action="/sescam/" method="post" ...
0
votes
1answer
75 views

Menu link on hover is showing &amp; instead of &

I have a Webform that provides a menu link. The webform is available in three languages (dutch, french, english). For the dutch version I have a menu title of Informatie and description Vragen & ...