group menu items under components of joomla 2.5 - joomla

Please tell me how to edit the joomla administrator component menus in joomla 2.5 i want to change the hierarchy of the menus and submenus can you please guide me the file of joomla 2.5 administrator component menus where i can set the hierarchy of menu items and sub menu items.
Like this
Advanced Features
Akeeba Backup à Rename to just Backup
j2xml
JCE Editor
Joomla! Update
Virtuemart - aio

You may switch components on and off for user specific groups:
Go to component > Options > Permissions > [Pick user group] > Access Administration Interface.
These are inherited from global options: System > Global configuration > Permissions > [Pick user groups] > Access Administration Interface.
There's infrastructure to change order and hierarchy of administration menus (these are similar menu items to these on frontend part of the website) but I haven't seen and extension that allows this yet (that doesn't mean it doesn't exist).
If you have some experience with SQL, You may alter database table of administration menus directly: take a look [db_prefix]__menu table where client_id = 1 and menutype = main but don't forget to backup database first!
Example of important values for Contacts component
id | title | alias | parent_id | level | lft | rgt
---+------------------------+---------------------+-----------+-------+-----+----
1 | Menu_Item_Root | root | 0 | 0 | 0 | 101
7 | com_contact | Contacts | 1 | 1 | 47 | 52
8 | com_contact | Contacts/Contacts | 7 | 2 | 48 | 49
9 | com_contact_categories | Contacts/Categories | 7 | 2 | 50 | 51
lft and rgt defined position in components menu
additionally alias, parent_id, level define hierarchy

Related

Windows directory juction: no files are copied via network access

I have a problem with file storage organization.
There is a network of Windows 7 and Windows XP computers. One of them is a file storage server.
Software packs are located on the storage server. Each software pack includes
1. active folder;
1. some folders for each program.
(see the structure example below)
Active folder is a structure of the actual program's versions, must allow to copy all the software in their actual versions avoiding file's duplicating via direct copying. Also fast switching of actual version is needed.
Program folders contain folders for each program's version.
I tried to solve the task via windows directory junction. I created the links via Far Manager 3, command Alt+F6, type directory junction.
Desired structure example
+---active % 389 MB, desired package of actual software
| +---notepad++ % directory junction
| | \---7.3.1
| | npp.7.3.1.Installer.exe
| | npp.7.3.1.Installer.x64.exe
| |
| +---octave % directory junction
| | \---4.2.1
| | octave-4.2.1-w32-installer.exe
| | octave-4.2.1-w64-installer.exe
| |
| \---texstudio % directory junction
| \---2.12.4
| texstudio-2.12.4-win-qt5.6.2.exe
|
+---notepad++
| +---6.8.8
| | npp.6.8.8.Installer.exe
| |
| \---7.3.1 % actual version
| npp.7.3.1.Installer.exe
| npp.7.3.1.Installer.x64.exe
|
+---octave
| +---4.2.0
| | octave-4.2.0-w32-installer.exe
| | octave-4.2.0-w64-installer.exe
| | octave-4.2.0-w64.zip
| |
| \---4.2.1 % actual version
| octave-4.2.1-w32-installer.exe
| octave-4.2.1-w64-installer.exe
|
\---texstudio
+---2.11.0
| texstudio-2.11.0-win-qt5.5.1.exe
|
+---2.12.0
| texstudio-2.12.0-win-qt5.6.2.exe
|
+---2.12.2
| texstudio-2.12.2-win-qt5.6.2.exe
|
\---2.12.4 % actual version
texstudio-2.12.4-win-qt5.6.2.exe
Local usage
Local means I operate on the storage server's Windows GUI.
If to copy active folder to another server's folder observed result is the same as desired:
TEST_COPY
\---active % 389 MB, all the files are copied
+---notepad++
| \---7.3.1
| npp.7.3.1.Installer.exe
| npp.7.3.1.Installer.x64.exe
|
+---octave
| \---4.2.1
| octave-4.2.1-w32-installer.exe
| octave-4.2.1-w64-installer.exe
|
\---texstudio
\---2.12.4
texstudio-2.12.4-win-qt5.6.2.exe
Network file access
If to access to the storage server's active folder via network sharing and copy it the desired result does not happen.
Of course, tree /A /F command shows the same structure of the copied tree, but active is 0 MB size and child folders notepad++, octave, texstudio are also zero-sized and empty.
TEST_COPY
\---active % 0 MB, no any files, only subfolders
+---notepad++
| \---7.3.1
|
+---octave
| \---4.2.1
|
\---texstudio
\---2.12.4
Only if try to copy directly directory junctions subfolders inside active folder (7.3.1, 4.2.1, 2.12.4) the content will be copied as desired. But every user wants to copy active folder, not its second level childs.
BTW. Sometimes when trying to copy an error occurred: file/folder already exists, and copy process was broken unexpectedly.
May be links are set up wrong or there are other methods to reach the desired result.

How to address SpecFlow Scenario Outlines with too many parameters?

We are using SpecFlow for functional tests that suppose to replace manual testing when a human reads generated email and validates that all sections match specification. The problem is that Scenario Outlines become to grow to have too many parameters
Scenario Outline: generate and send confirmation email
Given I have stored itinerary in '<EmbeddedItinerary>'
When Generate confirmation email
Then section1 should have parameters '<Param1_1>', '<Param1_2>', '<Param1_3>',...
Then section2 should have parameters '<Param2_1>', '<Param2_2>', '<Param2_3>',..
Then section3 should have parameters '<Param3_1>', '<Param3_2>', '<Param3_3>',...
....
Examples:
| EmbeddedItinerary | Param1_1| Param1_2| Param1_3| Param2_1| Param2_2| Param2_3| Param3_1| Param3_2| Param3_3|...
| Itinerary_1 | Value1_1 | Value1_2 | Value1_3 | Value2_1 | Value2_2 | Value2_3 |Value3_1 | Value3_2 | Value3_3 |...
| Itinerary_1 | Value1_1 | Value1_2 | Value1_3 | Value2_1 | Value2_2 | Value2_3 |Value3_1 | Value3_2 | Value3_3 |...
But the number of columns in Examples would become unmanageable. I wish to have multi-line examples ( but with different reason then in Multiple Multi-Line Examples in SpecFlow Feature File).
The option that I see is to store all ExpectedResults in embedded xml or json resource file, and have SpecFlow features quite small e.g.
Scenario Outline: generate and send confirmation email with correct email address for flight section
Given I have stored embedded resource '<EmbeddedItinerary>'
When Generate confirmation email
Then sections should be as specified in '<ExpectedResultsFile>'
Examples:
| EmbeddedItinerary | ExpectedResultsFile
| Itinerary_1 | ExpectedResults1 |
| Itinerary_2 | ExpectedResults2 |
...
Is it a good idea?
Can anyone suggest better way ( more SpecFlow style)?
My concern is that moving expected data to separate files I am loosing visibility, that is one of advantages of SpecFlow features.
Update: while writing this question I found commercial product ($AUD 255 per user) Specflow+Excel http://www.specflow.org/plus/excel/getting-started/ , which may satisfy my requirement to maintain many columns.
Is it a mature/reliable product? Should I use it instead of own parsing expected results files in proprietary format?
If I have a lot of parameters in a Scenario Outline, I try to work as much as possible with default parameters or split the Scenario Outline in multiple ones.
I think in your case, it should be possible to split the one 'generate and send confirmation email' Scenario Outline in multiple ones that you have a scenario outline for every section.
This would reduce the amount of needed parameters per scenario and you get faster feedback if an error occurs. You immediately see in which section you have an error.
e.g.:
Scenario Outline: generate and send confirmation email - section 1
Given I have stored itinerary in '<EmbeddedItinerary>'
When Generate confirmation email
Then section1 should have parameters '<Param1_1>', '<Param1_2>', '<Param1_3>',...
Examples:
| EmbeddedItinerary | Param1_1 | Param1_2 | Param1_3 |
| Itinerary_1 | Value1_1 | Value1_2 | Value1_3 |
Scenario Outline: generate and send confirmation email - section 2
Given I have stored itinerary in '<EmbeddedItinerary>'
When Generate confirmation email
Then section2 should have parameters '<Param2_1>', '<Param2_2>', '<Param2_3>',..
Examples:
| EmbeddedItinerary | Param2_1 | Param2_2 | Param2_3 |
| Itinerary_1 | Value2_1 | Value2_2 | Value2_3 |
Scenario Outline: generate and send confirmation email - section 3
Given I have stored itinerary in '<EmbeddedItinerary>'
When Generate confirmation email
Then section3 should have parameters '<Param3_1>', '<Param3_2>', '<Param3_3>',...
Examples:
| EmbeddedItirerary | Param3_1 | Param3_2 | Param3_3 |
| Itinerary_1 | Value3_1 | Value3_2 | Value3_3 |
About SpecFlow+Excel: That is also an option. Maintaining examples in Excel is most of the time easier than in the feature- file. It will at least solve your problem in short term, but you have to be also careful to write scenarios that are still understandable and readable.
You can get a trial license for it from here: http://www.specflow.org/request-your-specflow-trial-license/
Full Disclosure: I am one of the developers of SpecFlow+ (Runner & Excel).

InDesign - how do I know if an image already placed?

I am working on a book with many images, and I want to ensure that I place each picture only once. Is there a way to tell indesign to to check if image exist before placing it? Or a way to define a preflight profile for it?
Thank you,
Omer
You should be able to see a list in the links panel.
It shows the number of times and the page number it appears on.
example:
Name | ! | Pg |
--------------------|---|----|
my-image.psd (2) | | |
my-image.psd | | 1 |
my-image.psd | | 4 |

Sonar 3.6.1 : Manual metrics and treemap components

I have a problem with SonarQube 3.5.1 / 3.6 / 3.6.1.
I use web API to inject manual metrics values for a project like this :
curl -u user:password -d "resource=<project>&metric=<key of metric>&val=<value>" http://localhost:8081/sonar/api/manual_measures
More over, I use sonar-runner (with a .properties file) to run analysis after injected these values.
One of these metrics is a percentage and this metric is declared as a Percent Unit value in Sonar (in Settings => Manual Metrics menu).
I have a project with components and each project and components have this metric value injected and I can see it in Sonar.
When I want to show this metric as a color metric in a "treemap of components" widget, all the treemap is grey (as if values are not defined).
But if I put mouse on the name of component in treemap, I see the color metric value as a percentage value like this :
myComponent - ncloc: 800 - myMetric: 84,0%
Moreover, scale metric color does not appear in treemap title (after Size ncloc Color <my metric>).
Colors and scale appear if I choose an other metric for color (not a manual metric).
In fact feeding a manual metric is a two steps mechanim:
Define the value of this manual metric as you did by calling for instance the 'manual_measures' web service
Launch a Sonar analysis on this project to 'associate' this manual measure to the latest quality snapshot of this project
Then you should be able to use this manual metric in a treemap.
I finally found a solution for this problem.
In metrics table in database, i realized that my manuals metrics for color treemap don't have worst_value and best_value (value was NULL).
select * from metrics where name like 'sp_violations_density';
Result :
+-----+-----------------------+------------------+-----------+--------+-------------------------------+-------------+----------+--------------+---------+--------+------------------------+--------------------------+----------------------+--------+------------------------+
| id | name | description | direction | domain | short_name | qualitative | val_type | user_managed | enabled | origin | worst_value | best_value | optimized_best_value | hidden | delete_historical_data |
+-----+-----------------------+------------------+-----------+--------+-------------------------------+-------------+----------+--------------+---------+--------+------------------------+--------------------------+----------------------+--------+------------------------+
| 161 | sp_violations_density | Rules compliance | 0 | Issues | SyncPerl Compliance Rules (%) | 1 | PERCENT | 1 | 1 | GUI | NULL | NULL | NULL | NULL | NULL |
+-----+-----------------------+------------------+-----------+--------+-------------------------------+-------------+----------+--------------+---------+--------+------------------------+--------------------------+----------------------+--------+------------------------+
So i set them with 0 and 100.
update metrics set worst_value='0' where name LIKE 'sp_violations_density';
update metrics set best_value='100' where name LIKE 'sp_violations_density';
Need a Tomcat restart, and then it works.
Treemap has colors now.

Setting up magento site in sub domain

i have a magento site main domain.
i did the following steps :
1.Downloaded the full magento site from main domain(mydomain.com)
2.Created a sub domain as new.mydomain.com(in plesk)
3.Uploaded the full magento site in to sub domain.
4.Created new database and imported the database.
5.Changed the secure url and unsecure url as 'http://www.new.mydomain.com/' in core_config_table.
6.Changed the local.xml file with new database details.
The above steps i did.
Then i take the sub domain as new.mydomain.com in browser, but it goes to main domain(mydomain.com).
What is the reason for that?
I contacted the client, the client give me the information that, there is no server problem. It is in your code.
So what is the problem here?
Is there is any redirection to main domain from sub domain?
Or is there is any file taken from main domain instead of sub domain?
How can i solve this?
Are there any additional steps here i need to do?
I already checked the index.php page:
Here, i give an echo statement before Mage::run($mageRunCode, $mageRunType);
that is :
echo "test";
die();
Mage::run($mageRunCode, $mageRunType
Then the test will be displayed.
So when running mage it redirects to main domain.
fwiw: magento stores the "domain" information in at least two records in the core_config_data table:
mysql> select * from core_config_data where value like '%mydomain.com/';
+-----------+---------+----------+-----------------------+----------------------+
| config_id | scope | scope_id | path | value |
+-----------+---------+----------+-----------------------+----------------------+
| 4 | default | 0 | web/unsecure/base_url | http://mydomain.com/ |
| 5 | default | 0 | web/secure/base_url | http://mydomain.com/ |
| 1488 | stores | 2 | web/unsecure/base_url | http://mydomain.com/ |
| 1489 | stores | 2 | web/secure/base_url | http://mydomain.com/ |
+-----------+---------+----------+-----------------------+----------------------+
Before making the backup of the database, or even after backing it up, but before attempting to make the new site live, run an update statement:
update core_config_data set value = 'http://mynewdomain.com' where value = 'http://mydomain.com'
And then the site should come up fine.
Another method is to change the secure and the unsecure urls in the System->Configuration->web section and then saving the database.
SS
Have you clean cache ? ( removing /var/cache dir ) ?
You can try by phpmyadmin searching for mydomain.com in all the database and change it.

Resources