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

0
votes
1answer
26 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 ...
0
votes
0answers
26 views

Print node title and description in html.tpl.php [on hold]

I am trying to display an articles title, description, etc in the html.tpl.php file. I need to do this for an analytics service. I can not use the meta module which everyone points to. I was following ...
-3
votes
0answers
27 views

Drupal multi-site, server optimised but cache not working! Detailed description. Apologies! [on hold]

Set up server with PHP 5.5, enabled the Opcache and put in Memcached as well. At the same time, Drupal has been configured to have Boost, Boost Crawler, and Memcached storage. However in every case I ...
1
vote
0answers
14 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
33 views

How to insert html tags to a node content? [on hold]

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
5 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
26 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 ...
0
votes
1answer
38 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
52 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(); ...
-1
votes
1answer
36 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
44 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
57 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
41 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
22 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
27 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
28 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
40 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 ...
0
votes
0answers
24 views

All HTML tags are automatically stripped from views block when placed inside a <select> element

I'm trying to use Views to create a custom block which will display the linked titles of all content of type "promotion" in a dropdown menu. Every result's title is displayed within an <option> ...
1
vote
1answer
52 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
24 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"> ...
0
votes
2answers
71 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
56 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 & ...
1
vote
1answer
32 views

Problem adding html to blocks

I seem to have a problem when adding html to a block (i'm using ckk editor), if i toggle Source it loses them html id tag. If I save the Block without toggling, it works fine, but when I go back in to ...
0
votes
0answers
16 views

Use HTML Special Chars In View Titles Kickstart 2 Omega Theme

I have a number of Views where the title contains HTML special chars, such as ® Unfortunately, Drupal 7 seems to want to not want to escape these and render properly. The displayed output is ...
0
votes
1answer
39 views

JQuery Mobile.js for drupal 7

I'm attempting to add the functionality of jQuery's Mobile.js to allow for the vclick event. I already have a website in place. What would be the easiest way to add this functionality for an admin ...
0
votes
1answer
27 views

How To Simplify The User Registration Page

I'm wanting to really simplify the user registration process using nothing more than HTML, a Field UserType Choice (ie: a: teacher OR b: Student) and a Rules set to set the user to the required User ...
0
votes
0answers
45 views

One page scroll not working

I'm using OnePageScroll.js for my Drupal website but somehow the Javascript file isn't doing anything. Everything is perfectly imported, even the .js file. I put an alert box in it and it worked but ...
1
vote
1answer
36 views

Variable containing HTML is not rendering when sent by message notify

I am trying to send an e-mails with message notify and rules, everything is running pretty good, but there's one variable which contains a "HTML code", It describes a table of items that were bought ...
0
votes
0answers
58 views

Ampersand character ( & ) being changed to &amp; in the text field (BBcode)

I just noticed that when i type in an Ampersand character (&) into my bbcode text field, its shows up printing the html code (&). What is the cause for this, and how could i correct it?
0
votes
0answers
18 views

Switching from Wyswig to no filter removing <p> tags

Is there a way to get the tinyMCE with the wyswig module to not remove the <p> tags added when switching from wyswig which uses tinyMCE to no filter which does not?
1
vote
0answers
33 views

How to add multiple meta tags with the same property?

I'm trying to set up OpenGraph tags on a page containing a video. I'm currently setting up the usual sorts of <meta property="og:video"...> tags with calls to drupal_add_html_head(), and that's ...
0
votes
2answers
138 views

Drupal 7 computed field value in view

I'm really stuck displaying content type's computed field in view. Computed field value calculated properly and stored in database (value is a generated HTML code), but in view I get HTML just printed ...
0
votes
0answers
18 views

customize ubercart payment gateway error message USAePay

We're currently using D6 and Ubercart with the USAePay gateway. Unfortunately, the USAePay gateway does not handle international postal codes very well. But when it returns an error the HTML is ...
0
votes
1answer
35 views

Wrap div around results

In a content node, I wanted to wrap a div around some results. For example: I have this inputs: Image Title Body Address Email Name And I wanted to have divs like this: DIV Image Title /DIV DIV body ...
-3
votes
1answer
49 views

How to give space between rows of a table [closed]

I have a view in Drupal and I want to give more space between elements rows. How do I do it?
0
votes
3answers
136 views

HTML after label radio button (depending on radio button)

I need to add some html to specific radio buttons. This is a picture to clarify what I'm looking for: As you can see I want to add some text to the options. These are radio buttons where you can ...
0
votes
2answers
37 views

Do not want <footer> HTML tag when using footer region

After running W3 Markup Validator on a site of mine, I received the following error: Line 219, Column 57: element "footer" undefined <footer id="footer" class="region region-footer"> ...
0
votes
0answers
28 views

Full HTML Block displaying incorrectly to Anonymous

I have been looking for help on this issue for awhile, but I can't seem to crack it. For some reason, I need to have "Bypass content access control" enabled to get this to look correctly. I may be ...
0
votes
0answers
44 views

Drupal 7 showing literal php code as HTML after transfer

I am in a strange problem. I had a site transfered to one server to another and the new server is showing me literal code of PHP after transfer. The epicness of weird situation is that the front ...
0
votes
0answers
96 views

It is posible to change the css (background-color) of an html code with ajax in a form?

I've done the next form. That has the next code. $form['secciones']= array( '#type' => 'vertical_tabs', '#default_tab' => 'edit-tab2', '#prefix'=>' ...
0
votes
1answer
36 views

Add html to registration page

I have a registration form, and in the beginning of my registration page I want to show a title, subtitle and an image. A wireframe is like this: As you can see there are checkboxes (select field) ...
-1
votes
1answer
32 views

Link static HTML, Javascript and CSS3 in a Drupal Site

I am trying to have collaborative development of a HTML5 web app which people could navigate too through my drupal site. I was planning on putting the html, JS and CSS3 files in my sites/default/files ...
0
votes
0answers
26 views

method replace dosn't work in ajax form

I've a select form that implements ajax. When the value of the select change an other form has to change. You can see in the next code. $form['a1']= array( '#type' => 'select', ...
0
votes
0answers
34 views

Using ajax in forms

I've done the next form: It has html code, and some radiobuttons. $form['diagram']= array( '#type' => 'vertical_tabs', '#default_tab' => 'edit-tab2', ...
0
votes
0answers
30 views

convert uploaded file to html

I want to convert the files which user upload in a content type to be converted into html. the uploaded files can be of image or a pdf file. How to achieve it? I am trying to use the pdf formatter ...
0
votes
1answer
175 views

Add html code to a content block

I need to insert an html code into a content block. As the html code has some javascript links and css, I've done a module to include all the references in the .info file. The problem is that I don't ...
0
votes
1answer
28 views

What to do if we want a input format for select options of a webform?

I have a web form with select option field whose value is quite long. I cannot use css to configure this. I need to use input format so that I can break this option using HTML code. Is there any ...
0
votes
1answer
241 views

Drupal add fieldset inside form and wrap all form elements under that fieldset

I want to add fieldset tag inside form tag. Also i want to wrap all the form element under this fieldset. I'm using the following function to change the form design and html. MY CODE: function ...
0
votes
3answers
117 views

How to print preprocess_html variables in page.tpl

I have variable in template.php to use in different files like page.tpl, but written this in preprocess_html function as below, how can i print this in page.tpl and html.tpl file. ...
0
votes
1answer
37 views

How the heck can i create a hyperlink and also a mailto link in a node?

I need to create external hyperlinks to external pages and also mailto links. but when doing so Drupal prints the code, ie i downloaded a link module which was okay except you could not remove the ...