Forums / Templates, Stylesheets, Page Layout / How can I add a link into the categories sidebox?

How can I add a link into the categories sidebox?

Locked

Views: 1,391

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Aug 2007, 9:19 AM
#1
paulriedel avatar

paulriedel

New Zenner

Join Date:
Aug 2007
Posts:
37
Plugin Contributions:
0

How can I add a link into the categories sidebox?

Hi!

I want to create a link to the specials (index.php?main_page=specials) in the documents sidebox.
Where do I add this link?

Thanks!

  • Paul
22 Aug 2007, 9:37 AM
#2
paulriedel avatar

paulriedel

New Zenner

Join Date:
Aug 2007
Posts:
37
Plugin Contributions:
0

Re: How can I add a link into the categories sidebox?

Nevermind, found it.

If anyone is interested:

Just add:

    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
      $show_this = $db->Execute("select s.products_id from " . TABLE_SPECIALS . " s where s.status= 1 limit 1");
      if ($show_this->RecordCount() > 0) {
        $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a>' . '<br />' . "\n";
      }
    }

In the sidebox where you want the specials-link to show!

22 Aug 2007, 12:39 PM
#3
loulou99 avatar

loulou99

New Zenner

Join Date:
Aug 2007
Posts:
17
Plugin Contributions:
0

Re: How can I add a link into the categories sidebox?

can you point me to where i can find this to do it please :)

thank you :smile:

22 Aug 2007, 12:50 PM
#4
paulriedel avatar

paulriedel

New Zenner

Join Date:
Aug 2007
Posts:
37
Plugin Contributions:
0

Re: How can I add a link into the categories sidebox?

I think this was in:
includes/templates/templates_default/.../sideboxes(?)/tpl_categories.php
and you can put that into every sidebox.

Will look at home for the correct path, but this is my best guess for now.

I'm happy I could help someone else for the first time :clap:

1 Jan 2008, 9:09 AM
#5
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: How can I add a link into the categories sidebox?

I'm sorry but I didn't get it ! can you please explain more, I still can't figure our where to add my link to the categories sidebox!:no: