Forums / All Other Contributions/Addons / Define Pages Generator addon - Support

Define Pages Generator addon - Support

Results 1 to 20 of 137
28 Nov 2007, 20:27
#1
banswidthjunkie avatar

banswidthjunkie

Zen Follower

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

Define Pages Generator addon - Support

About
Define Pages Generator isn't exactly a zencart module, you would probably call it a meta-module, it is a small Windows application that makes it really easy to make new "define pages."

All you need to do is specify the name you want to give your page, the name of your current template and a directory to build the directory / file structure in and it does the rest. This directory structure can then be copied over to a zencart installation to make the define page accessible.


Motivation
Making a new define page seems to be a really fiddly task. However these pages are pretty useful, since unlike ezpages they don't get stored in the database, so they are easier to develop (ie you can use Dreamweaver). With a few simple tweeks, it is quite straight forward to give them a menu structure (ie pretend to nest one inside the other so the breadcrumb shows home::parent::child::....) and you can use php inside the pages which I don't think you can do with ezpages.


Acknowledgements
The code it generates is based on the "About Us" module, which seems to be the main resource for working out how to build a new define page.


Download
The Application can be downloaded from: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=804


Important
NOTE: It only runs under Windows and although I am a Linux user there is little likelihood of me porting it over. You need to have the .NET 2.0 framework to run it, you can get this from http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en

If you have a question about how to use the application, or you find a bug please let me know.
14 Dec 2007, 22:26
#2
rainthebat avatar

rainthebat

Zen Follower

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

Re: Define Pages Generator addon - Support

Thank you, thank you, thank you. This tool is a fabulous little gem for creating these pages, it really gets to be a pain to create and keep track of them the other way.
15 Dec 2007, 01:22
#3
banswidthjunkie avatar

banswidthjunkie

Zen Follower

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

Re: Define Pages Generator addon - Support

Cheers. I'm currently working on a mod that allows you to create menu structures from define pages, so you can make it look like they are nested inside each other. For example putting all the information pages inside a main information page. I think that it works, but at the moment it requires a very small bit of programming to use. I think that this is better than hacking up an admin page, but maybe not so user friendly. If I have some free time i will polish this up and release it.
15 Dec 2007, 01:58
#4
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

This will come very handy. Great tool. Thank you.
17 Dec 2007, 15:13
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Hi banswidthjunkie,

I used the mod the first time yesterday. I must say that it saves me lots of time and headache. Great contribution. Please keep up the good work.

Regards,
yellow1912
20 Dec 2007, 00:25
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

1 idea: Can you include the option to make sidebox for that page as well?
Regards
yellow1912
20 Dec 2007, 01:43
#7
banswidthjunkie avatar

banswidthjunkie

Zen Follower

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

Re: Define Pages Generator addon - Support

What do you mean by a sidebox for the page? a sidebox that displays a link to the page?

If you can give me the template code, then I can implement it.
20 Dec 2007, 05:29
#9
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

All I can say is thank you X a zillion for this mod!

One of the last stores I did wanted so many add-on pages that I had to re-create the about-us mod about 15 times, that's a lot of renaming inside and out. I can't even remember the last time I've used an ez page for anything.

Clients just like seeing those physical pages they can edit after we leave.

Am looking forward to your sidebox add-on as well.

Thank you for the hours of time saving!!

betty
20 Dec 2007, 09:59
#10
banswidthjunkie avatar

banswidthjunkie

Zen Follower

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

Re: Define Pages Generator addon - Support

My pleasure Betty, I'm waging a personal war on cut and paste :)
20 Dec 2007, 17:59
#11
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Hi everyone,

Let me be the first "voice of stupidity" on this thread (smile). I understand how to use the program and the copying of files to my host. What I don't understand is how to incorporate the changes into my main web page. Does everyone just use a plain link, or a sidebox? Can someone give me a helping hand here?

thanks

btw: looks like a great mod...
20 Dec 2007, 18:03
#12
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

It depends on your need, rite? You can decide to put the link in the navigation bar, at the footer, etc, wherever you want.
20 Dec 2007, 18:12
#13
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

yellow1912:

It depends on your need, rite? You can decide to put the link in the navigation bar, at the footer, etc, wherever you want.


Thanks for the quick answer... let's just say that I want to put it into the navigation bar... how do I go about doing that? Sorry to be such a dummy about this... :blink: I wil probably forever be learning about zen cart. :smile:
20 Dec 2007, 18:39
#14
banswidthjunkie avatar

banswidthjunkie

Zen Follower

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

Re: Define Pages Generator addon - Support

you can get a link to the page in the php code using the function "zen_href_link," this is the standard function for getting links in zencart. If you called your page "my page" then in the php
[PHP]$link_to_my_page = zen_href_link( FILENAME_MY_PAGE, '' );[/PHP]
will give you the link you need and if you want to use this then you need to stick it in a link:
[PHP]echo '<a href="' . $link_to_my_page . '">Link Text</a>';[/PHP]
This will print a link to your page where you put it in the code. To put a link to this page in the navigation bar you will need to find the file that generates the navigation bar and then modify it to your needs.

I'm afraid that as I said in the introduction, this is a meta-mod, so it is something that helps you generate new code for your site. Unfortunately if you want to use this code then you need to do some (basic) programming.
20 Dec 2007, 19:11
#15
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Ok thanks for the reply. I will try and see if I can get that working. Thanks so much for your help. Will let you know how things go when I get through with it.
20 Dec 2007, 19:32
#16
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

banswidthjunkie:

you can get a link to the page in the php code using the function "zen_href_link," this is the standard function for getting links in zencart. If you called your page "my page" then in the php
[PHP]$link_to_my_page = zen_href_link( FILENAME_MY_PAGE, '' );[/PHP]
will give you the link you need and if you want to use this then you need to stick it in a link:
[PHP]echo '<a href="' . $link_to_my_page . '">Link Text</a>';[/PHP]
This will print a link to your page where you put it in the code. To put a link to this page in the navigation bar you will need to find the file that generates the navigation bar and then modify it to your needs.

I'm afraid that as I said in the introduction, this is a meta-mod, so it is something that helps you generate new code for your site. Unfortunately if you want to use this code then you need to do some (basic) programming.


Thank you again for getting back to me... would you mind letting me know exactly which php file I need to change for the first and second lines of code? Thanks, I appreciate it. Again... sorry for being dumb about this.
20 Dec 2007, 19:32
#17
banswidthjunkie avatar

banswidthjunkie

Zen Follower

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

Re: Define Pages Generator addon - Support

By the way, on your navbar image, you need to set the background colour as the same red as the right most pixel as the background image, and then you need to set the x-repeat to none, otherwise it looks a bit odd.
20 Dec 2007, 19:42
#18
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

banswidthjunkie:

By the way, on your navbar image, you need to set the background colour as the same red as the right most pixel as the background image, and then you need to set the x-repeat to none, otherwise it looks a bit odd.


Just so you won't think I'm a complete idiot, I'm a retired software developer. I developed in c++ and VB. However, I'm not that great at PHP. I'm learning a few things as time goes by though. Thanks for the info on the navbar image.
20 Dec 2007, 19:52
#19
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Dont worry, I guess it's the same for most of us. I had a hard time trying to get ZC structure and the way it does things, but then now if you say the problem I can tell where should you look into.

crabdance:

Just so you won't think I'm a complete idiot, I'm a retired software developer. I developed in c++ and VB. However, I'm not that great at PHP. I'm learning a few things as time goes by though. Thanks for the info on the navbar image.
20 Dec 2007, 19:59
#20
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Define Pages Generator addon - Support

Thanks for getting back with me on this. What I needed was to know the exact filenames to make the changes to. You said make the changes in "the" php file but did not say which one. The generator creates multiple files and I just need to know which ones to change :blink:

If you can just give me the filenames, I'm sure I can take it from there.

yellow1912:

Dont worry, I guess it's the same for most of us. I had a hard time trying to get ZC structure and the way it does things, but then now if you say the problem I can tell where should you look into.