pavlepredic / yii-sitemap-module Goto Github PK
View Code? Open in Web Editor NEWA self-contained Yii module that dynamically generates a sitemap in xml or html format.
A self-contained Yii module that dynamically generates a sitemap in xml or html format.
/products/view/NTc4LTk0Mw/paintfilly
products is a module
NTc4LTk0Mw base64 of product id
paintfilly title
In order to be able to dynamically specify the time on request, instead of every time the config file is loaded.
Hi...
I have this line in url manager:
'' => 'site/product',
It basically serves products right after the root.
In Yii-sitemap config I have this:
array(
'route' => '/',
'params' => array(
'model' => array(
'class' => 'Products',
'criteria' => array('condition' => 'publish_status = "PUBLIC"'),
'map' => array(
'' => 'slug',
),
),
),
),
It works but generates urls like this one:
www.domain.tld/shop//la-quagliera-extra-virgin-olive-oil
Hot can I get rid of double slashes?
Tnx
I've manually set rules for urlManager in config/main.php
See:
...
'<controller:\w+>/award-benefits' => '<controller>/Award_Benefits',
...
But when sitemap is generating it is showing site/Award_Benefits
instead site/award-benefits
How can I solve this?
In order to be able to specify multiple (alias) routes for the same action
please delete
Hi,
When i publish my site on production server i see this error:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/...../protected/extensions/sitemap/SitemapModule.php on line 222
line 222
foreach ($class::model()->findAll($criteria) as $model)
This bug exists in php > 5.3
To fix this issue change line 222 to:
foreach ($class->model()->findAll($criteria) as $model)
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.