Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Injecting css / js into <head>
#9
Yeah i thought about using components and hooks to load other components, this way ytuor block are editable as components and reusable, which you cannot do with page options.

So you would have components do different groups of stuff.

and then you could use dynpages to laod these inline in pages ( probably not rpeffered for large styles or js )
alternativly you would use a hook ( my component hook plugin ) to load other components in head or footer depending on the current slug or some special field.

I have never tested fetchign a component from inside a component.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
Injecting css / js into <head> - by alex_d - 2014-01-25, 00:50:02
RE: Injecting css / js into <head> - by shawn_a - 2014-01-25, 00:53:50
RE: Injecting css / js into <head> - by alex_d - 2014-01-25, 01:48:47
RE: Injecting css / js into <head> - by alex_d - 2014-01-25, 01:54:41
RE: Injecting css / js into <head> - by shawn_a - 2014-01-25, 02:03:29
RE: Injecting css / js into <head> - by alex_d - 2014-01-25, 03:06:10
RE: Injecting css / js into <head> - by shawn_a - 2014-01-25, 03:43:58
RE: Injecting css / js into <head> - by Timbow - 2014-01-25, 04:57:51
RE: Injecting css / js into <head> - by shawn_a - 2014-01-25, 05:02:48
RE: Injecting css / js into <head> - by alex_d - 2014-01-25, 05:27:09



Users browsing this thread: 1 Guest(s)