Gossamer Forum
Home : Products : Links 2.0 : Customization :

Anybody Know if This Can be Done to Links2?

Quote Reply
Anybody Know if This Can be Done to Links2?
I'll have to explain in length... but the jist of my question is this: Can I add a variable that contains the "previous" category_name processed? Assume Links2 just finished processing a category called Austin_homes and is now processing a category called Dallas_Homes. I need a variable (during the processing of current category -- Dallas_Homes) that I can use to build a link from current category -- Dallas_Homes -- back to the previous category Austin_homes. Is this even possible? Thanks in advance to anybody who knows the answer.
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.
Quote Reply
Re: [poscon] Anybody Know if This Can be Done to Links2? In reply to
Surely somebody knows if this can be done? Please speak up. Thanks.
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.
Quote Reply
Re: [poscon] Anybody Know if This Can be Done to Links2? In reply to
The easy way is to use a javascript history code.

<p><a href="javascript:history.back()"><img src="/images/nav/pointleft.gif" border="0"></a>
<a href="javascript:history.back()"> Back to <%Category%></a></p>

But, I don't think this will do what you want, since it goes back to the last visited page, which may not be a different category. I have this on my detailed pages. Another think to do would be to put a list of all categories on every page. See my page here for an example: http://theonetruechurch.com/...d_Doctrine/Creation/. The 'Categories' list makes jumping around the site easier. If you want to do this, I can help you with the code.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Anybody Know if This Can be Done to Links2? In reply to
PerlFlunkie... long time no hear from you.

Nah, what I really need is to modify the Links2 script to retain a variable (<%prev_category%>) that contains the previous category that he just processed. Think this can be done?
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.
Quote Reply
Re: [poscon] Anybody Know if This Can be Done to Links2? In reply to
I'm sure it can be done, but figuring out how is beyond my skills. Seems you would have to use a cookie on the users computer to keep track of their last-visited category. Maybe a search here using that keyword (cookie or cookies) would uncover something useful/adaptable?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Anybody Know if This Can be Done to Links2? In reply to
Perl,
You may have misunderstood.

I need the variable available during the "building" phase of Links2, not as it is being browsed.
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.
Quote Reply
Re: [poscon] Anybody Know if This Can be Done to Links2? In reply to
Yes, I did misunderstand! What is this mod intended to accomplish, or, whyd'yawannadodat?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Anybody Know if This Can be Done to Links2? In reply to
Perl,
Thats a secret! Just kidding.... It has to do with building a navigation loop on a site: current-category-page connects to previous-category-page.... and so forth.

Does that help?
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.
Quote Reply
Re: [poscon] Anybody Know if This Can be Done to Links2? In reply to
This is different from title_linked (breadcrumb trail)?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Anybody Know if This Can be Done to Links2? In reply to
Yes... different.

the title_linked breadcrum is index to category to sub category to sub sub category (a straight line)

For an example go to http://www.housetohouse.net/...op/Dallas-tile.shtml

at the bottom is a link to the previous page processed http://www.housetohouse.net/...swimming-pools.shtml

at the bottom of that is a link to the previous page processed http://www.housetohouse.net/...ng-pool-repair.shtml

and so on....

This site is not done with Links2, but this is the linking I'm trying to accomplish.
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.
Quote Reply
Re: [poscon] Anybody Know if This Can be Done to Links2? In reply to
mmmm, guess I'm still a bit confused...Crazy

Couldn't you just use Related Categories? Guess what I mean is, just what are you wanting to do? What is the purpose of the link, as used in the example you gave? Wouldn't it be better to have a list of all relevant categories, not just the next (or previous) in line? Like, how do swimming pools relate to tile? The tile around the top of the pool? The next three make sense: pools, then pool repair, then pool maintenance. This could be done with the Related Cat feature, just adjust the html to make it appear like you want.

This would also give you more flexibility; if the linking is based on the build sequence in nph-build, then you would have to have each category created in sequence, so you couldn't add something later, like pool heating, or whatever. By using the Related, you just enter whatever you want in the field, no matter what order the cats were added. Getting closer??


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Anybody Know if This Can be Done to Links2? In reply to
Perl,

Too many questions to answer.

I appreciate your concern about what I'm trying to do, and all the advice. But, I'm really posting here to find out how to do what I'm trying to do from a technical standpoint.
-----------------------------------------------------------
Professional Search Engine Marketing by Position Concepts Professional Consulting in SEM, SEO and PPC.