2015-03-03, 01:00
Hello Everyone,
I am in the beginning stages of learning about creating / editing skins.
I am currently using the Confluence and Ace skins as starting points to learn from.
In the Ace skin I am modifying, I am trying to add a kind of address bar very similar to the one in Confluence that appears in the upper left hand corner of your screen when you select an item from the main menu.
There are basically two parts to this address <Category> - <Current Folder>
I have been able to get the "Current Folder" to display, the main question I have is about getting "Category" to show up.
The way this is done for example in the Confluence skin is I believe it is a fixed label that is just added to the proper categories xml file. In the Ace skin you can create / add new items to the main menu, for example video nodes where I don't think they get their own xml files to just add a fixed label to them.
For example if a user of my skin created were to create a video node called "CARTOONS" to their main menu, I don't know of any xml file to add the "CARTOONS" as the <Category> part of the address bar. Also you would have to know what the user is going to name his or her main menu item.
QUESTIONS
1.) Is there any kind of $INFO field that returns the title of the main menu item you are in as the <Category> part of the address bar? (I have tried quite a few ideas but have not found anything that works.)
2.) If there is a way to accomplish this above, the next step is getting the " - <Current Folder>" part to space properly right after the <Category> because each category name length will be different. I think I saw code referring to "gap" or something to that effect, but if anyone has any help they would like to offer on this as well that would be great. (This question also is based on if the labels have to be two separate pieces of code or if the commands can be combined into one xml tag.)
As I mentioned I am new at this so if I am not making any sense, or overlooking something simple I apologize.
I can explain more if anyone has any questions.
Thank you for taking the time to read this and for any help offered.
I am in the beginning stages of learning about creating / editing skins.
I am currently using the Confluence and Ace skins as starting points to learn from.
In the Ace skin I am modifying, I am trying to add a kind of address bar very similar to the one in Confluence that appears in the upper left hand corner of your screen when you select an item from the main menu.
There are basically two parts to this address <Category> - <Current Folder>
I have been able to get the "Current Folder" to display, the main question I have is about getting "Category" to show up.
The way this is done for example in the Confluence skin is I believe it is a fixed label that is just added to the proper categories xml file. In the Ace skin you can create / add new items to the main menu, for example video nodes where I don't think they get their own xml files to just add a fixed label to them.
For example if a user of my skin created were to create a video node called "CARTOONS" to their main menu, I don't know of any xml file to add the "CARTOONS" as the <Category> part of the address bar. Also you would have to know what the user is going to name his or her main menu item.
QUESTIONS
1.) Is there any kind of $INFO field that returns the title of the main menu item you are in as the <Category> part of the address bar? (I have tried quite a few ideas but have not found anything that works.)
2.) If there is a way to accomplish this above, the next step is getting the " - <Current Folder>" part to space properly right after the <Category> because each category name length will be different. I think I saw code referring to "gap" or something to that effect, but if anyone has any help they would like to offer on this as well that would be great. (This question also is based on if the labels have to be two separate pieces of code or if the commands can be combined into one xml tag.)
As I mentioned I am new at this so if I am not making any sense, or overlooking something simple I apologize.
I can explain more if anyone has any questions.
Thank you for taking the time to read this and for any help offered.