Jump to content

How could a handle media / ie conditional without hardcode it?


pwFoo
 Share

Recommended Posts

Hi I try to build a simple basic responsive layout / profile with pocket grid...

So it would be great to set additional values as variables.

IE conditional comments could be build by a module to generate the needed code.

I would use $config->styles and $config->scripts to build a filenameArray with needed css and js files. But how could a add additional values like media attribute or IE condition?

Any idea to keep it simple?

Last site media query styles were hard coded at page template file (a templateFile template ;) ) before output $config->styles ...

Maybe the media queries stylesheets with additional media information could be saved in a (config) page, but need a field with two textfields (filename, media information). Which fieldtype should be used in such a case? repeater, ProField table, ...?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...