close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Linking to a particular category

Thread began 4/26/2010 2:02 pm by mick106153 | Last modified 5/03/2010 5:51 pm by Jimmy Wu | 2008 views | 7 replies |

mick106153

Linking to a particular category

On my site I will have rotating product displays and would like to link those to the product category that product is in - not to the product itself.
What's the best way to accomplish this?

Mick

Sign in to reply to this post

Jimmy Wu

The category link would have to look like the following:
Products_Results.php?Search=1&ProductCategoryID[]=1

The ProductCategoryID[]=1 should have a different category id based on what category you're looking for.

Sign in to reply to this post

mick106153

Jimmy

Thanks.
Can it be structured as a relative rather than absolute link?
If I use absolute links I'll need to replace them when the site goes live.

Mick

Sign in to reply to this post

Jimmy Wu

Yes, you should be able to use relative links as well, I was just giving the full url so you could see what it would look like.

Sign in to reply to this post

mick106153

problems with .ini file

Jimmy

On my home page index.php I have a header and 3 product display boxes the contents of which are all driven by a script - rotator.php.
The path and links etc. to images displayed are contained in .ini files.
The following is how a link is defined in the .ini file with a link to a product category as you explained earlier in this thread…

[Caps]
src = rotate/wearbox/caps1.jpg
alt = Caps
url = ../intuhorses/Products_Results.php?Search=1&ProductCategoryID[]=93
title = Caps
id =
class =

I get the following results.
On the site I linked above the url is changed to
&#8230;<a href="../intuhorses/Products_Results.php?Search" title="">&#8230;
which takes me to a listing of all the products.

On my local server (mac Mini Leopard MAMP) the page is aborted at that point with&#8230;
"Unable to read ini file."

If I remove that link - no problem.

Any idea how I can fix this?

Thanks

Mick

Sign in to reply to this post

Jimmy Wu

I'm not that experienced in setting up ini files, but it seems that the = character is a special character and needs to somehow be escaped or encoded for it to be put in the ini file. Maybe try the url encoded value:
ref_urlencode.asp

Sign in to reply to this post

mick106153

All greek to me.
I've opted to remove rotator.php and have replaced it with ProjectSeven's Image Rotator Magic.

Mick

Sign in to reply to this post

Jimmy Wu

Instead of using the "=" use the value that it matches up with in that link I sent you. Try that to see if it works.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...