Make HTML5 elements available in views 3.

  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Gyorstippek

In the views 3 we can build a customizable html output for view and own fields too. However it has own limit, by default we can choose the elements from a predefined list. Let's make some html5 elements available here too:

Just run this once in a module or in a simple execute php block:
[geshifilter-drupal6]variable_set('views_field_rewrite_elements', array( '' => '- Use default -', '0' => '- None -', 'div' => 'DIV', 'span' => 'SPAN', 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6', 'p' => 'P', 'strong' => 'STRONG', 'em' => 'EM', 'section' => 'Section', 'article' => 'Article', 'header' => 'Header', 'footer' => 'Footer', 'aside' => 'Aside', 'nav' => 'Nav', ));[/geshifilter-drupal6]

or put this into settings.php:

[geshifilter-drupal6]$conf['views_field_rewrite_elements'] = array( '' => '- Use default -', '0' => '- None -', 'div' => 'DIV', 'span' => 'SPAN', 'h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5', 'h6' => 'H6', 'p' => 'P', 'strong' => 'STRONG', 'em' => 'EM', 'section' => 'Section', 'article' => 'Article', 'header' => 'Header', 'footer' => 'Footer', 'aside' => 'Aside', 'nav' => 'Nav', );[/geshifilter-drupal6]

Hozzászólások

If Chicago's latest crop of

If Chicago's latest crop of chic restaurants is any clue, we create Chicagoans are ready to resign those winter blues behind, draw their troops, and pursue out mischievous grub and fun times. From a suburban steakhouse to goth-store-turned-cafe, Chicago top restaurants 2018 recent restaurant openings are nothing if not diverse. Lower down we've rounded up an updated slate of the new restaurants in borough this month -- or if you're avid exchange for an long-standing standby, hide scrolling in search our prevailing lineup of the all-embracing greatest places in Chicago to get your devour on.

Many thanks, this site is

Many thanks, this site is really valuable.

Many thanks extremely

Many thanks extremely beneficial. Will certainly share website with my good friends.

Simply needed to point out

Simply needed to point out Now i'm ecstatic that i stumbled in your internet page.|

Good Web site, Continue the

Good Web site, Continue the useful work. Many thanks.|

Wow, gorgeous portal. Thnx

Wow, gorgeous portal. Thnx ...

I love browsing your site.

I love browsing your site. Thanks for your time!

Great looking site. Think you

Great looking site. Think you did a whole lot of your very own html coding.

You've one of the greatest

You've one of the greatest online sites.

billiga fotbollströjor

ttlink. read68. vwiin.

102cb. lahzeakhar.

probereg. ailimeijia.

Sustain the helpful work and

Sustain the helpful work and generating the group!

Many thanks, this website is

Many thanks, this website is really useful.

You have the most effective

You have the most effective web pages.

You have incredible

You have incredible information on this web-site.

Good day, very good web-site

Good day, very good web-site you have there.

fotbollströjor barn

homelandlovers. duozhihu.

Sustain the spectacular work

Sustain the spectacular work !! Lovin' it!

I enjoy browsing your site.

I enjoy browsing your site. thnx!

Sustain the outstanding work

Sustain the outstanding work !! Lovin' it!

Wow cuz this is great job!

Wow cuz this is great job! Congrats and keep it up.

I delight in the info on your

I delight in the info on your internet site. Appreciate it!

NewPost06131050

You're a very practical

You're a very practical website; couldn't make it without ya!

Thanks a lot! This is an

Thanks a lot! This is an remarkable online site!

Many thanks really helpful.

Many thanks really helpful. Will share website with my good friends.

Just desired to emphasize I

Just desired to emphasize I am just thrilled I came in your web page!|

fotbollströjor fodboldtrøjer

4f. fc-kt. lovesincn.

NewPost06131050

I like browsing your web

I like browsing your web sites. Cheers!

Many thanks! It is definitely

Many thanks! It is definitely an amazing web-site.

Many thanks extremely useful.

Many thanks extremely useful. Will certainly share website with my pals.

I like this site - its so

I like this site - its so usefull and helpfull.

dickemabout. hiorder.

talayaban. brethren. flygo.

NewPost06131050

NewPost06131050

Thanks really helpful. Will

Thanks really helpful. Will certainly share website with my pals.

I love this website - its so

I love this website - its so usefull and helpfull.

The posts is very important.

The posts is very important.

I enjoy this site - its so

I enjoy this site - its so usefull and helpfull.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.