CSS Menu and php

Hi all,

I’ve started working on an updated version of the an engineering products website which will be based on php and mysql.

I’ve got the functionality working, but to get the products from the database on the server to the browser page I have used the CSS Menu action with the PHP Add Query to Link action. This does work but on the submenus (the ones with the php link) there is an extra area added to the top of the link in the menu which is highlighted separately but doesn’t contain a link. It’s as if freeway is adding an extra line to each menu item.

Is there any way of getting these links to work without the extra highlighted bit?

To see an example of this in action go to:

http://www.cotswoldengineeringsupplies.co.uk/2008-dev/brassconnect.php

and go to the Brass Compression Fittings menu (highlighted in pale blue), and move to the the submenu on the right which is complete with all its links. As you move your mouse over the menu items you will see the extra highlighted bit at the top of each section. It also makes the menu item a bit taller.

Is there another way of implementing the query without using the PHP Add Query to Link action?

I know this is a bit long winded but it’s not always easy to describe what is happening.

Any help will be most appreciated.

Regards, Steve.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How about sticking your query link into your submenu with a Markup item instead? The CSS menu action seems not to mind.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hmm…I see the extra space above submenu items when using the Markup item also.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ok, what’s going on is for whatever reason Freeway insists on sticking it’s own href before the one you are including, specifically (a href="#" style=“cursor:default”). That’s what’s above your submenu.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t see my last response so i’ll try again…

Freeway is adding another href above yours. It does this automatically for each list item, but when you are adding your own it does not use yours instead. The specific code is (a href="#" style=“cursor:default”)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

17 Jun 2008, 8:05 pm chuckamuck wrote:

I don’t see my last response so i’ll try again….

Freeway is adding another href above yours. It does this automatically for each list item, but when you are adding your own it does not use yours instead. The specific code is (a href=”#” style=”cursor:default”)

I did have a look at the code that Freeway produced, and I was a bit puzzled by the extra empty href.

Is there any way this can be deleted, or is it something that gets inserted when you use a mark-up item. Sort of put this reference here, but fill it in yourselves!! The href is being repeated!

I’ll sleep on it tonight and see if I can come up with any solutions.

Thanks,
Steve.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hey Steve,

The extra anchor tag is being added because Freeway isn’t seeing one
when it does it’s thing on publish.

If you comment out line 1216 in the Action then this process won’t
take place meaning the menus should display as expected.

I’ll take a look at the possibilities of automating this in the
meantime though.

Cheers,

Joe

On 17 Jun 2008, at 22:32, SteveB wrote:

17 Jun 2008, 8:05 pm chuckamuck wrote:

I don’t see my last response so i’ll try again….

Freeway is adding another href above yours. It does this
automatically for each list item, but when you are adding your own
it does not use yours instead. The specific code is (a href=”#”
style=”cursor:default”)

I did have a look at the code that Freeway produced, and I was a bit
puzzled by the extra empty href.

Is there any way this can be deleted, or is it something that gets
inserted when you use a mark-up item. Sort of put this reference
here, but fill it in yourselves!! The href is being repeated!

I’ll sleep on it tonight and see if I can come up with any solutions.

Thanks,
Steve.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi again,

Well, I’ve slept on it and after a little more investigation it seem that the css menu works well when there’s a normal link, but as soon as you add anything else to the mix like a mark-up item then the href attribute that is supposed to pick up the links is disregarded and the link is added as an extra href.

If you look at the code created by Freeway, the css menu items without a link have the same blank href, so I think that when another item is added that is not a pure href link then that link is added but the blank href is not deleted. It makes me think that it’s something that the css menu should be doing, but is not. That’s probably why you get the extra small line of highlighted area on your sub menus.

I don’t know if this is a bug or not, it’s just my observations.

Maybe someone at Softpress can answer that question, until then I’ll try and get a solution to my problem…

Thanks to chuckamuck for giving me a lead into what was happening.

Regards

Steve.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oops, just seen Joe from Softpress’ reply.

Thanks Joe, I’ll comment out that line in the action and see what happens.

I thought it was something to do with the extra href tag but not being a programmer I didn’t know how to get rid of it (short of deleting the offending items by hand and reuploading the pages!!)

It always amazes me how proactive you all are at Softpress, thanks for the quick solution to the problem.

Thank you all again,

Regards
Steve.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Joe,

I’ve commented out line 1216 of the CSS Menu Action, but it doesn’t seem to fix the problem. The same thing is still happening, there is still the extra area added to the top of each menu item.

I used TextWrangler to make the changes, adding the line numbers first, doing the amend, removing the line numbers then saving it back to the file.

Could there be something else not picking up the right tags?

Thanks for your help,

Regards

Steve


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry Steve,

I was looking at the version of the Action that was in 5.1.2.

Take a look for the line that says:

addAnchors(items[i]);

and comment that out.

I just tested it out and it does the job nicely with a load of markup
with links used in the menus (which is essentially what you have).

Joe

On 18 Jun 2008, at 17:05, SteveB wrote:

Hi Joe,

I’ve commented out line 1216 of the CSS Menu Action, but it doesn’t
seem to fix the problem. The same thing is still happening, there is
still the extra area added to the top of each menu item.

I used TextWrangler to make the changes, adding the line numbers
first, doing the amend, removing the line numbers then saving it
back to the file.

Could there be something else not picking up the right tags?

Thanks for your help,

Regards

Steve


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Joe,
Thanks again for your reply.
Yes, I was trying to comment out line 1216 on version 5.1.1, the new
version hadn’t been released then!
Anyway, I can now confirm that the menu items now work as expected.
Makes the menus look much better now.
I’ve also updated the new version now as I have just downloaded it.

Thanks again,
Regards
Steve.

On 19 Jun 2008, at 09:24, Joe Billings wrote:

Sorry Steve,

I was looking at the version of the Action that was in 5.1.2.

Take a look for the line that says:

addAnchors(items[i]);

and comment that out.

I just tested it out and it does the job nicely with a load of markup
with links used in the menus (which is essentially what you have).

Joe

On 18 Jun 2008, at 17:05, SteveB wrote:

Hi Joe,

I’ve commented out line 1216 of the CSS Menu Action, but it doesn’t
seem to fix the problem. The same thing is still happening, there is
still the extra area added to the top of each menu item.

I used TextWrangler to make the changes, adding the line numbers
first, doing the amend, removing the line numbers then saving it
back to the file.

Could there be something else not picking up the right tags?

Thanks for your help,

Regards

Steve

Be aware that if you are using the menus without links in then they
won’t work as expected.

Maybe you could make two versions of the Action.

Joe

On 19 Jun 2008, at 10:23, Steve Ballinger wrote:

Hi Joe,
Thanks again for your reply.
Yes, I was trying to comment out line 1216 on version 5.1.1, the new
version hadn’t been released then!
Anyway, I can now confirm that the menu items now work as expected.
Makes the menus look much better now.
I’ve also updated the new version now as I have just downloaded it.

Thanks again,
Regards
Steve.

On 19 Jun 2008, at 09:24, Joe Billings wrote:

Sorry Steve,

I was looking at the version of the Action that was in 5.1.2.

Take a look for the line that says:

addAnchors(items[i]);

and comment that out.

I just tested it out and it does the job nicely with a load of markup
with links used in the menus (which is essentially what you have).

Joe

On 18 Jun 2008, at 17:05, SteveB wrote:

Hi Joe,

I’ve commented out line 1216 of the CSS Menu Action, but it doesn’t
seem to fix the problem. The same thing is still happening, there is
still the extra area added to the top of each menu item.

I used TextWrangler to make the changes, adding the line numbers
first, doing the amend, removing the line numbers then saving it
back to the file.

Could there be something else not picking up the right tags?

Thanks for your help,

Regards

Steve

Steve Ballinger
Design Artwork & Illustration
steve at sbdesign.co.uk


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options