Is it possible to override a component in share.js in alfresco share? - alfresco-share

I want to change the default width of the panel resizer for alfresco share and I noticed this is set in the share.js dropping the whole file into my extension path just to change the values seems a bit too extreme.

After asking about in IRC it would seem that this is not possible.

Related

Responsive background images whilst using sprites

I'm developing a responsive website using Twitter Bootstrap and I want to make some background images responsive that are within a sprite.
Now, I found this post that appears to give a good method, but my issue is, what happens if the image is updated? Normally you could just use cache busting techniques such as appending something like ?v=2 to the end of the filename, but with this method I'm not sure if that is possible? ...or is caching not an issue with this method?
If caching is still an issue are there any other methods available? ...or something a bit more user-friendly than that?
Caching shouldn't be an issue provided you're using something other than a transparent gif. Namely, because the size of the change to the file should be enough to tip the browser off that the file isn't the same when the page is visited. Which handles client-side caching.
Server-side caching won't be an issue with this, as the server will know that the modification date is greater than the last file that was loaded, and should deliver the newer version.

dexterity related items - browse for items has no content

I'm having an issue with the "browse for items" overlay for the default widget for z3c.relationfield, which I believe is using plone.formwidget.contenttree. I've created a custom field using this but get the same problem using the IRelatedItems behavior - the overlay has no browsable content. I am still able to use the autocomplete component of this widget, and can set relations programmatically with no problem, so I don't believe there is a problem with the intids utility. I've also tested on my local machine and on a dev server and everything works perfectly, just not in production (of course).
I apologize for the vague nature of this question, but I'm stumped. Are there any common pitfalls I could look for here? Any configuration step I might be overlooking?
Take a look at the Dexterity documentation and note the following:
Relation support no longer included by default
Content tree and Autocomplete widgets no longer included by default
So maybe you need to install the widget packages manually.

How to disable or hide a structure group?

I would like to disable or hide a structure group that I am creating using the API.
How can I do that? I don't see any relevant methods or properties in the API.
You best option is to set security (remove all permissions) on it so that nobody (except for admins) will see it. Your only other option is to set is "Publishable" property to false, but it will still be visible.
You might however get more answers at https://tridion.stackexchange.com/
I think this can be accomplished using Data Extenders in Tridion CME GUI Extensions. This is where I would start investigating...

Extending Three20 photo gallery?

Hi I am using the Three20 SDK to create a gallery and it's all working great. I basically want to extend this so that when you see a large image there is an additional button on the bottom bar (by the > keys) so you can view some text about the image - I guess this is in principal the same as on the Facebook app where you can click the comments button and the photo flips over to reveal the comments.
Ideally a tutorial on this would be amazing but I guess that probably doesn't exist so I wanted to know the best way to do this was? Should I be adding new files into the Three20 directory to add this additional functionality? Or can I do it just in the one project where I need it?
Sorry to be vague, I'm a bit new to all this!
Generally, you shouldn't modify the three20 source code, unless it's a patch you're planning on submitting back to the three20 project.
If you need different behavior from TTPhotoViewController, you can subclass it and override any functions which doesn't fit your needs.
In your case, if you want to add a button to the toolbar, you should probably override (void)loadView, and replace the _toolbar with your own UIToolbar
Also, if you're only using the photo viewer from the entire three20 library, you will probably better off with a light weight solution, such as https://github.com/kirbyt/KTPhotoBrowser

Custom shape panel/form in Flex

What I'm trying to do is to create a fancy custom-shaped login panel. It's functions and containing components should be pretty standard, just like in regular login panel - FormItem, TextInput, Validators, etc. I did some research and found that it is possible to create skins using Fireworks, however this does not solve my problem because it does not allow me to manipulate with panel shape. What would be the best way to do it?
My recommendation would be to use Degrafa framework for something like this. You could programmatically affect the skin of your component at runtime to change its shape.
Another route would be to use a simple canvas with image backgrounds that conform to your needs, but this isn't very flexible.
I would do the following:
Export the asset from Fireworks as a PNG with appropriate transparency
Embed the asset into your app and supply the appropriate Scale9 coordinates
Reference the embedded asset as the "borderSkin" style for your Panel.
Here's an example of doing this to a TitleWindow which is a subclass of Panel, so the same approach should apply:
http://butterfliesandbugs.wordpress.com/2008/02/15/using-a-border-skin-for-a-titlewindow-in-flex-3/
I'd agree with Joel, Degrafa is the way to go for total custom skins etc. Failing that (as it is an extra hurdle to figure out) I'd fudge it be using a Canvas instead of a Panel. Extend the Canvas class and make it look like whatever shape you are trying to do. Set the Canvas's background alpha to 0, then add the shapes you need. Using this approach you may well have to duplicate things that the panel can do that the Cavnas can't but you'll be able to customise the look.

Resources