Forums / Basic Configuration / how to edite Sitemap?

how to edite Sitemap?

Locked

Views: 1,071

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 Feb 2009, 3:44 PM
#1
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

how to edite Sitemap?

Hello,

I can't find sitemap editor from admin. I want to add/edite pages to sitemap. your advise would be appreciated.

17 Feb 2009, 7:43 PM
#2
svampola avatar

svampola

New Zenner

Join Date:
Mar 2007
Location:
Serbia, Niš
Posts:
69
Plugin Contributions:
0

Re: how to edite Sitemap?

As far as I know - you can't add/edit sitemap in admin page.

When I needed to make some changes I did it like this:

You should find:

includes/templates/template_default/templates/tpl_site_map_default.php

copy into:
includes/templates/your_template/templates/..

And there you can add/edit code.

18 Feb 2009, 1:04 AM
#3
hara avatar

hara

Zen Follower

Join Date:
Sep 2008
Posts:
397
Plugin Contributions:
0

Re: how to edite Sitemap?

Actually I want some of defind pages editor and ez-pages headline contents can be also display on sitemap.

Any helps would be appreciated.

18 Feb 2009, 8:38 AM
#4
svampola avatar

svampola

New Zenner

Join Date:
Mar 2007
Location:
Serbia, Niš
Posts:
69
Plugin Contributions:
0

Re: how to edite Sitemap?

hara:

Actually I want some of defind pages editor and ez-pages headline contents can be also display on sitemap.

Any helps would be appreciated.

First - you already have sitemap links for page 2, 3, 4
If they don't show in your sitemap - than you didn't activated them in admin panel ( see configuration / define page status )

For EZ pages:
Well - if you know some basically coding, than upper information should be sufficient.
But if not....
What you need is to put a code with link on a proper place, where you want to add your link to your page.
If you want to put them on the end of sitemap list then find at the bottom of list definition for page_4 and...enter the red marked text:

Code:
Find at the bottom of list definiton for page_4 and...
....................

<?php if (DEFINE_PAGE_4_STATUS <= '1') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>'; ?></li>
<?php } ?>
     </ul></li>
 <?php 

include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
?>

<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?> <li> <a href="<?php echo $var_linksList[$i]['link']; ?>"><?php echo $var_linksList[$i]['name']; ?></a></li> <?php } // end FOR loop ?> </ul> </div> <br class="clearBoth" /> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> </div>

Now it will give you sitemap for english and chinese languge as well ( assuming that you wrote EZ pages in both languges )

Have in mind that sitemap is self generated and that you should not manually enter links.

Good luck !