add a UI Action in alfresco - user-interface

i'm trying to add a ui action in alfresco so i first add it in alfresco web client and i succeded (i followed Jeff Potts tutorial) i want now to add the same UI action in alfresco share so i made a file named share-config-custom.xml and i put it in the same folder as web-client-config-custom.xml but it dosen't work is there a problem ?
the code of share-config-custom.xml
<alfresco-config>
<config condition="DocLibActions">
<actions>
<action id="web_site">
<label>SomeCo</label>
<href>any_Link</href>
<image>/someco/images/icons/website.gif</image>
<target>new</target>
</action>
</actions>
<actionGroups>
<actionGroup id="document-browse">
<action index="400" id="web_site"/>
</actionGroup>
<actionGroup id="document-details">
<action index="400" id="web_site"/>
</actionGroup>
</actionGroups>
</config>
</alfresco-config>
Is there a problem ?
Is there any good tutorial to do this one ?

At this link on page 23 you have detailed description how should share-config-custom.xml look like when adding custom action in UI. You need to know that things with Alfresco change quickly from version to version and info in this tutorial doesn't need to be 100% correct.

Your code is ok. You need to place share-config-custom.xml file under
/share/classes/alfresco/web-extension

Related

Url format for App Store and Google Play to install app with deep link

Prerequesits:
I've already implemented deep linking and universal linking, everything works great.
Here is what I need:
I'm sharing with you a url that looks like that:
https://play.google.com/store/apps/details?id=com.foo.bar&invite=asdf
You open this link on your Android device, navigate to the Google Play listing. Tapping "Install".
Now, I want the app to do the same thing, like if i would open installed app with this link
myfoobar://?invite=asdf
I also need the same for App Store.
Could you show me how do I format App Store/ Google Play url to achieve this?
I think this should fulfill your needs: https://firebase.google.com/docs/dynamic-links.
It also goes further and honors the initial deep link after the app is installed.
What I did in a previous app is to catch custom URIs, start a specific router activity which will redirect to the right URL depending on the caught URI.
Code is note the most important, you need to understand the idea.
You can't directly setup a magic logic that will allows you to link a custom URI to a custom URL. What you CAN do, is to make your app react to a specific/custom URI (myfoobar://) that will launch a specific and dedicated activity / view controller that will itself redirect to the URL of your choice.
For instance, on Android side:
<activity
android:name="com.example.android.RouterActivity"
android:label="#string/title_gizmos" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "example://gizmos” -->
<data android:scheme="myfoobar"
android:host="whatever" />
</intent-filter>
</activity>
And then, in your RouterActivity, launch your URL.
More information here
On iOS side, same idea, but instead you need to register your custom URI in your info.plist.
More information here and also here.
I hope it helped you. That is how I did in previous apps and it works like a charm.

Magento 2: Footer Links, add more, sort into blocks with headings?

Over the past few days I have been trying to figure out how to modify the footer links in Magento 2 to no avail. I'd like to style them similar to Magento 1.9, where there were multiple blocks of links, each with different headings. What is the best way to approach this? It appears that the default links are added through php files of various modules. I don't want to modify the php of core files to accomplish this... Is a block going to have to be created from scratch? Worried about this, Magento 2 has not made anything easy thus far... Hoping that what I am asking could perhaps be solved through XML...
If you need to add custom links in footer of Magento2 website then you need to do following changes:
add below code in default.xml fo your Magento2 theme:
<referenceBlock name="footer_links">
<block class="Magento\Framework\View\Element\Html\Link\Current" name="2custom-link">
<arguments>
<argument name="label" xsi:type="string">Custom Links</argument>
<argument name="path" xsi:type="string">page-url</argument>
</arguments>
</block>
</referenceBlock>
Please apply it and let me know if you still getting this issue.

Map feature not working on Home Page

I am using Magento version 1.7.0.2 and I set MAP feature in my site.
MAP feature work perfectly in category listing and product detail page but in home page its give me js error.
Reference Error: Catalog is not defined
Anybody know how can I resolve it?
ok. After some research I got the solution.
To make MAP pop-up work on the home page, add these code in local.xml of your theme:
<cms_index_index>
<update handle="MAP_popup" />
</cms_index_index>
It should be added somewhere between <layout> and </layout>.

Magento custom theme template file not used 1.6

I have a custom magento template which im trying to tweak and just have a question regarding templates.
Currently the customer login uses the base .phtml file.
So I have created the customer/form/login.phtml file and placed it in my CUSTOM theme folder.
Then in my custom theme folder I went into layouts and and customer.xml. This is where in not sure what I need to do.
I found the following XML code:
<customer_account_login translate="label">
<label>Customer Account Login Form</label>
<!-- Mage_Customer -->
<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
</reference>
</customer_account_login>
Im not sure what I need to change with this to make it use my custom login form instead of using the base login form.
At first I thought the system would automatically check to see if the file exists in custom and just apply and if it doesnt exist fall back on base template but that didnt seen to work.
Any help would be appreciated. A noob explanation would also be great!
Thanks for reading
Magento seems to use a login file from:
template/persistent/checkout/onepage/login.phtml
In version 1.6 of Magento.
Edited that and the changes appeared as expected. Sorry but i also just found this post
In Magento 1.6, changes to login.phtml don’t reflect
Mine seems to be a dupe (sorry I didnt come across it when searching before) so feel free to close this one :)

Magento: how do I over-ride an admin js file instead of editing it in core?

Recently answered this question with a change to a core file:
Approach on changing row color on orders grid in admin
There is one file that needed updating to answer this question: js/mage/adminhtml/grid.js
What I would like to know is how to do this properly, i.e. without editing the core file.
Edit
This is what worked:
in app/design/adminhtml/default/default/layout/local.xml:
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
<reference name="head">
<action method="removeItem"><type>js</type><name>mage/adminhtml/grid.js</name></action>
<action method="addItem"><type>js</type><name>colors/adminhtml/grid.js</name></action>
</reference>
</default>
</layout>
Then I put a new directory + subdirectory and file in js/colors/adminhtml/grid.js
And many thanks to Alan for giving me the 'courage' to do it properly...
Add a Javascript Block to the Page, using events, the adminhtml application's local.xml, or a custom module layout xml file
Add a Prototype dom:loaded event listener to the page
Using Prototype's $$ method, search the dom for the order status HTML DOM nodes. If possible, use an ID in there to ensure you're getting the right nodes.
Use Prototype's addClassName method to add a css class to the nodes from #3.
Add a CSS file to the page, using events, the adminhtml application's local.xml, or a custom module layout xml file. In this CSS file add style definitions to get the colors you want.

Resources