Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2007-12-19 00:17:13

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

v0.5 now saves a good chunk of queries (still not fully optimized but getting there)

the_ghost: hmm i’ll see what i can do.

Last edited by iblastoff (2007-12-19 00:19:43)

Offline

#26 2007-12-19 03:31:52

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

Wow, this morning there was version 0.1 and now we’re up to 0.5 already!

Anyway, 0.5 does work here even on 4.0.4 – excellent.

Thanks!

Offline

#27 2007-12-19 04:09:10

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

Make sure you change the version number in the documentation and so it reflects upon install. Right now it says v.0.3.


Art Rogue – Fine Art Photography

Offline

#28 2007-12-19 06:31:40

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

I have an idea. How about having a selected=“whatever-category”, whether that’s an option or optgroup so something shows in the select field.


Art Rogue – Fine Art Photography

Offline

#29 2007-12-19 06:56:41

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

you can’t have an optgroup as something selected since they’re not selectable. you could have something like <txp:lam_category_popup selected=“shop here!” /> or something and instead of the currently black initial field it would obviously say “shop here!”. if thats ok that can definitely be added.

Last edited by iblastoff (2007-12-19 06:57:03)

Offline

#30 2008-01-25 06:58:52

SebastianS
Member
From: Australia
Registered: 2007-10-05
Posts: 46

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

Is it possible to, or how does one style the “lam_category_popup”.
I am using Textpattern 4.05 on xampp.
Tag I have tried is <txp:lam_category_popup wraptag=“ul” break=“li” />, I don’t think pop ups have “style” attributes.
I want to be able to change the dimensions
or at least the width of the pop up window,
and more importantly choose colour of text and background in popup window,
or at least have black text on white background throughout.

Currently the text is black on white, white on black and no text background blue.

Any suggestions would be appreciated.

Offline

#31 2008-01-25 08:03:30

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

Styling support for popups isn’t great and tends to be rather inconsistent. Here is a sample with renderings from several Mac browsers.

What you want to style are the select, option and optgroup elements.

Offline

#32 2008-01-25 08:43:54

SebastianS
Member
From: Australia
Registered: 2007-10-05
Posts: 46

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

Thank you for your reply.
Researching further:-
Firefox styles how I want it to be black on white.
IE7 No text background blue black on white
opera 9.25 and 9.5 no text b/g blue, black on white and white on black.

Now the code I have is:-

<div class=“cat” >
<ul>
<form method=“get” action=“http://localhost/mine/”><div>
Browse<br />
<select name=“c” onchange=“submit(this.form);”> <option value=”“ selected=“selected”>&nbsp;</option> <optgroup label=“CSS”> <option value=“a-child-of-css”>a child of css</option> </optgroup> <optgroup label=“SEO”> </optgroup> <optgroup label=“Textpattern”> <option value=“Plugins”>Plugins</option> </optgroup>
</select>
<noscript><div><input type=“submit” value=“Go” /></div></noscript>
</div>

How are select, option and optgroup elements. styled.
assuming maybe
.select {}
.option {}
.optgroup {}

do any of these effect the width of the popup?

how, where are “hooks for the styles put in the code?
Which in fact would be the tag <txp:lam_category_popup wraptag=“ul” break=“li” />

Offline

#33 2008-01-25 08:56:18

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

They’re plain element styles, not classes, so just remove the leading dots:

select {}
option {}
optgroup {}

That way they will automatically apply, you don’t need to hook them up to your code.

To control the width try for instance:

select { width: 300px; }

Offline

#34 2008-01-25 09:34:51

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

By the way, here’s a good article with plenty of examples.

Offline

#35 2008-01-25 10:00:23

SebastianS
Member
From: Australia
Registered: 2007-10-05
Posts: 46

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

Thank you for that link.

The “select” was helpful for width dimension, and controlled background.
the “option” for font colour and background, the children,
Having no luck with the optgroup , which might control the parents?
and I want to control the colour of the hover, which is blue currently
This mostly refers to opera.
I am putting it all on my online practice site so I’ll see if that makes any difference.

Last edited by SebastianS (2008-02-11 05:41:30)

Offline

#36 2009-05-18 18:47:03

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: lam_category_popup v0.5 (category popup selector using optiongroups)

I would like to use this plugin but the download URL is not working. Anyone has got a copy?

SOLVED: The download link at Textpattern Resources does work

Last edited by jordi (2009-05-20 11:03:21)

Offline

Board footer

Powered by FluxBB