The document preview widget AlfDocumentPreview is used on Alfreso faceted search page.
I want preview document on document list page.
What is the best way to achieve this ?
Is it possible to use this widget in a webscript that i can call from document library page and display the result on popup ?
Edit : There may be another way to display preview popup without using AlfDocumentPreview widget ?
I'm using Alfresco 5.0.d version
thank you
Related
Alfresco simple search field searches on document content and folders as default.
Because I'm thinking of using a tag taxonomy I would like to default the simple search field to only search on tags without using the "TAG:" prefix and exclude content and folders. Content and folders can stay as a search option in Advanced search.
The default query looks like this:
cm:name cm:title cm:description my:authorisedBy
ia:whatEvent ia:descriptionEvent lnk:title
lnk:description TEXT TAG
Can anyone give me an idea how this query can be modified only to search on tags?
I'm going to assume that by "simple search" you're referring to the search box in the header bar displayed in Share. This is rendered by the Aikau widget alfresco/header/SearchBox and provides a number of options for customizations.
I think that your best option is going to be to extend the default widget with your own version and override the generateSearchTerm function. This will allow you to take the term provided (e.g. whatever the user has entered into the search box) and manipulate it with the additional advanced search text before it is used in calls to the search REST APIs.
This old blog post provides and example of extending a widget, however you should use the approach outlined in this blog post to add your custom package (rather than editing surf.xml directly)
I have add some dashboard pages to my conrete5 install. One of pages has a form that needs allows the user to upload an image. Are there any libraries for uploaded images of shall I do it in native PHP? I found this in the documentation but I don't think its what I want.
I thought I'd ask before I started and to see if anyone else has done anything like this before
I would recommend making use of the built-in Asset Library helper. This will add a field to your form that allows the user to access all of the images in your site's File Manager, and upload a new image if necessary. Here's the relevant page in the concrete5 documentation.
Let's say you wanted to add a field to your form called "photo". Here's an example of what you would add to the part of your dashboard page's view where the form is rendered:
$al = Loader::helper(‘concrete/asset_library’);
$al->image('photo', 'photo', 'Select a photo', $photo);
In this case, $photo is used to represent the currently-selected image, if known.
I would like to understand how does instagram show large image thumbnails, with each thumbnail having individual actions such as Like and comment. Is it possible to do via the Open Graph API or is this due to Instagram being a property of Facebook?
The custom action and objects API does not seem to allow such a layout. An example is shown below
This is supported by the API via the user generated photos functionality:
https://developers.facebook.com/docs/opengraph/usergeneratedphotos/
has the docs, and you need special approval for your actions
You add the following parameters to your existing publish calls:
image[0][url]=<URL TO IMAGE>
image[0][user_generated]=true
image[1]... etc
{edit:} Actually, i'm not sure how to render that aggregated unit - my answer above is for the photos functionality itself
I'm trying to create a dynamic video gallery using drupal's "Embedded Media Field"; works fine for now i'm able to add my youtube videos which displays correctly.
However, i'm looking for a way to change the title of the node (of type video, with one cck field of type : "Embedded Video") i tried 'node autotitle' but I don't see the video's 'title' in the available tokens.
To sum up; I want to be able to just put the link of youtube video and get the node title to be replaced by the youtube's actual title.
Any idea ? Or is there a better module for this ?
There's a very similar request on drupal.org in the Video Embed Field module issue queue. They don't have an answer, but it'd be a good place to start. I use this module (instead of Embedded Media Field) and I've confirmed that it saves a chunk of metadata regarding the video in the Drupal database, so this technically should be possible.
I have to add generate pdf links in the view how to that...
When the user clicks on the generate pdf links pdf should be generated which contains the content information of that node...
I think what you need is to install the print module and enable the printing. You'll then notice a link structure for Print. I think its different in 5.x than it is in 6.x but basically you'll end up with a link like http://example.com/print/pdf/530 (or similar) to print node 530. So for your Views 2.x you can add a field that outputs a link, which you can then use print/pdf/[nid]. To get nid, I believe you'll need to add a "relationship" to the View which stores the nid.
Place this code in header or footer of views as php code:
<?php
print print_pdf_insert_link();
?>
You may forget VBO and add the NID field and make it a link to printpdf/[Nid] (target _blank).
You can even replace the output by the PDF icon, using an img html tag, like this:
<img src="/modules/acquia/print/icons/pdf_icon.gif">
or any other path to a PDF mimetype icon.
I know we're 2 years later but the Views PDF module is perfect for this. Some details about it (from its project page):
With this module you can output a view as a PDF document. Each field of the view can be placed on the PDF page directly in the administration interface. Therefore a new display called "PDF" is added.
If you use "Row Style: Node" in your view and you have the pdf option of the print module on then the pdf link will appear in your view. If the default Node view doesn't work for you, you can tweak it using the Content Template module (http://drupal.org/project/contemplate).
Beyond that I think it would take a custom module.
To create a printable PDF from a node, I would check out the Print module. Some details about it (from its project page):
This module allows you to generate the following printer-friendly versions of any node:
Printer-friendly version (webpage format) (at www.example.com/print/nid)
PDF version (at www.example.com/printpdf/nid)
EPUB version (at www.example.com/printepub/nid)
Send by email (at www.example.com/printmail/nid)
where nid is the node id of content to render.