Zen Cart Logo
Forums / All Other Contributions/Addons / Add EZ Pages to Site Map Mod

Add EZ Pages to Site Map Mod

Locked

Views: 1,761

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
24 Oct 2008, 8:39 AM
#1
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Add EZ Pages to Site Map Mod

Hi all,

I installed this mod, but none of my EZ pages are showing up in my sitemap.

Does it have anything to do with the fact that I renamed the site map to 'Store Map'? <Edit: To clarify, I changed the name of the link from site map to store map. The file name is still define_site_map.php>

Are there any limitations for this mod as to which EZ pages will display on the map and which ones won't?

For example, most of my EZ pages are set to not display in the sidebox, header and footer because they are linked to from within other pages (i.e. a define page, or another ez page) in the store.

Suggestions?

24 Oct 2008, 8:55 AM
#2
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Add EZ Pages to Site Map Mod

Ok, I found part of the problem. Within the mod itself, one of the directory folders is misnamed.

Instead of being includes/templates/YOUR_TEMPLATE/template**s**

it is

includes/templates/YOUR_TEMPLATE/template

I moved the file and some of the EZ pages are now showing up on the site map.

It appears this mod will only display EZ pages on the site map that are turned on for the sidebox. Any page that I don't want displayed in the sidebox won't appear on the site map.

Is there a work around for this?

Here's my reasoning - I want my store to be a part of my website, but not the whole website. My intent is to create EZ pages with links (vs. content) to link to pages outside the store. I'd like those to be included in the site map so I don't have to have both a store map and a site map for my site.

If I'm able to accomplish this, I'll change the name of the link from store map back to site map.

24 Oct 2008, 8:58 AM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Add EZ Pages to Site Map Mod

You're going a long way around this. Why not just add the links to other parts of the store directly to the list in the sitemap page template?

24 Oct 2008, 9:19 AM
#4
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Add EZ Pages to Site Map Mod

Because I didn't realize I could, but now that you mention it, it makes perfect sense! Thanks for the easy solution!

Awesome :clap:

24 Oct 2008, 9:41 AM
#5
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Add EZ Pages to Site Map Mod

Ok, another question. In looking at the template file, I see the links configured this way:

<li><?php echo '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'; ?></li>

Since the extra links I'll be adding are not php files (just your run of the mill .htm files, how would I code that?

Let's say I want to add something that looks like this:

Complimentary Services (this is a section heading, not a link)
Daily Horoscope (link)
Daily Rune (link)
blah (link)
blah (link)
blah (link)

Can I do this with straight html code or do I need to combine some php and html? If so, any sample code you wish to offer would be greatly appreciated :smile:

Also, if I understand you correctly, you're saying that this is how I can add links to the site map without using EZ pages?

27 Oct 2008, 7:05 AM
#6
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Add EZ Pages to Site Map Mod

Anyone?

27 Oct 2008, 8:58 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Add EZ Pages to Site Map Mod

Straight HTML would be fine. Just leave out the PHP tags and code the links as you would normally.

31 Oct 2008, 8:20 AM
#8
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Add EZ Pages to Site Map Mod

Straight HTML would be fine. Just leave out the PHP tags and code the links as you would normally.

Awesome, thank you! :smile: