Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Adding links to Information sidebox

Adding links to Information sidebox

Locked

Views: 14,343

Results 1 to 20 of 38
This thread is locked. New replies are disabled.
14 May 2007, 7:00 PM
#1
kpax avatar

kpax

New Zenner

Join Date:
Apr 2007
Posts:
18
Plugin Contributions:
0

Adding links to Information sidebox

Hi there,

I've been searching far and wide for an easy way to add my own links to the Information sidebox but unfortunately, I haven't found anything so far.

I know that the links will be called from the information.php file but just wondered if there was a simpler way than having to amend several files to add a simple link?

thanks in advance

14 May 2007, 7:28 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to Information sidebox

I know that the links will be called from the information.php file but just wondered if there was a simpler way than having to amend several files to add a simple link?
Don't know a simpler way.....

17 May 2007, 8:37 AM
#3
kpax avatar

kpax

New Zenner

Join Date:
Apr 2007
Posts:
18
Plugin Contributions:
0

Re: Adding links to Information sidebox

Hi there,

I'm just struggling with this issue..

What I've done so far:

  1. included a new file with the page's name in html_includes
  2. Added my defines to english.php (english is my default language)
  3. Added the define into includes/filenames.phpThe Link now shows up fine in my 'Information' sidebox but when I click on it, it can't find the page I've uploaded to html_includes??

Would anyone have a step-by-step guide as how to make this work?

thanks

17 May 2007, 3:17 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to Information sidebox

Have a look at the about us module in the downloads/sidebox area and read the steps for this as these are the same as for others

18 May 2007, 9:04 AM
#5
kpax avatar

kpax

New Zenner

Join Date:
Apr 2007
Posts:
18
Plugin Contributions:
0

Re: Adding links to Information sidebox

Thanks a lot Kobra!!!

That's exactly what I've been looking for. I just amended that module for my own pages and it works great!!

Thanks!!

1 Oct 2007, 1:52 PM
#6
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Hi kpax and kobra, can you let me know where the about us area that you talk about is, as I got exactly the same issue as I wont to add a new link to the 'information' sidebox, and i am having great difficulty in even getting off first base.

Ta

Lee

1 Oct 2007, 2:40 PM
#7
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

I followed the points above and managed to do this:

In filenames.php I put this: define

('FILENAME_CANCELLATIONS', 'Cancellations');

&

In english.php I put this in information box text in sideboxes/information.php:

define('BOX_INFORMATION_CANCELLATIONS', 'Cancellations');

It still doesnt find its way into the 'Information' sidebox.

I have though gone into EZ-pages, and created a new file with page title Cancellations.

:smile:

1 Oct 2007, 2:48 PM
#8
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Ok I have finally got it displaying in the 'Information' sidebox, by adding this line to the information.php page:

if (DEFINE_CANCELLATIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CANCELLATIONS) . '">' . BOX_INFORMATION_CANCELLATIONS . '</a>';
}

Unfortunately it doesnt connect up to the page i created in EZ-Pages, so only this last step now, and all should be good.

Can anybody help me here.

cheers

Lee

1 Oct 2007, 2:59 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to Information sidebox

Unfortunately it doesnt connect up to the page i created in EZ-Pages, so only this last step now, and all should be good.
Have not seen your site but you can turn off the information side box completely and recreate it as an ezpage sidebox with all the internal links and any new pages that you might create

1 Oct 2007, 3:02 PM
#10
puggy avatar

puggy

New Zenner

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

Re: Adding links to Information sidebox

I have an existing page called links.html already set up how can I add this to the information box? I had tried editing the information.php but still won't show.

1 Oct 2007, 3:06 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to Information sidebox

puggy,

Same answer a it is easiest to create and control this in an ezpage sidebox and your links would be an ezpage external link

1 Oct 2007, 3:09 PM
#12
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

here is the site:

http://ecristal.co.uk/zen/

As you can see the cancellations link is now showing, but not finding anything to display.

Maybe im doing that bit wrong, and need to look at it from another angle.

Lee

1 Oct 2007, 3:22 PM
#13
puggy avatar

puggy

New Zenner

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

Re: Adding links to Information sidebox

Thanks for the help !

1 Oct 2007, 5:12 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding links to Information sidebox

multichild,

To place an additional link in this side box you need to add/edit about 8 filrs and as posted the about us module outlines the files/edits required.

Alternatively all of this box contents can be replicated in an ezpage sidebox and additional links can be added from the admin

2 Oct 2007, 8:25 AM
#15
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Thanks Kobra,

Where is the about us module in the downloads/sidebox area?

I'm sorry I just dont get where you mean. :blush:

Thanks for your help though

Lee

2 Oct 2007, 9:17 AM
#16
kpax avatar

kpax

New Zenner

Join Date:
Apr 2007
Posts:
18
Plugin Contributions:
0

Re: Adding links to Information sidebox

Morning Multichild

I just did a quick search on my site for the files that need to be amended/inserted in order to create a new link in the 'Information' sidebox and the below is what I came up with.

My link was called 'Where we are' and I'd say if you follow these instructions you should be fine getting your link to work too.
(If you have to create a new file, just copy an existing one and amend the indicated lines and change the filename.)

.../includes/extra_datafiles/where_we_are_filenames.php
Line #10 : define('FILENAME
_WHERE_WE_ARE
', 'where_we_are');
Line #11 : define('FILENAME_DEFINE_WHERE_WE_ARE', 'define_where_we_are');

.../includes/filenames.php
Line #46 : define('FILENAME_WHERE_WE_ARE', 'where_we_are');

.../includes/languages/english/extra_definitions/YOURTEMPLATE/where_we_are.php
Line #10 : define('BOX_INFORMATION_WHERE_WE_ARE', 'Where we are');

.../includes/modules/pages/where_we_are/header_php.php
Line #16 : $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $SESSION['language'] . '/html_includes/', FILENAME_DEFINEWHERE_WE_ARE, 'false');

.../includes/modules/sideboxes/YOURTEMPLATE/information.php
Line #27 : $information[] = '<a href="' . zen_href_link(FILENAME_**WHERE_WE_ARE**) . '">' . BOX_INFORMATION_WHERE_WE_ARE . '</a>';

.../includes/templates/YOURTEMPLATE/templates/tpl_where_we_are_default.php
Line #14 : <div class="centerColumn" id="**where_we_are**">
Line #15 : <h1 id="**whereweare**Heading"><?php echo HEADING_TITLE; ?></h1>
Line #17 : <div id="**whereweare**MainContent" class="content">

.../includes/languages/english/YOURTEMPLATE/where_we_are.php
Line #10 : define('NAVBAR_TITLE', 'Where we are');
Line #11 : define('HEADING_TITLE', 'Where we are');

.../includes/languages/english/html_includes/define_where_we_are.php
Line #0 : <p><strong><font face="verdana,arial,helvetica,sans-serif">Where We Are Sample Text ...</font></strong></p><p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p><p>You can use either the language-file in /includes/languages/english/MYTEMPLATE/about_us.php or this file separately for this page or, you can use both together.</p><p>To remove the language file definition, do not delete the define statement, set it to be blank. Example: define('TEXT_INFORMATION', '');</p><p>To remove this section of the text (which you're reading right now), delete it from the Define Pages Editor, located under Tools in the Admin.</p>

.../includes/languages/english/html_includes/YOURTEMPLATE/define_where_we_are.php
Line #0 : <p><strong><font face="verdana,arial,helvetica,sans-serif">Where We Are Sample Text ...</font></strong></p><p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p><p>You can use either the language-file in /includes/languages/english/MYTEMPLATE/about_us.php or this file separately for this page or, you can use both together.</p><p>To remove the language file definition, do not delete the define statement, set it to be blank. Example: define('TEXT_INFORMATION', '');</p><p>To remove this section of the text (which you're reading right now), delete it from the Define Pages Editor, located under Tools in the Admin.</p>

For the last two define_where_we_are.php files, just make sure they've got write-permissions as they will be written into through the Define Pages Editor.

Anyway, if you still have problems just get back to us and we'll sort it out.

regards

kpax

2 Oct 2007, 10:26 AM
#17
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Superb, thanks very much! :clap:

Really appreciate all that.

Will get onto it straight away, and let you know.

Thanks

Lee

3 Oct 2007, 8:37 AM
#18
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Good morning KPAX,

I started going through your list this morning, and came up to a problem.

In this line:

.../includes/languages/english/extra_definitions/YOURTEMPLATE/where_we_are.php
Line #10 : define('BOX_INFORMATION_WHERE_WE_ARE', 'Where we are');

I followed the path to extra_definitions and couldnt find YOURTEMPLATE. It probably means that I have to create that file myself, but Ijust wanted to double check.

Could you clarify this for me please.

Thanks

Lee

3 Oct 2007, 9:32 AM
#19
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Maybe im getting it wrong or mis-reading it, but none of the paths that have YOURTEMPLATE in them, have YOURTEMPLATE there. :dontgetit

Cheers

Lee

3 Oct 2007, 10:51 AM
#20
multichild avatar

multichild

Zen Follower

Join Date:
Sep 2007
Location:
Chepstow, SE Wales
Posts:
101
Plugin Contributions:
0

Re: Adding links to Information sidebox

Sorry guys,

I ignored the YOURTEMPLATE dooda and carried on and it is comign together now.

Think in honesty, its workign really good, and big thanks to you all.

cheers

Lee