Quantcast
Channel: Question and Answer » input-formats
Browsing all 27 articles
Browse latest View live

use "no cache" but input filter seems to be cached in Drupal 6

I am trying to display a add to cart button and it only rarely works. It seems to work when the cache is cleared and then not work. I have added the no cache option but this doesn’t seem to do...

View Article


Programmatically change input filter of term description on taxonomy_form_term

I couldn’t find anywhere on the admin UI where I can change the input filter for term’s description field. I have tried using hook_form_alter, but wasn’t successful. function...

View Article


drupal_add_js in input filter

I have a module that provides an input filter for Drupal 6 and 7. It renders some elements using a (heavy) JavaScript module that I don’t want to include on every page. In Drupal 6 the input filter...

View Article

Image may be NSFW.
Clik here to view.

Select list with input fields

I would like to have the following field widgets: I would like to give the user the possibility to give in 4 nicknames and select the default one that will be shown to other users. Is there a module...

View Article

Inputs for "am" and "pm" get messed up on the arabic side when editing content

When creating/editing a node on the english side all works ok but when this is done on the arabic side it breaks up the am/pm form. The markup values also change unlike on the month or hour fields. I...

View Article


Rebuild all Drupal 6 teasers

I need to regenerate (or rebuild) the node teasers for a Drupal 6 website. There are a couple of examples of how to to this at https://www.drupal.org/node/325832. The first example affects all nodes,...

View Article

Find out which nodes use a specific filter

How could I find out which nodes actually use a specific filter? My nodes use an input format that has the Bbcode filter enabled. Now I need to know which (of the several thousand) nodes use BB code,...

View Article

How to implement a dynamic filter with views in D7?

I have a site where i have several main topics, each containing subtopics. I’ve made views block which is shown on each of the pages of the main topics where you have two exposed filter options: –...

View Article


Filter in $form table not working with pager?

I’m trying to add a filter to my table which has a pager. It does work but only for the 1st page. The pager keeps saying (for example: 4 pages) and it should be only 2 after adding the filter. My code...

View Article


What are some examples of filter Correct faulty and chopped off HTML?

In Drupal one of the text filters that is enabled by default is the filter Correct faulty and chopped off HTML. As I understand it must fix HTML bugs. Can anybody please give some example(s) of...

View Article

Form always visible even when radiobutton value is changed (form api)

i’m having an issue with the property #states visible on a form. I want to hide it when form mercuriale’s value is 1. $isMercuriale = db_query('SELECT isMercuriale FROM groupes_catalogues WHERE id = '...

View Article

Automatically add class to images added through CKEditor

I’m trying to add classes automatically to images which are added through CKEditor, I have spent considerable time trying to research this and found How to add class or attribute automatically to img...

View Article

HTML in square brackets -> output as normal HTML

We do import (using Feeds_ex) some data into Drupal (we do not control data-source we use to import data) and these data contains HTML in a brackets. so far I have found these 3 brackets: 1. [b]bla bla...

View Article


How to programmatically change settings of input filters and activate them?

I’m looking for a way to programmatically change the settings of an input filter and activate it in Drupal 7. Let’s take the Footnotes module as an example: It adds a new input filter that can be...

View Article

Filter under condition based on value checkbox of current user profile

I use Views 3.x and Views PHP module. The task. Make Views filtering criteria that would make two different actions, depending on status of checkbox (TRUE or FALSE) of current user’s profile....

View Article


Incomplete words searchs in Contextual Filter

I have a View with a Contextual filter. If I use a Content field, and provide the View with the filter, only exact matches will appear. For example, field title, and I introduce “shoe”, only those...

View Article

Direct db_query vs. Views query + views_query_alter – Drupal 7

I have a search-based website. It contains several search criterions which can be a little complex or convoluted. I have migrated all original client’s data into Drupal nodes and taxonomies. Now my...

View Article


Convert links in content to internal form?

If I create a hyperlink inside a text field (such as node body) with an internal path uri such as “node/1234″ or “index.php?q=taxonomy/term/5678″, then I can use an input filter such as pathologic to...

View Article

Saving meta-data in Filter::prepare()

I’d really like to save some information during the filter plugin’s prepare() step (which runs before all the other filters process it) that will become available in process(). Trying to give a state...

View Article

Ckeditor changes tags to tag

Trying to get a button working in content item but ckeditor won’t let me. I tried pasting in source. But when toggling back and forth bewteen source and rich text editor the html changes. Goes from:...

View Article
Browsing all 27 articles
Browse latest View live


Latest Images