Skip to main content
removed answer from the question
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Views let people to add custom css class to a display. I'm looking to get this information and add to the body tag.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

AnyDo you have any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']

Views let people to add custom css class to a display. I'm looking to get this information and add to the body tag.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']

Views let people to add custom css class to a display. I'm looking to get this information and add to the body tag.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Do you have any idea how to get this information?

explain better the question.
Source Link
Oskar Calvo
  • 988
  • 10
  • 24

Views let people to add custom css class to a display. I'm looking to get this information and add to the body tag.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']

Views let people to add custom css class to a display. I'm looking to get this information.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']

Views let people to add custom css class to a display. I'm looking to get this information and add to the body tag.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']

Source Link
Oskar Calvo
  • 988
  • 10
  • 24

How to get the custom class added to a view

Views let people to add custom css class to a display. I'm looking to get this information.

I try with this two functions and the dpm() function from devel:

views_get_view('name');
views_get_page_view();

But I'm not able to find the custom class that I add to the view.

Any idea how to get this information?

Thanks

Oskar

pd: I find it with views_get_view();

It's in $views->display['default']->display_options['css_class']