Hi y’all.
Just in case anyone is having a problem with viewing the custom pages (clicking on the magnifying glass) that he creates on admin/custompages .It’s probably because [size=“2”][color="#1c2837"]the custom URL rule for custom pages ,[/color][/size]
[size="2"][color="#1c2837"]
[$_more[ "http://<lang:({$rule['language']})>.{$domain}/<alias:({$rule['alias']})>" ] = array('site/custompages/index');[/color][/size]
[size="2"][color="#1c2837"]
[/color][/size]
is supposed to work only if the config params setting [color="#1C2837"][size=“2”]‘subdomain_languages’ => true.[/size][/color]
[size="2"][color="#1c2837"]If you have set it to false,then you need another URL rule.So in protected/components/CustomUrlManager,just add below [/color][/size][color="#1C2837"][size="2"]this line[/size][/color]
[size="2"][color="#1c2837"]
$urlrules = array_merge( $_more, $this->rules );
[/color][/size]
[size="2"][color="#1c2837"]one more line:[/color][/size][size="2"][color="#1c2837"][color="#000000"][size="3"]
[size="2"][color="#1c2837"][size="2"]
$urlrules = array_merge( $urlrules, array( "<alias:\w+>/*"=>'site/custompages/index') );[/size][/color][/size][/size][/color][/color][/size]
[size="2"][color="#1c2837"][color="#000000"][size="3"][size="2"][color="#1c2837"][size="2"]
[/size][/color][/size]
[size="2"][color="#1c2837"][size="2"].I am not sure if this is the best solution,but made the view links on the management page work.[/size][/color][/size]
[size="2"][color="#1c2837"][size="2"]I think a nice feature missing would be for the end user to manage a menu,and add these custom pages on the menu.[/size][/color][/size]
[size=“2”][color="#1c2837"][size=“2”]But let’s not get greedy,this application is packed with tons of features.[/size][/color][/size][/size][/color][/color][/size]
[size="2"][color="#1c2837"][color="#000000"][size="3"][size="2"][color="#1c2837"] [/color][/size][/size][/color][/color][/size]
[size=“2”][color="#1c2837"][color="#000000"][size=“3”][size=“2”][color="#1c2837"][size=“2”]PS in code blocks there is some garbage printing ,all those size color etc-sorry that’s not from me,its from the editor.Ignore it,[/size][/color][/size][/size][/color][/color][/size]