Changeset 8930
- Timestamp:
- 05/13/08 17:01:03 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDynamicCMSPlugin/README
r8672 r8930 423 423 A lot of things can be refactored and improved. 424 424 425 == KNOWN LIMITATIONS == 426 427 === Custom route overiding default route === 428 429 Be carefull, some custom routes can overide default routes in some case. 430 431 Example : 432 Parent node "Videos" : url="/video" (1) (default routing) 433 - Node "myVideoPage" : url="myPage" (2) (default routing, cms page) 434 - Node "myVideo" : url=":video_param" (3) (custom routing, custom module using a video database) 435 436 (absolute url are respectively: "/video", "/video/myPage", "/video/:video_param") 437 438 Limitation : Even if "myVideoPage" node is placed before "myVideo", 3rd node rule will overide 2nd node rule. 439 There is 2 solutions to resolve it. 440 441 First solution : 442 Add a prefix to "myVideo" url : 443 - Node "myVideo" : url="vid/:video_param" 444 445 Second solution : 446 This can be resolve by defining custom routes for "myVideoPage" and fill module and action with default module and default action. 447 - Node "myVideoPage" : url="/video/myPage" (custom routing, module: sfDynamicCMS, action: sfDynamicCMS) 448 449 An other solution, if "video_param" is a number, add requirement for video_id parameter. 450 425 451 == TODO == 426 452 427 453 === Global === 428 454 429 * sylvio : publish plugin on Symfony svn & link Wiki page to README430 455 * sylvio : enhancement : backend interface 431 456 … … 439 464 440 465 * sylvio : check nodes which has same url while creating or updating and display warning 441 * sylvio : review node url function442 466 * sylvio : ability to have custom tags for a node (e.g. menu_id, menu_image) or a version (title, ...) 443 * sylvio : permits to have custom url for root element (root url is always "/" at this time) 444 * sylvio : enhance hard url to permits to have "https://" or "mailto:" ... 445 * sylvio : ability, to set an url prefix in config (then all sfDynamicCMS urls start with this prefix) 467 * sylvio : ability, to set an url prefix in config (then all sfDynamicCMS urls start with this prefix) to have custom url for root element (root url is always "/" at this time) 446 468 447 469 === Doc === … … 451 473 452 474 == Changelog == 475 476 === 2008-13-05 | 0.2.4 Alpha === 477 478 * sylvio : fix some bugs (regeneration of routing.yml and clear cache when moving node, '<?' markup replacement, routes_register really facultative, sfDynamicCMSNode::getAbsoluteUrl method ) 479 * sylvio : add "known limitations" section in doc 480 * sylvio : trunk available on Symfony svn repositery 453 481 454 482 === 2008-25-04 | 0.2.3 Alpha === plugins/sfDynamicCMSPlugin/lib/model/plugin/PluginsfDynamicCmsNode.php
r8928 r8930 57 57 public function getInternalUri() 58 58 { 59 if(substr($this->getUrl(),0,7)=='http://' || substr($this->getUrl(),0,8)=='https://' ) return $this->getUrl();59 if(substr($this->getUrl(),0,7)=='http://' || substr($this->getUrl(),0,8)=='https://' || substr($this->getUrl(),0,7)=='mailto:') return $this->getUrl(); 60 60 61 61 if (!$this->getModule() && !$this->getAction() && !$this->isRoot()) … … 72 72 public function getFirstPageInternalUri($sep = '/') 73 73 { 74 if(substr($this->getUrl(),0,7)=='http://' || substr($this->getUrl(),0,8)=='https://' || substr($this->getUrl(),0, 8)=='mailto:') return $this->getUrl();74 if(substr($this->getUrl(),0,7)=='http://' || substr($this->getUrl(),0,8)=='https://' || substr($this->getUrl(),0,7)=='mailto:') return $this->getUrl(); 75 75 76 76 if ($this->getPageId() > 0 && $this->getPageId())