Forums / General Questions / Define Pages / EZ Pages

Define Pages / EZ Pages

Locked

Views: 24,106

Results 41 to 60 of 93
This thread is locked. New replies are disabled.
3 Aug 2007, 4:13 PM
#41
kobra avatar

kobra

Black Belt

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

Define Pages / EZ Pages

i can see my page in the define_pages editor (and i can edit the contents here), but i cannot see it in de define_pages_status however.
Use the admin > tools > developers tool kit to locate each file where say page_2 is in the files - make a list of the files and insure that your added page is in all of these files

Zen-Venom Get Bitten

9 Aug 2007, 12:31 AM
#42
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Define Pages / EZ Pages

what if i want the content of the define page to show up in the box and not just the link to the page. when i add the require ($define_page) it errors that its missing the include path.

thanks!

9 Aug 2007, 6:52 AM
#43
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

what if i want the content of the define page to show up in the box and not just the link to the page. when i add the require ($define_page) it errors that its missing the include path.
What?? What box?
Add the require to what file and what code are you adding?

Zen-Venom Get Bitten

9 Aug 2007, 4:29 PM
#44
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Define Pages / EZ Pages

sorry, let me be clearer...
i followed the instructions for using the more_information box to display define pages links.

now i have a more information box with the links. but what i would like is that box to display the page_5 define page content.

i looked at how it is displayed on the template for the page and it has
require {$define_page) to retrieve the code. but i got an include path error. so i added the path with this code:

$more_information .= require('includes/languages/english/html_includes/MY TEMPLATE/define_page_5.php');
into more_information.php

which almost works. i get the text in a sidebox on the page, but the included formatting shows up below it. so it does...

define pages text
box heading
box (empty)

MM

9 Aug 2007, 4:55 PM
#45
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

Grab the downloads/other "About Us" mod for referece to all the files that require adding to or editing (this one is for the Information sidebox so just do a conversion to the "more information" sidebox when reading this

Zen-Venom Get Bitten

9 Aug 2007, 5:00 PM
#46
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Define Pages / EZ Pages

thanks i wil try that!

9 Aug 2007, 5:06 PM
#47
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Define Pages / EZ Pages

Kobra, i downloaded and read the read me file. the instructions are for creating a page (that displays in main page) and a side box with a link.

that i can do.

what i want is for the define page text to appear in the side box.

it appears now, just not inside the template... very weird.

any other suggestions would be appreciated. thanks for all the help!!
MM

9 Aug 2007, 5:13 PM
#48
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

but what i would like is that box to display the page_5 define page content.
Did you mean a sidebox? This is not much realestate???

What are you trying to have in this "box"?

Maybe I should have read closer?? Nah, I still would not have determined that this was a sidebox.

You can look at the "Blank side box" and in the file place the code to have a new page(small) content displayed there that can be edited from the admin

Zen-Venom Get Bitten

9 Aug 2007, 8:11 PM
#49
minnie_mouse avatar

minnie_mouse

Zen Follower

Join Date:
Jun 2005
Posts:
119
Plugin Contributions:
0

Re: Define Pages / EZ Pages

no it is not much real estate, but that is what i needed. anyway i got it working. here is what i did if anyone else tries this.

created define pages file called define_shipping_notes.php in languages/html_includes/MYTEMPLATE/

i put all the templating in the modules/sidebox/MYTEMPLATE/shipping_notes.php page surrounding the call to the define page.

for some reason (probably my lack of understanding of php etc) i could not get the text inside the template required from another page. so here is what it looks like:

this is everything between the php tags. my sidebox is for shipping notes to appear just on the login page.

$show_blank_sidebox = true;

if (($show_blank_sidebox == true) && ($_GET['main_page'] == 'login')) {

  $title =  BOX_HEADING_SHIPPING_NOTES_SIDEBOX;
  $title_link = false;

echo '<div class="rightBoxContainer" id="'. str_replace('_', '-', $box_id ) .'">';
echo '<h3 class="rightBoxHeading" id="' . str_replace('_', '-', $box_id) . 'Heading' . '">' . $title . '</h3>';
echo '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$add_a_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/MYTEMPLATE/', FILENAME_DEFINE_SHIPPING_NOTES, 'false');
require($add_a_page);
echo '</div></div>';
}

you will need to create the right filename entries in english.php. and filename.php

this will give you a sidebox that displays define page content that clients or site managers can update without touching the php.

if anyone knows why the template would not work i would love to know.

thanks for the help MM

15 Aug 2007, 1:50 AM
#50
mbahoo avatar

mbahoo

New Zenner

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

Re: Define Pages / EZ Pages

dinosoup:

I was also wondering how to create a new define page and found this post.

Thanks to the instructions given by you guys, I have successfully created a new define page. Except only one step is missing; you have to insert a new row in the "configuration" table in the database.

INSERT INTO zencart.zen_configuration ( configuration_id ,
configuration_title ,
configuration_key ,
configuration_value ,
configuration_description ,
configuration_group_id ,
sort_order ,
last_modified ,
date_added ,
use_function ,
set_function
)
VALUES ( NULL , 'Define Page 9', 'DEFINE_PAGE_9_STATUS', '1', 'Enable the Defined Page 9 Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '85', NULL , '0001-01-01 00:00:00', NULL , 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),'
);


:clap: This one works for me thanks..!!. but i add the whole field data from the configuration table by reference from the sql backup to match the current auto increments.. i use this query to activate page status [on/off] in admin area.

another issue, the site map page didnt show the new extra defined page with about_us method (with 4 folders involved) though the about_us works fine. so i add the new defined page code in site map page code using developer tools and search the string that point everything to the site map.  
it is very easy to find, just search shippinginfo, privacy, or else which is on the information box. duplicate everything and rename it (the code in the files you've found) as your new defined page name. then use the sql query above to add the page to the database.
to me site maps is important. it makes easier and faster to browse information you need in a bulk site with tons of high res images.

change and add to
- /includes/templates/template_default/templates/tpl_site_map_default.php
- /includes/filenames.php
- /admin/includes/languages/english/define_pages_editor.php
- /admin/includes/languages/english.php
- /includes/templates/template_default/templates/tpl_page_not_found_default.php

less talk do more..mmmbaaaa

24 Aug 2007, 2:44 PM
#51
barricades avatar

barricades

Inactive

Join Date:
May 2007
Posts:
150
Plugin Contributions:
0

Re: Define Pages / EZ Pages

Can someone please tell me what the difference btw ez pages and define pages is?

I want to use the about us mod to create a couple of new pages, one for links and the other for a bit of hitory of the area we operate in. I've been told to use ezpages and the ezpages sitemap mod to get this to work, but from what i've read simply using the about us mod would be much easier.

is this true?

does google have the same problems indexing defined pages as it does indexing ezpages?

thanks

24 Aug 2007, 5:52 PM
#52
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

barricades,

Your option - defines requires several additional files be created and a few edits to others for each additional page.

ez pages can be created, placed and managed fully from the admin

Zen-Venom Get Bitten

1 Sep 2007, 12:43 AM
#53
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Define Pages / EZ Pages

I'm working with page_2.php file which I saved in my /zencart/languages/english/custom directory after I made changes to it. It currently reads:

define('NAVBAR_TITLE', 'European Art Gallery');
define('HEADING_TITLE', 'European Art Gallery');
define('TEXT_INFORMATION', 'Page 2 information goes here.');
?>

Page 2 is already customised the way I want it, also I replaced the link in the More Information sidebox with the name I want.

I cannot figure out what the define('TEXT_INFORMATION' does. If I replace 'Page 2 information goes here' phrase it doesn't seem to show up anywhere... I checked in define pages editor, also searched for an existing 'Page 2 information goes here' text string - nowhere to be found...

I would appreciate some information as to what it is supposed to do and where it is showing up? Thanks.

1 Sep 2007, 12:53 AM
#54
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: Define Pages / EZ Pages

Exactly what did you replace it with that caused a problem?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Sep 2007, 4:11 AM
#55
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

I'm working with page_2.php file which I saved in my /zencart/languages/english/custom directory
Not to address what the define('TEXT_INFORMATION', does...

But have you or are you entering the "Content" that you want on this page in the includes/languages/english/html_includes/custom/define_page2.php file either through the admin or to the file using your editor?

This is the file that you edit to display your content and as you have done, the page2.php file for the displayed titles.

Zen-Venom Get Bitten

1 Sep 2007, 2:46 PM
#56
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Define Pages / EZ Pages

kobra:

Not to address what the define('TEXT_INFORMATION', does...

But have you or are you entering the "Content" that you want on this page in the includes/languages/english/html_includes/custom/define_page2.php file either through the admin or to the file using your editor?

This is the file that you edit to display your content and as you have done, the page2.php file for the displayed titles.

Well I changed the "Content" via the the Admin, define pages editor and it does show what I I changed there but
if I replace the "Page 2 information goes here" defauult phrase in page_2.php directly** it doesn't seem to show up anywhere...** or have any effect on my edited via define editor "Contents" ...

Just wanted to know what the define 'TEXT_INFORMATION' it is supposed to do and where it is showing up? Thanks.

2 Sep 2007, 11:10 AM
#57
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

I do not know wjere this shows up or what it's function is...but If your defines page edits via the admin are showing up then this is all that I care about...

I do not concern myself with what I can not see. If it doesn't render then I don't care

Zen-Venom Get Bitten

11 Sep 2007, 2:15 PM
#58
jump_network avatar

jump_network

New Zenner

Join Date:
Feb 2007
Posts:
45
Plugin Contributions:
0

Re: Define Pages / EZ Pages

G'day All,

I have read all the posts, and done what Kobra has said, but am encountering a different problem.

Please go to https://www.store.jumpnetwork.com.au/

The Define Pages has been named Product Information and is the top left side box.

Now the E-Commerce tab is the page_5 that I have tried to add.

Now the page_2 has the link of

http://store.jumpnetwork.com.au/index.php?main_page=page_2

But the new page_5 that I created has the link of

http://store.jumpnetwork.com.au/index.php?main_page=FILENAME_PAGE_5

I have no idea what to do. I have checked all the files I edited, and can't find this any where.

Any help would be great.

Thanks in advance,

Chris.

11 Sep 2007, 3:48 PM
#59
kobra avatar

kobra

Black Belt

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

Re: Define Pages / EZ Pages

You have something incorrect in your edits.

as if you enter this link you get to the correct page

http://store.jumpnetwork.com.au/index.php?main_page=page_5

but this is not what the link is on your site

Zen-Venom Get Bitten

12 Sep 2007, 9:13 AM
#60
jump_network avatar

jump_network

New Zenner

Join Date:
Feb 2007
Posts:
45
Plugin Contributions:
0

Re: Define Pages / EZ Pages

kobra:

You have something incorrect in your edits.

as if you enter this link you get to the correct page

http://store.jumpnetwork.com.au/index.php?main_page=page_5

but this is not what the link is on your site

I printed out your notes,and followed the instructions.

What file actually has the link to the page?