custom css by path [feedback]
hello i just want to get feedback about a module that will load custom css for every path you want, the module will get the list of paths and there custom css file from the .info file for the current active theme as the following customcss[node]=nodesstyle.css customcss[images]=photoalbum.css the module will load nodestyle.css for the path /node and the photoalbum.css for the path /images feedback needed.
I don't see the need for this, as most people who can create themes that would implement this would just code it into the template.php of the theme anyways. ----- Adam A. Gregory Freelance Drupal Developer Web: AdamAGregory.com Twitter: twitter.com/adamgregory Phone: 910.808.1717 Cell: 706.761.7375 On Sun, Jan 24, 2010 at 7:56 AM, Waleed Qadi <qadiwaleed@gmail.com> wrote:
hello i just want to get feedback about a module that will load custom css for every path you want,
the module will get the list of paths and there custom css file from the .info file for the current active theme as the following
customcss[node]=nodesstyle.css customcss[images]=photoalbum.css
the module will load nodestyle.css for the path /node and the photoalbum.css for the path /images
feedback needed.
Waleed Qadi wrote:
the module will load nodestyle.css for the path /node ... Any module can do a drupal_add_css. But I think what you are looking for is more appropriate for a node-type.tpl.php implementation, if any. You could also just add these in your theme's .info file and have them available all the time. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
On a related question. Is there a way to place a node-content_type.tpl.php file in a module and have it be used regardless of the current theme? I'm building a feature that defines a node type that I want to include its template in the feature. Kyle Mathews On Jan 24, 2010 11:20 AM, "nan wich" <nan_wich@bellsouth.net> wrote: Waleed Qadi wrote:
the module will load nodestyle.css for the path /node ... Any module can do a drupal_add_css. But I think what you are looking for is more appropriate for a node-*type*.tpl.php implementation, if any. You could also just add these in your theme's .info file and have them available all the time.
*Nancy E. Wichmann, PMP* Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
Kyle Mathews wrote:
Is there a way to place a node-content_type.tpl.php file in a module and have it be used ... Take a look at the core forums module. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
participants (4)
-
Adam Gregory -
Kyle Mathews -
nan wich -
Waleed Qadi