splittingred / googlesitemap Goto Github PK
View Code? Open in Web Editor NEWGenerates a Google Site Map for your MODx Revolution site.
Home Page: http://svn.modxcms.com/docs/display/ADDON/GoogleSiteMap
Generates a Google Site Map for your MODx Revolution site.
Home Page: http://svn.modxcms.com/docs/display/ADDON/GoogleSiteMap
When adjusting the height, width or any other setting the new settings take affect but within the TV the setting keep having their old, initial, settings. Next time u save them they will be set to their original value.
Could we add this option excludeChildrenOf
In Revolution sites i've got loads of resources that aren't present as web pages, but just as resources in a supporting capacity.
Thanks
Hi! Problem is that, when I'm calling GoogleSiteMap on my page it outputs only one (first) level of resources. I tried to get another, positive, result with both local and remote installations of Revo, but without any success. It seems It's not a rc2 thing. This problem already appeared for me in nightly builds of Revo 2.2 about two of three weeks ago. With Revo 2.1.x your snippet still works fine.
I am having a problem. If I call it as simple as [[!GoogleSitemap]], everything shows up, which means it is working. But I need to include selective templates/resources in the sitemap, thus I created this:
[[!GoogleSitemap? &allowedtemplates=3,5,2,15,21,7,8,9
]]
It only shows the homepage link, a single link in the sitemap and nothing else.
Any clues?
http://screencast.com/t/wIZP5JQup
It looks like as soon as I add something in the allowedtemplates, it stops working.
Tried all sorts of combinations etc.
In 1.3.1 version hidden from menu Resources dont show up in sitemap.xml. Ive tried to change Default Property Set, MyCustom property Set - didn`t help either.
Thank you for this great snippet and your many others! Our site has many weblinks that redirect to external resources. This causes Google to throw errors on the sitemap. A feature that enables exclusion of weblinks would be very useful.
It would be nice if articles pages were included in the sitemap. They currently aren't included when using a default call.
Would be nice if there was functional way to use Google directions. For instance: Directions: Yes and a new field where you specify the "to" adress.
Maybe directions ain't working due to the other issue i submited that settings are not saved.
TV input is set to rich text, but the output can't render rich text (center text, make name bold etc).
Add properties &scheme or &linkScheme to snippet. I use sitemap on HTTPS protocol and i edit this line of code (file - googlesitemap.class.php, line - 103, 4 parameter of makeUrl function):
$url = $this->modx->makeUrl($id,'','','https');
Available link_tag_schemes in MODX:
https://rtfm.modx.com/revolution/2.x/administering-your-site/settings/system-settings/link_tag_scheme
noticed that the sitemap creates an empty element for resources that are not published yet. This then causes the sitemap to fail in Google and show the dreaded red cross (in the webmaster tools)
By adjusting the gtv.js
,isArray: function(v) {
return toString.apply(v) === '[object Array]';
}
replaced with:
,isArray: function(v) {
//check if v is an object as an array is an object
if (typeof v == "object")
{
//check the string value of the constructor for an array function
var isArray = v.constructor.toString().match(/array/i);
return ((isArray != null)?true:false);
}
//not an object so not an array
return false;
//toString.apply(v) === '[object Array]';
}
It sholuld not return an item hidden from menu. I can't see option to do it and by default it list all resources
There should be a param that allows to create a SiteMap of specific resource id.
Now I'm changing it in googlesitemap.class.php on private function _run($currentParent = 0,$selfId = -1) from currentParent = 0 to currentParent = ID
To get more flexibility it could be great to have access to document's ID in &itemTpl chunk.
For example, I wanted to make sitemap.xml in this way: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=2620865. And then I needed access to resource's id to be sent to Babel plugin's snippet which I use already.
Another thing - Googlesitemap snippet used "full" schema in makeURL as default, while I needed "http" approach (where URL assembled with base_url (containing language shortcut i.e.) option for every frontend context).
It is as easy to add that feature as add one extra row to the googlesitemap.class.php source file (line 135)
$output .= $this->getChunk($this->config['itemTpl'],array(
'url' => $url,
'date' => $date,
'update' => $update,
'priority' => $priority,
'id'=> $id,
Thank you,
Ata
I have an unpublished folder that contains published resources - they are used via getResources. These Ressources are not listed in the sitemap. I hope something can be done about that... ;)
Make priority and change frequency ($update in the snippet) parameters.
This would allow this two values to be overridden per page from the ones
calculated by the snippet itself.
GoogleSiteMap 1.2pl doesn't list the child resource, but it should IMO.
Alternatively I tried to just exclude the weblink with excludeResources this will remove the child, as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.