Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-31 04:12:52

tlibby
New Member
Registered: 2005-08-15
Posts: 9

Browse Catgeories Drop-Down Menu

How do I go in and edit this menu?

hope for the future
meaningful labor
reciprocal affection

I’d like to replace the;

option value=”“

with

option value=”——————”

so that I will have…

——-
hope for the future
meaningful albor
reciprocal affection

Thanks.


Ooh, your powers of deduction are exceptional. I can’t allow you to waste them here when there are so many crimes going unsolved at this very moment. Go, go, for the good of the city! – Comic Book Guy

Offline

#2 2005-10-31 04:19:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse Catgeories Drop-Down Menu

Look in your page template for the tag popup.

Offline

#3 2005-10-31 13:54:43

tlibby
New Member
Registered: 2005-08-15
Posts: 9

Re: Browse Catgeories Drop-Down Menu

I see that, but there has to be a .php page that has the menu being calle dot it or a page that has the actual code on there so I can get rid of the empty option value that is currently in there. What you’ve given me is helpful, but doesn’t really tell me what I need or want.

I want to fill in the empty option area, there has to be some file in the software that has this code in it.


Ooh, your powers of deduction are exceptional. I can’t allow you to waste them here when there are so many crimes going unsolved at this very moment. Go, go, for the good of the city! – Comic Book Guy

Offline

#4 2005-10-31 14:53:05

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse Catgeories Drop-Down Menu

What, you can’t read? ?

Edit: don’t take that as offered with ‘an attitude’, that’s not intended.

Last edited by Mary (2005-10-31 15:58:09)

Offline

#5 2005-10-31 15:09:54

tlibby
New Member
Registered: 2005-08-15
Posts: 9

Re: Browse Catgeories Drop-Down Menu

Well I can see where this is going. I’ll look around elsewhere for help, like say, a middle school where the response would probably be a lot warmer than it is up there in the North Pole.

Please disregard and delete this thread. Thx.

Last edited by tlibby (2005-10-31 15:14:08)


Ooh, your powers of deduction are exceptional. I can’t allow you to waste them here when there are so many crimes going unsolved at this very moment. Go, go, for the good of the city! – Comic Book Guy

Offline

#6 2005-10-31 15:52:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse Catgeories Drop-Down Menu

Edit: I don’t think you can edit that particular bit. A search for popup() tell me it’s on line 390 of taghandlers.php. Is that what you’re after?

Edit again: Sorry, didn’t mean to sound “in-your-face”.

Last edited by Mary (2005-10-31 15:59:04)

Offline

#7 2005-10-31 16:01:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse Catgeories Drop-Down Menu

You may also find this helpful.

Offline

#8 2005-10-31 16:03:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Browse Catgeories Drop-Down Menu

tlibby,

You can place the txp:popup tag on your page, then view the source, and from there copy the html code. Replace the txp:popup tag with this code and you can change the first empty option value.
The disadvantage of this is that you’ll have to edit it manually every time you add a category.

Offline

#9 2005-10-31 16:22:14

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse Catgeories Drop-Down Menu

Now I feel terrible. I’ll do penance.

Last edited by Mary (2013-01-24 17:14:48)

Offline

#10 2005-11-28 06:48:33

tlibby
New Member
Registered: 2005-08-15
Posts: 9

Re: Browse Catgeories Drop-Down Menu

For any future reference by anyone else, it is in the taghandlers.php file, line 405;

$thetable = ($type=='s') ? 'section' : 'category';
                $out ='<select name="'.$type.'" onchange="submit(this.form)">'.n.
                t.'<option value="">----------------</option>'.n;
                $q[] = "select name,title from `".PFX."txp_".$thetable."` where name != 'default'";
                $q[] = ($thetable=='category') ? "and type='article'" : '';
                $q[] = "order by name";

(Edit: wrapped code in appropriate tag so it display properly and doesn’t mess up the page. :) -Mary)

Last edited by Mary (2005-11-28 19:03:14)


Ooh, your powers of deduction are exceptional. I can’t allow you to waste them here when there are so many crimes going unsolved at this very moment. Go, go, for the good of the city! – Comic Book Guy

Offline

#11 2005-11-28 19:09:21

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse Catgeories Drop-Down Menu

Wee. Hope you don’t mind, I fixed your original post and deleted the following 2 correction posts. :)

Offline

#12 2005-12-02 04:14:25

tlibby
New Member
Registered: 2005-08-15
Posts: 9

Re: Browse Catgeories Drop-Down Menu

Don’t mind at all. :)


Ooh, your powers of deduction are exceptional. I can’t allow you to waste them here when there are so many crimes going unsolved at this very moment. Go, go, for the good of the city! – Comic Book Guy

Offline

Board footer

Powered by FluxBB