Ah ok, cheers for all the help!
Toby
brian wrote:
> It appears that there's no built-in way to do that. So, i guess you'll
> need to create a helper of your own for it.
>
> On Mon, May 11, 2009 at 3:19 AM, toby1kenobi wrote:
> >
> > Aha, I see. And *should* I be able to add style tags to my pag
It appears that there's no built-in way to do that. So, i guess you'll
need to create a helper of your own for it.
On Mon, May 11, 2009 at 3:19 AM, toby1kenobi wrote:
>
> Aha, I see. And *should* I be able to add style tags to my page like
> that (see my previous response to your penultimate mes
Aha, I see. And *should* I be able to add style tags to my page like
that (see my previous response to your penultimate message)?
Toby
On May 10, 9:29 pm, brian wrote:
> This is how the style (and script) tags are added to your layout. I
> think Ketan didn't realise that your problem is that y
This is how the style (and script) tags are added to your layout. I
think Ketan didn't realise that your problem is that you're trying to
add a style *block* to your page.
On Sun, May 10, 2009 at 3:26 PM, toby1kenobi wrote:
>
> I actually have that already - care to elaborate on why you mentione
It's slightly odd eh?
Coincidentally, I've just run int0:
> ...So it's not as strange as, say, the
> $inline param for the css() method. Now *that* makes no sense.
What is going on there?! According to the docs it seems like I should
be able to create a link tag in the head of my document by s
I actually have that already - care to elaborate on why you mentioned
it though?
Thanks,
Toby
On May 9, 5:26 am, Ketan Shah wrote:
> add this in your head tag of the
> layout file.
>
> -Ketan.www.propertyjungle.inwww.innovatechnologies.in
>
> On May 8, 8:56 pm, toby1kenobi wrote:
>
> > Ah, n
add this in your head tag of the
layout file.
-Ketan.
www.propertyjungle.in
www.innovatechnologies.in
On May 8, 8:56 pm, toby1kenobi wrote:
> Ah, no it doesn't - it does seem strange.
>
> On May 8, 2:29 pm, brian wrote:
>
> > On Fri, May 8, 2009 at 4:41 AM, toby1kenobi wrote:
>
> > > Sorry,
On Fri, May 8, 2009 at 11:56 AM, toby1kenobi wrote:
>
> Ah, no it doesn't - it does seem strange.
Good gravy! It doesn't. It just returns the data as CSS rules.
I was about to say that this seems absolutely useless, except to waste
the PHP parser's time, but then realised that it's meant to be
Ah, no it doesn't - it does seem strange.
On May 8, 2:29 pm, brian wrote:
> On Fri, May 8, 2009 at 4:41 AM, toby1kenobi wrote:
>
> > Sorry, yes it has the inline argument in its definition, but I
> > couldn't see how to get it to actually render the style tags
> > themselves (only the content t
On Fri, May 8, 2009 at 4:41 AM, toby1kenobi wrote:
>
> Sorry, yes it has the inline argument in its definition, but I
> couldn't see how to get it to actually render the style tags
> themselves (only the content that would go between them) - am I
> missing something?
Maybe we both are :-) It's n
Sorry, yes it has the inline argument in its definition, but I
couldn't see how to get it to actually render the style tags
themselves (only the content that would go between them) - am I
missing something?
Cheers,
Toby
On May 7, 4:27 pm, brian wrote:
> /**
> * Builds CSS style data from an a
Ah - in the context I was trying to use it (an element, which I would
have thought would effectively be the same as a view?) it doesn't seem
to work?
On May 7, 1:26 pm, majna wrote:
> it is.http://api.cakephp.org/search/addScript
>
> On May 7, 2:00 pm, toby1kenobi wrote:
>
> > That (addScript)
/**
* Builds CSS style data from an array of CSS properties
*
* @param array $data Style data array
* @param boolean $inline Whether or not the style block should be
displayed inline
* @return string CSS styling data
*/
function style($data, $inline = true) {
On Thu, May 7, 2009 at 3:33 AM
it is.
http://api.cakephp.org/search/addScript
On May 7, 2:00 pm, toby1kenobi wrote:
> That (addScript) doesn't appear to be a cake method?
>
> On May 7, 11:15 am, majna wrote:
>
> > > $style = '
> > #navigation-holder a#logo span {
> > bac
That (addScript) doesn't appear to be a cake method?
On May 7, 11:15 am, majna wrote:
> $style = '
> #navigation-holder a#logo span {
> background:transparent url(../img/logo.jpg)
> no-repeat left
> top;
> }
>
#navigation-holder a#logo span {
background:transparent url(../img/logo.jpg)
no-repeat left
top;
}
';
$this->addScript('test', $style);
?>
On May 7, 9:33 am, toby1kenobi wrote:
> Hi there,
>
> As m
Hi there,
As mentioned, the styles are dynamically generated, I can't use a
static file (is that what you mean?). $html-> 'seems' to only render
style information inline - I could use this, but the code is executing
in the context of an element that isn't in the document's head, it's
in the bod
Why not just put that in your regular stylesheet? If you're trying to
override an existing style, you can use a class.
Anyway, have a look at the $html->style() method:
http://api.cakephp.org/class/html-helper#method-HtmlHelperstyle
Also, your path can be absolute -> url(/img/logo.jpg)
On Wed,
Hi everyone,
I'd like to add some dynamically generated CSS to my document head
from within an element, is that possible? Ideally I'd like to insert
something like:
#navigation-holder a#logo span {
background:transparent url(../img/logo.jpg) no-repeat left top;
}
to $scripts_for_layout, I c
19 matches
Mail list logo