Forum Support

Shape 5
March 29, 2024, 02:16:09 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Different style for specific language (or languages) and style duplication  (Read 463 times)
dpergam
Jr. Member
**
Offline Offline

Posts: 4



« on: March 24, 2016, 08:55:02 AM »

Hi,
I am having trouble assigning a different style to all the pages of a specific language. I am preparing a multilingual  site so I have already created the menus in all the languages and have assigned corresponding  articles.Each menu has a landing home page assigned to the language.
So, I started  by duplicating a style and assigning it  to a set of pages.
First problem is that  style duplication  (either from Joomla button     or from within Vertex frame work by giving a new name and  pressing "save as copy" ) creates a new style but without copying the original attributes of the style.
Now what I wanted to do is assign style 1 to all languages except the language for which I want to assign style 2.
So, for style 1 I assigned all the pages that I want to have it and did the same for style 2.

While it seems to work ok and I  have no problem switching from language to language, whenever I hit a menu link from the front-end the styles are mixed, i.e. the originally designed color style and logo is not assigned.
 
I cannot identify the problem further . I am not able to find a solution to it so I would appreciate some help on this.



Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: March 24, 2016, 09:12:29 AM »

Hello,

The Save As Copy button will create an exact copy of the style you are currently on, not the default settings. I have tested this locally and I am not experiencing any issues with this functionality.

Styles are meant to work off of menu assignments, not by the user's language. I guess technically it would work if you have a different menu for each language and simply assign the style to those menu items. So Style1 would be your default style which applies to all pages except for those with specific assignments, and Style2 you would need to assign to the specific menu items that pertain to the menu items for your other language. Looking at your last screenshot, it doesn't look like you have one assigned as your default.

As a side note, I would try to avoid multiple styles if you can. In my experience they become a maintenance problem eventually, because you are now trying to keep two sets of settings in sync with each other.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
dpergam
Jr. Member
**
Offline Offline

Posts: 4



« Reply #2 on: March 25, 2016, 10:38:01 AM »

Hello,

please check below my answers:

"The Save As Copy button will create an exact copy of the style you are currently on, not the default settings. I have tested this locally and I am not experiencing any issues with this functionality. "

The "save as copy" button in my case does not create an exact copy of the style .It rather copies only part of the settings.  For example, if I change the highlight1 and highlight2 colors and then I copy the style, then the newly saved style has got other settings for highlight1 and 2. I have tried this many  times and it happens the same thing either by using the "duplicate" or the "save as " buttons. When I wrote "original settings"  I meant the settings I entered and I expected to be duplicated. I could give you backend access to check what I say. I checked it on localhost, too ,and it works as expected. Could this be a server related problem?

"Styles are meant to work off of menu assignments, not by the user's language. I guess technically it would work if you have a different menu for each language and simply assign the style to those menu items. So Style1 would be your default style which applies to all pages except for those with specific assignments, and Style2 you would need to assign to the specific menu items that pertain to the menu items for your other language. Looking at your last screenshot, it doesn't look like you have one assigned as your default."

This was my original approach. Assigning one style to all menus  (except the one I want the different style)  and also assigning this as the default style.
The picture you received was after a series of tests I made. In fact I have already tried the above mentioned combination, but it seems that it does not work as expected. Whenever I select a menu link the style changes for no reason but  I will check this further and let you know.


"As a side note, I would try to avoid multiple styles if you can. In my experience they become a maintenance problem eventually, because you are now trying to keep two sets of settings in sync with each other. "

The reason that I want to have two styles is that I want to use  different logo and color combinations for a specific language. In fact my styles would be 2. If duplication was working, then I could just reproduce my main style and change a couple of things and that would be all.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: March 26, 2016, 11:26:34 AM »

Hello,

That is strange, I just tried locally and cannot find any problems with the duplication process. I've tried multiple fields to change and it always creates an exact copy of the settings that I am current working on. I am wondering if maybe your vertex.json is corrupted somehow, which might explain issues with the assignment as well. As a test you could:

1. Create a copy of the vertex.json file locally.
2. On the server copy of vertex.json completely clear the file so nothing is in it.
3. Open the configuration and all the default settings will show. Save the configuration to create a fresh vertex.json file.
4. Change a few settings and save it again.
5. Now try making a copy of the style, and see if it copies correctly this time.

Regarding your other point about doing a different logo and colors, if you can live without a different color for each langauge, you can do the logo through modules instead. There is a "logo" module position, that you can publish a custom html module to with your logo inside of it. Just create a different logo module for each language.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
dpergam
Jr. Member
**
Offline Offline

Posts: 4



« Reply #4 on: March 29, 2016, 12:43:23 PM »

Hi again,

I followed the steps you suggested.
The style could be duplicated (duplicate or save as). Of course, this messed up the settings I had already created as it defaulted to the primary ones. So, I uploaded again the vertex.json file which I had kept and ,in my surprise, the duplicate and save as started to work...
If the vertex.json file in my installation was corrupted then it is quite strange why it worked when I uploaded it back to the server -no change made.
Nevertheless, I  will not try to understand or explain what was the issue. I am satisfied that it finally worked as expected.
I can also live having the same style for all languages and use the logo module as you suggested.
Different styles was just a thought and when the attempt backfired, I had to ask...!
In the future I will try to play around with different style assignments and see the outcome...

Thanks for your time,
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.