Coder Social home page Coder Social logo

yogoo / sitemapfriend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mihaisucan/sitemapfriend

4.0 4.0 1.0 1.13 MB

sitemapFriend is a versatile snippet for MODx Revolution that allows you to generate almost any kind of sitemaps you want.

Home Page: https://github.com/yogoo/sitemapFriend/wiki

PHP 100.00%

sitemapfriend's People

Contributors

mihaisucan avatar yogoo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

iparr

sitemapfriend's Issues

li style

Thought this should work [[sitemapFriend? &type=html &tplOuter=sitemap &tplItem=sitemap-li]]

with sitemap-li chunk =

<li class="list-group">
    <a href="[[+url]]">[[+title]]</a>
    [[+items]]
</li>

...but doesnt render with class="list-group on frontend

tplOuter=sitemap works fine

Exclude error pages in contexts

I have a multilingual site, where each language is in its own context. Each context has its own error pages. System settings for error page numbers are not used. However sitemapFriend excludes those error pages that are specified in the system settings, but does not excludes those specified in the context settings.

The problem is that if you do not specify any unnecessary IDs (for example, real error pages) in the system settings, then you can get the result without a resource with ID 1 or another ID that is specified there. Аnd you will catch this bug for a very long time. If you notice it, of course.

Two sitemapFriend call on the same page doesn't work

Hi,

I'm trying to use 2 different call of the sitemapFriend snippet and it doens't works
I need two to make 2 site maps : one in french, the other in english

Here the code :

<h3>Sitemap in french</h3>
[[sitemapFriend? &startId=`50`]]

<h3>Sitemap in english</h3>
[[sitemapFriend? &startId=`96`]]

I tryied with or without cache/uncache call, I always have two times the same sitemap (two in french, or two in english)

What's wrong ?

Sitemap empty

I've added this plugin to a standard MODx website, about 50 pages, all published. I'm calling the snippet thus; [[!sitemapFriend? &type=xml]]

The page returns the message "error on line 1 at column 1: Document is empty" and the file contains sitemapfriend.error.loadingclass.

Any ideas why this is happening?

Property for exclusion of resources class modWebLink

Hi,
would be great if you implemented property to include resources with resource class modWebLink in rendered sitemap or not.

Current automatic exclusion isn't good in some cases, for example I use webLinks to automatic redirect across MODX resources. Without PHP comment of line 98 in sitemapfriend.class.php is this snippet unusable for me.

https://github.com/yogoo/sitemapFriend/blob/master/core/components/sitemapfriend/model/sitemapfriend/sitemapfriend.class.php#L98

$this->queryWhere = array(
    'modResource.class_key:!=' => 'modWebLink',
);

What do you think:question:

Unable to install sitemapfriend

Both on a localhost as on modxcloud unable to install sitemapfriend.

Error reported on modxcloud:

Console running...
Attempting to install package with signature: sitemapfriend-1.0.2-pl1
Package found...now preparing to install.
Could not find package manifest at /paas/c0302/www/core/packages/sitemapfriend-1.0.2-pl1/manifest.php
Could not unpack package /paas/c0302/www/core/packages/sitemapfriend-1.0.2-pl1.transport.zip to /paas/c0302/www/core/packages/. SIG: sitemapfriend-1.0.2-pl1
Could not install package with signature: sitemapfriend-1.0.2-pl1

onlyTemplates does not work for children

I use onlyTemplates option for child resources that have a parent with a no template... Well, it's easier to draw.
Site tree:

- someTemplate_id1
- parentNoTemplate
   - childTemplate_id3
   - childTemplate_id3
   - childTemplate_id3
- anotherTemplate_id2

sitemapFriend options:

[[!sitemapFriend?
    &onlyTemplates=`1,3`
    &type=`xml`
]]

In the output, I want to get all resources with a template called someTemplate and childTemplate. But I don't get resources with a template called childTemplate.

To work around this problem, you have to set the parent some template and specify the skipResources option for it. And everything would be fine, but I have a big multilingual site with a lot of contexts and only one sitemap.xml for all langs.

titleField vs fieldTitle

After installing sitemapFriend 3 errors occur on the sitemap-page

Notice: Undefined index: titleField in /mywebsite/core/components/sitemapfriend/model/sitemapfriend/sitemapfriend.class.php on line 67
/mywebsite/core/components/sitemapfriend/model/sitemapfriend/sitemapfriend.class.php on line 68
/mywebsite/core/components/sitemapfriend/model/sitemapfriend/sitemapfriend.class.php on line 69

In documentation http://rtfm.modx.com/display/ADDON/sitemapFriend Output Property fieldTitle is used. In sitemapfriend.class.php however titleField is used.

When I change [[!sitemapFriend? &type=html]] in [[!sitemapFriend? &type=html &titleField=pagetitle]] the problem is solved.

page do not validate as sitemap in google webmaster tools

When using it in a revo page as xml page with empty template and content as : [[!sitemapFriend? &type=xml]]

upon google webmaster tools, I get the following :

Avertissements

Balise XML incorrecte

Cette balise n'a pas été reconnue. Corrigez le problème et réessayez.

98

Balise parent : url
Tag : title

9

2 avr. 2013

and it seems there is no way to change the xml template for the xml item.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.