Forums / General Questions / questions about ezpages

questions about ezpages

Started by devlin on 8 Aug 2012, 9:28 PM · Views: 1,236

Results 1 to 5 of 5
8 Aug 2012, 9:28 PM
#1
devlin avatar

devlin

New Zenner

Join Date:
Oct 2010
Posts:
40
Plugin Contributions:
0

questions about ezpages

I have some questions about ezpages.

  1. There are several pages within Tools > EZ-Pages that I did not create (Gift Certificates, Google, Shared, Zen Cart, EZPages and What is EZ-Pages) Do they have a particular function, if so, what function? If not can they be used as general pages?

  2. Using Chapters - TOC creates a Table of Contents in each page, this is ok but I want to be able to customize it. For instance, within the actual table, I want to remove the words "Table of Contents" but not sure where to do it.

Firebug shows <h2 id="ezPagesTOCHeading">Table of Contents</h2> and Developers Toolkit points me to tpl_page_default.php but I do not see anything for <h2 Could someone point me in the right direction? Thanks

  1. By default, an EZ-Page with TOC shows Next - Continue - Previous at the top of each page. I want to remove these and just use TOC, I see where they are referenced in tpl_page_default.php but not sure what to do with them. Do I just comment them out? You probably realise I am not a PHP guru.

thanks

8 Aug 2012, 10:34 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: questions about ezpages

  1. Yes, you can re-use them. Or delete them if they're not relevant for you. They were just examples that were auto-installed by default.

  2. You need to edit that in the appropriate language file.
    The fast way to find out which specific file to edit is by using the Developers Toolkit in your Admin:
    http://www.zen-cart.com/content.php?80-how-do-i-find-out-what-files-to-edit
    http://www.zen-cart.com/content.php?81-how-do-i-use-the-developers-toolkit

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2012, 11:07 PM
#3
devlin avatar

devlin

New Zenner

Join Date:
Oct 2010
Posts:
40
Plugin Contributions:
0

Re: questions about ezpages

DrByte:

  1. Yes, you can re-use them. Or delete them if they're not relevant for you. I thought that was right, thank you.

You need to edit that in the appropriate language file. Knowing that it is a languages file helps.

The fast way to find out which specific file to edit is by using the Developers Toolkit in your Admin: I was doing this but because I didn't know it was a languages file I used 'Look-up in all files' also, I was using the wrong search phrase. I should have used the text instead of the code.

What about 3. can I just comment out

<div class="centerColumn" id="ezPageDefault">
<h1 id="ezPagesHeading"><?php echo $var_pageDetails->fields['pages_title']; ?></h1>

<?php if (EZPAGES_SHOW_PREV_NEXT_BUTTONS=='2' and $counter > 1) { ?>
<div id="navEZPageNextPrev">
      <a href="<?php echo $prev_link; ?>"><?php echo $previous_button; ?></a>
      <?php echo zen_back_link() . $home_button; ?></a>
      <a href="<?php echo $next_link; ?>"><?php echo $next_item_button; ?></a>
    </div>
<?php } elseif (EZPAGES_SHOW_PREV_NEXT_BUTTONS=='1') { ?>
    <div id="navEZPageNextPrev"><?php echo zen_back_link() . $home_button . '</a>'; ?></div>
<?php  } ?>

<?php
8 Aug 2012, 11:10 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: questions about ezpages

devlin:

What about 3. can I just comment outNo, don't comment out anything.
Just go to Admin->Configuration->Ez-Pages->EZ-Pages Prev/Next Buttons and set it to 0.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Aug 2012, 11:31 PM
#5
devlin avatar

devlin

New Zenner

Join Date:
Oct 2010
Posts:
40
Plugin Contributions:
0

Re: questions about ezpages

Excellent. Thank you. Now I need to figure out how to give kudos :yes: