eZ Community » Forums » Setup & design » Different Logos - Same Content via...
expandshrink

Different Logos - Same Content via Siteaccess

Different Logos - Same Content via Siteaccess

Friday 19 July 2013 1:24:53 pm - 10 replies

Hello everybody,

I am quite new to ez and got a question, which I can't solve last 2 weeks.

I want to show different Logos belongs to different site accesses.

Different siteaccesses are created yet, and work with url match.

My idea was to config different var caches for each sitaccess, but it doesn't work correctly.

Is this the right way or is there a more easy way?

Monday 22 July 2013 9:41:02 am

Hello,
If you have two public siteaccess, you can define different default design for each of them. For example:
    siteaccess A has design: firstdesign
    siteaccess B has design: secondsiteaccess
Each design has own folder structure with images so you can place logo image to particular folder in particular design.

Monday 22 July 2013 11:23:20 am

Hi Radek,

thank's for your reply.

Maybe my statement was a little be unexplicit.

I want to use the same design for every access and only want have a custom billboard on each access.

Monday 22 July 2013 11:28:09 am

So, you can use variable which provides information about current siteaccess. There is $access_type.name in pagelayout.

Monday 22 July 2013 12:22:25 pm

Do you have an example for me, how to use the variable and change the billboard in this relation?

Monday 22 July 2013 12:33:41 pm

Well, what do you mean by "billboard"? I was talking about logo (image in file folder structure) which is placed in specific design. Then you can use switch and your template variable to control which image should be display. See doc.

Modified on Monday 22 July 2013 12:33:59 pm by Radek Kuchta

Monday 22 July 2013 12:42:49 pm

I am talking about the Logo Image, which is changeable below /Design/template look/Meta Data.

Sorry, I thought billboard is the right name for this image.

Monday 22 July 2013 1:18:51 pm

Ok, I see your point. You are using the admin interface: Design > Look and Feel. Is that true? This is old instance of template look used on a site and I have never used this mechanizm. What version of eZ Publish you are using? This tab (design) was disabled few years ago happy.gif Emoticon

Usually I'm using extension with my design (logo is as an image in my file structure) and then I can use $access_type.name variable and switch to changing logo (if you have only one design).

Thursday 01 August 2013 8:51:49 am

The reply has been removed because of violation of forum rules.

Friday 16 August 2013 1:27:27 am

Quote from Dörr Björge :

Hello everybody,

I am quite new to ez and got a question, which I can't solve last 2 weeks.

I want to show different Logos belongs to different site accesses.

Different siteaccesses are created yet, and work with url match.

My idea was to config different var caches for each sitaccess, but it doesn't work correctly.

Is this the right way or is there a more easy way?

I have 4 site accesses on my Installation.
They have 4 slightly different templates, based on the same template.
Just "hard-code" a different Banner/Billboard/Header-Image into your template and store that image in your design folder.

It seems best practice to put your design folder in your /extensions directory, so when you upgrade your installation nothing is overwritten and you can copy it easily onto the new installation.

Thursday 05 September 2013 3:37:13 pm

Sorry for the late reply guys.

I upgraded to Version 5.1 and tested some things, but I am still stagnating at this problem.

I created my own package based on the ez_webin_site.

It is placed in var/storage/packages/mypackage/packagename.

These files are changed:

  • package.xml
  • files/default/file/site-colors.css
  • files/default/file/classes-colors.css

I did not change any temp folders or something else, only site-colors, background and so on.

After this, I imported my design.

I created different siteaccesses and different content for them for the front pages, everything works fine.

But I still don't know, where to "hard-code" the variable for header-image.

I am so sorry for my thick-wittedness. 

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from