From: SourceForge.net <no...@so...> - 2007-04-30 16:05:13
|
Feature Requests item #603697, was opened at 2002-09-02 21:16 Message generated for change (Comment added) made by fabiankeil You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=361118&aid=603697&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: funct: content modification Group: future >Status: Pending >Resolution: Accepted Priority: 3 Private: No Submitted By: Mattes Dolak (xoft) >Assigned to: Fabian Keil (fabiankeil) Summary: Status variables in substitutions? Initial Comment: hi, i just wonder if you could help me write one filter: one that would add a <link rel="stylesheet" type="text/css" href="file:///c:/css/%domainname%/main.css"> in front of every </head>, effectively making customizing webpages very easy - i could just make a CSS file for each domain i want, and it would reside on my HD. Thanx in advance _Xoft(o) ---------------------------------------------------------------------- >Comment By: Fabian Keil (fabiankeil) Date: 2007-04-30 16:05 Message: Logged In: YES user_id=875547 Originator: NO That's possible with dynamic pcrs jobs now: FILTER: add-host-specific-css Links to a local host-specific CSS file s@(?=</head>)@<link rel="stylesheet" type="text/css" href="file:///c:/css/$host/main.css">\n@Di Other supported variables are $path, $url and $origin, let me know if there are other variables you need (and please name a reason). ---------------------------------------------------------------------- Comment By: david bonde (david-bo) Date: 2004-08-04 12:36 Message: Logged In: YES user_id=264045 I think this is a good RFE, see this coment as a vote for implementing it;-) ---------------------------------------------------------------------- Comment By: Andreas Oesterhelt (oes) Date: 2002-09-04 10:24 Message: Logged In: YES user_id=78811 This is not possible at this time, since the replacement part of any filter job can only refer to strings captured by the pattern. Supporting some status variables like $host, $port, $url etc might actually be useful, as your idea shows. Turning into FR ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=361118&aid=603697&group_id=11118 |