Development

Changeset 8930

You must first sign up to be able to contribute.

Changeset 8930

Show
Ignore:
Timestamp:
05/13/08 17:01:03 (4 months ago)
Author:
Sylvio
Message:

sfDynamicCMSPlugin: releasing version 0.2.4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDynamicCMSPlugin/README

    r8672 r8930  
    423423A lot of things can be refactored and improved. 
    424424 
     425== KNOWN LIMITATIONS == 
     426 
     427=== Custom route overiding default route === 
     428 
     429Be carefull, some custom routes can overide default routes in some case. 
     430 
     431Example : 
     432Parent 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 
     438Limitation : Even if "myVideoPage" node is placed before "myVideo", 3rd node rule will overide 2nd node rule.  
     439There is 2 solutions to resolve it. 
     440 
     441First solution : 
     442Add a prefix to "myVideo" url : 
     443 - Node "myVideo" : url="vid/:video_param" 
     444 
     445Second solution : 
     446This 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 
     449An other solution, if "video_param" is a number, add requirement for video_id parameter. 
     450 
    425451== TODO == 
    426452 
    427453=== Global === 
    428454 
    429   * sylvio : publish plugin on Symfony svn & link Wiki page to README 
    430455  * sylvio : enhancement : backend interface 
    431456 
     
    439464 
    440465  * sylvio : check nodes which has same url while creating or updating and display warning 
    441   * sylvio : review node url function 
    442466  * 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) 
    446468   
    447469=== Doc === 
     
    451473   
    452474== 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 
    453481 
    454482=== 2008-25-04 | 0.2.3 Alpha === 
  • plugins/sfDynamicCMSPlugin/lib/model/plugin/PluginsfDynamicCmsNode.php

    r8928 r8930  
    5757  public function getInternalUri() 
    5858  { 
    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(); 
    6060     
    6161    if (!$this->getModule() && !$this->getAction() && !$this->isRoot()) 
     
    7272  public function getFirstPageInternalUri($sep = '/') 
    7373  { 
    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(); 
    7575     
    7676    if ($this->getPageId() > 0 && $this->getPageId())