Forums / Setup & design / Changing Name of Design Folder

Changing Name of Design Folder

Author Message

GG 66

Tuesday 19 September 2006 9:26:40 am

I'm relatively new to this so I'd appreciate any advice or pointers to documentation.

When installing ez, I set it up with the design folder corporate_site

Now that the site is complete and ready to launch I realise I don't know how to remove this from the address bar.

Currently the domain looks like mydomain/index.php/corporate_site

I would ideally like to remove index.php but can live with this.

But I need to change corporate_site to something else.

How do I do this?

Thanks in advance

Juliusz Calyniuk

Tuesday 19 September 2006 10:09:32 am

Hi GG666 66,

What a funny nick ;)

This is not about design folder but siteaccess.
You can just change siteaccess settings in configuration of your websites.

Look at subfolders of /settings.

You can change names of subfolders in:
<i>/ezpublish/settings/siteaccess/</i>

and set appropriate settings in files:
<i>/ezpublish/settings/override/site.ini.append.php</i>
<i>/ezpublish/settings/siteaccess/*/site.ini.append.php</i>

Remember to clear cache after that.

Good luck!

WebStyle Systems | http://www.ws-webstyle.com

GG 66

Wednesday 20 September 2006 1:55:24 am

Hi Juliusz

Thanks for your prompt response.

I've tried what you suggested but it has broken connection with database.I changed back again. Its probably possible but there are probably more changes involved.

Stylesheet links were also missing but this may be just a matter or changing urls in pagelayout.tpl.

I cant see where corporate_site is tied to database.

Can you advise?

Thanks

Norman Leutner

Wednesday 20 September 2006 2:31:24 am

Hi,

the finest soution is take make a host based setup with different domain names like:

http://admin.yoursite.com
http://www.yoursite.com

which point the different siteaccesses:

/settings/override/site.ini.append.php

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=corporate_site
AvailableSiteAccessList[]=corporate_site_admin

MatchOrder=host
HostMatchMapItems[]=yoursite.com;corporate_site
HostMatchMapItems[]=www.yoursite.com;corporate_site
HostMatchMapItems[]=admin.yoursite.com;corporate_site_admin
ForceVirtualHost=true
HostMatchType=map

and a apache rewrtie rule like this one to get ret of the index.php:

      <IfModule mod_rewrite.c>
          RewriteEngine On
          Rewriterule ^/var/storage/.* - [L]
          Rewriterule ^/var/[^/]+/storage/.* - [L]
          RewriteRule ^/var/cache/texttoimage/.* - [L]
          RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
          Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
          Rewriterule ^/share/icons/.* - [L]
          Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
          Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
          RewriteRule .* /index.php
      </IfModule>

So there's no need to change the siteaccess name at this point...

Hope this helps..

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

fintan sheehan

Thursday 21 September 2006 9:16:16 am

Thanks Norman,
I tried your sugestion. It works up to a point. Problem is both site and admin site just use whatever DefaultAccess is set to.

If DefaultAccess=corporate_site below then
http://mysite.degrees.com and http://mysite.degrees.com both bring up what used to be
http://mysite.degrees.com/index.php/corporate_site

If DefaultAccess changed to corporate_site_admin below then
http://mysite.degrees.com and http://mysite.degrees.com both bring up what used to be
http://mysite.degrees.com/index.php/corporate_site_admin

Do i need to make any changes to settings/siteaccess/corporate_site/site.ini.append.php
and
Do i need to make any changes to settings/siteaccess/corporate_site_admin/site.ini.append.php
?

Below are changed I made to settings/override/site.ini.append.php

Thanks
Fintan
[SiteSettings]
DefaultAccess=corporate_site
SiteList[]=corporate_site
SiteList[]=corporate_site_admin

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=corporate_site
AvailableSiteAccessList[]=corporate_site_admin
MatchOrder=host
HostMatchMapItems[]=mysite.degrees.com;corporate_site
HostMatchMapItems[]=admin.mysite.degrees.com;corporate_site_admin
ForceVirtualHost=true
HostMatchType=map

Xavier Langlois

Thursday 21 September 2006 1:25:25 pm

.

--
There were these two cows, chatting over the fence between their fields.
The first cow said, "I tell you, this mad-cow-disease is really pretty scary. Don't you think ?"
The other cow replies, "Hell, I ain't worried, I'm a duck !"

Norman Leutner

Friday 22 September 2006 12:43:59 am

Your settings seemd to be correct if the siteaccess names and DNS entrys are valid it sould work fine. Don't forget to clear the cache...

Do i need to make any changes to settings/siteaccess/corporate_site/site.ini.append.php
and
Do i need to make any changes to settings/siteaccess/corporate_site_admin/site.ini.append.php
?

No, ensure that there are no other overrides those settings...

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

eZ debug

Timing: Jan 18 2025 11:21:17
Script start
Timing: Jan 18 2025 11:21:17
Module start 'content'
Timing: Jan 18 2025 11:21:18
Module end 'content'
Timing: Jan 18 2025 11:21:18
Script end

Main resources:

Total runtime1.5773 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.8438180.8359
Module start 'content' 0.00701.3737 769.6797724.3125
Module end 'content' 1.38070.1965 1,493.9922340.4688
Script end 1.5772  1,834.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.3005210.0002
Check MTime0.00180.1152210.0001
Mysql Total
Database connection0.00140.091410.0014
Mysqli_queries1.478493.73172120.0070
Looping result0.00230.14612100.0000
Template Total1.541897.820.7709
Template load0.00200.128820.0010
Template processing1.539897.624020.7699
Template load and register function0.00020.012010.0002
states
state_id_array0.00170.109010.0017
state_identifier_array0.00190.121220.0010
Override
Cache load0.00190.1175830.0000
Sytem overhead
Fetch class attribute can translate value0.00210.135460.0004
Fetch class attribute name0.00130.0812100.0001
XML
Image XML parsing0.00420.266160.0007
class_abstraction
Instantiating content class attribute0.00000.0013110.0000
General
dbfile0.00450.2825400.0001
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 45
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs