Webmastersite.net
Register Log In

Category Edit - Act as Link:

Comments on Category Edit - Act as Link:

DR
Forum Regular

Usergroup: Customer
Joined: Nov 16, 2005
Location: Colorado

Total Topics: 41
Total Comments: 115
DR
Posted Feb 08, 2007 - 2:55 PM:

Category Edit - Act as Link:

In the editing of a Category: This following choice is available - which is greatnod

If this is filled in with a URL, clicking on the category will redirect people to the URL.

What I am after is:

Is there a way to have that Category[acting like a link] to force open a new window ... specifically for that Category[acting like a link]?

Thanks to all - for any suggestions in advance

DR

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 08, 2007 - 6:52 PM:

<IF {CATACTASLINK}><a href=... target="blank">...</IF> in the template.
DR
Forum Regular

Usergroup: Customer
Joined: Nov 16, 2005
Location: Colorado

Total Topics: 41
Total Comments: 115
DR
Posted Feb 09, 2007 - 3:42 PM:

Thanks Paul - that is Good Stuff ...

I am almost there:

(after selecting a category to act like a link - in Category Edit Mode)

Added the following code to the main.tpl

<IF {CATACTASLINK}><a href={CATURL} target="blank">{CATNAME}</IF></a>

I am attaching a screenshot detail of what I have currently..

Looking at the Upper Left Category Area:
The lighter colored "Category Act as A Link" link on the left will open in a new window (this is good!)
The darker "Category Act as A Link" link on the right just opens the link

Do I need to have a custom template ? - Is there a way to not have an apparent doubling of the Category Link? - I have tried ...but everything I do so far - removes the "normal acting" category links for all other categories.

...or have I gone about this the wrong way raised eyebrow


Attached Files:
DR
Forum Regular

Usergroup: Customer
Joined: Nov 16, 2005
Location: Colorado

Total Topics: 41
Total Comments: 115
DR
Posted Feb 15, 2007 - 7:09 PM:

----------
Has anyone else tried this - "Category act as a link" ...

And found the double display of the Category noted above ? ( as in the attachment)
- Thanks .. DR
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 15, 2007 - 9:36 PM:

<IF {CATACTASLINK}>what you want to show when it's a link<OTHERWISE>what you want to show when it's not a link</IF>
See conditionals manual entry.
DR
Forum Regular

Usergroup: Customer
Joined: Nov 16, 2005
Location: Colorado

Total Topics: 41
Total Comments: 115
DR
Posted Feb 16, 2007 - 10:28 AM:

Thanks Paul

I will give it a try ...

DR
DR
Forum Regular

Usergroup: Customer
Joined: Nov 16, 2005
Location: Colorado

Total Topics: 41
Total Comments: 115
DR
Posted Mar 02, 2007 - 2:32 PM:

That did it !

I forgot rolling eyes about the power of conditionals

Also when the Category acts as link - so as to not get empty brackets with no # - ex. () after the category name - [Since there are now no links in the Category]

I also inserted CATNUMLINKS after the "otherwise"

Works perfect - Thanks very much

DR
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.