Dec 04, 2008, 12:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: [Snippet] addCSS - simply add a CSS link tag to a doc  (Read 3253 times)
0 Members and 1 Guest are viewing this topic.
eastbind
Sr. Member
****
Posts: 253


This ideograph means LOVE! I love MODx.


WWW
« on: Apr 05, 2006, 02:41 AM »

This is a small simple utility, add a link tag to the document which this snippet written in.
The link target is specified with a docid.

usage:
Code:
[[addCSS? &linkid=`40` &media=`screen`]]
This example produce following line in my environment.
<link rel="stylesheet" type="text/css" title="List Style No1" href="http://..jp/styles/bol1.css" charset="ISO-8859-15" media="screen"  />

[[addCSS? &linkid=`41` &linkrel=`alternate` &linktype=`application/rss+xml`]]
And, this is equivalent to [[NewsFeed? &makerss=`0` &linkid=`41`]]

If useful for someone, I'm grad.

Sorry in my poor english, thanks.

* addCSS.txt (2.35 KB - downloaded 345 times.)
Logged
rthrash
Foundation
*
Posts: 9,575



WWW
« Reply #1 on: Apr 05, 2006, 07:52 AM »

Very cool. Thanks. Smiley
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
bugsmi0
Sr. Member
****
Posts: 354


« Reply #2 on: Jul 21, 2006, 05:42 PM »

Will this work for javascript files  also ?
Logged

garryn
Coding Team
*
Posts: 1,181



WWW
« Reply #3 on: Jul 21, 2006, 07:17 PM »

Quote
Will this work for javascript files  also ?
The name says it all - it only handles CSS at the moment - but it's a relatively small snippet and wouldn't take much to adjust it to handle JS as well.
Logged

davidm
Marketing & Design Team
*
Posts: 6,777


The best way to predict the future is to invent it


WWW
« Reply #4 on: Sep 19, 2006, 07:05 AM »

Thanks to Garry for helping me discover this burried resource Smiley

And thanks Eastbind for this, pretty handy !
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
TobyL
Coding Team
*
Posts: 812



« Reply #5 on: Sep 19, 2006, 09:52 AM »

Very neat..
Now this is something I'd like to see as a TV widget in MODx.
Logged

Ross1234
Member
**
Posts: 59


« Reply #6 on: Apr 04, 2008, 04:43 PM »

Sorry for being a pain, but I don't understand what it does Huh

 Grin
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!