[new] Multiple Media Picker with preview, drag n drop, sort. Options
imayat12
Posted: Thursday, October 25, 2007 12:44:14 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Lefteris,

This is brilliant v easy to install great functionality exactly what i was looking for. You rock:thumbup:

Regards


Ismail



Level 2 certified. If it aint broke dont fix.
mtidd
Posted: Wednesday, October 31, 2007 9:21:26 PM
Rank: Enthusiast

Joined: 10/30/2007
Posts: 17
This is a great addition to umbraco.

Would it be possible to make the data type configurable to only allow a single image to be picked?

I love the preview functionality but do not always want to allow multiple selections.

Thanks for the great data type!

Marc
bootnumlock
Posted: Friday, November 02, 2007 4:07:12 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 419
great dataType... can i suggest a feature?? it would be cool if you could assign a caption to the image while using the picker... i wonder if that is even possible.

thanks for your hard work, this is truly a great add-on :)

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
hohios
Posted: Friday, November 02, 2007 6:17:38 PM
Rank: Devotee

Joined: 7/22/2006
Posts: 69
Location: Heraklion Crete
Marc wrote:

This is a great addition to umbraco.

Would it be possible to make the data type configurable to only allow a single image to be picked?

I love the preview functionality but do not always want to allow multiple selections.

Thanks for the great data type!

Marc

Marc, that would be a different datatype. Dont know yet if I make one like this.

bob baty-barr wrote:

great dataType... can i suggest a feature?? it would be cool if you could assign a caption to the image while using the picker... i wonder if that is even possible.

thanks for your hard work, this is truly a great add-on :)

You can create a Caption (textString) field in your image MediaType and use it from there. When you upload medias, you write your caption to the apropriate field and display it whithin your xsl.

What I have in mind is to make this picker to show the path of the media in the tree.
Maybe a button "Find Path" to synchronize the selected media to the right-side tree.
I always lose myself in the tree when similar media names are set, or to find the damn media subfolder.

bootnumlock
Posted: Friday, November 02, 2007 9:34:07 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 419
@Lefteris -- doh! sorry for the dumb attack on that one... of course i could add that to the media item -- silly me!

thanks again for the great product :)

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
tkahn
Posted: Friday, November 16, 2007 11:30:16 AM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Hi!

I've been using this add-on on a couple of sites and it's really useful! However, uploading the Ext-1.1 catalog takes forever when using FTP since it's crammed with files and folders (357 files and 51 folders using roughly 1.5 Mb). Are all these files really needed or would it be possible to create a lighter version?

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
hohios
Posted: Friday, November 16, 2007 1:19:53 PM
Rank: Devotee

Joined: 7/22/2006
Posts: 69
Location: Heraklion Crete
Thomas,
unfortunatelly Ext1-1 is really needed.

I really tried to make the picker with Ext1.0 (which is in umbraco default installation) but I had problems the the Ext-Grid when I called late-bound functions.

As for the lighter version you can delete some unusable files in Ext-1.1 folder:
from /resources/css folder leave only ext-all.css file
from /resources/images folder leave only the default folder (delete aero,grey,vista folders)

That way you save youself from uploading 181 files :0

Lefteris
tkahn
Posted: Friday, November 16, 2007 2:15:51 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Hi Lefteris!

Thanks for the tip!

/Thomas

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
tkahn
Posted: Friday, November 16, 2007 2:16:09 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
Hi Lefteris!

Thanks for the tip!

/Thomas

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
hohios
Posted: Monday, November 19, 2007 8:38:01 PM
Rank: Devotee

Joined: 7/22/2006
Posts: 69
Location: Heraklion Crete
Ok, here it is...
lefMediaPicker v 0.5 is out.

Addition (as promised): New button, "Sync to Tree".
You select an image in the list, and this button finds it on the Tree Picker. Excited?
Imagine when you have tons of media folders and nodes, and want to find where the heck is your selected medias, or want to add relative medias but you cant remember where the inserted ones are...
Only problem is when "moving" media nodes around folders...
Due to refresh bug of @path attribute of nodes, the Sync Tree will not work unless you save each media again (just click save on each moved media). I have requested a fix for this bug in codeplex [WorkItem:13943]

Download at http://www.joyhost.gr/media/11331-lefmediapicker.0.5.zip
In case you are upgrading, just copy the dll to your /bin folder.

Lefteris
timgaunt
Posted: Thursday, November 22, 2007 6:18:01 PM

Rank: Aficionado

Joined: 10/31/2007
Posts: 111
Location: Birmingham (UK)
I've found an issue with it when the admin area is not under /umbraco/ -you reference /umbraco/treeInit.aspx which should be /##new admin area's name##/treeInit.aspx.

Tim

Managing Director at The Site Doctor Ltd - My personal blog is here - Umbraco Newbie ;)
timgaunt
Posted: Thursday, November 22, 2007 6:22:15 PM

Rank: Aficionado

Joined: 10/31/2007
Posts: 111
Location: Birmingham (UK)
More specifically it's within the Render() method of lefMediaPicker circa line 50:
src=\"../umbraco/treeInit.aspx?rnd=1380448545

HTH

Tim

Managing Director at The Site Doctor Ltd - My personal blog is here - Umbraco Newbie ;)
hohios
Posted: Friday, November 23, 2007 9:40:35 AM
Rank: Devotee

Joined: 7/22/2006
Posts: 69
Location: Heraklion Crete
Tim, thanx for posting this issue.

lefMediaPicker v0.6 now supports admin folder other than /umbraco/

Download at http://www.joyhost.gr/media/11334-lefmediapicker.0.6.zip

Leferis
imayat12
Posted: Friday, November 23, 2007 9:59:52 AM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Leferis,

This control has been really useful do you have plans to make a content version? Ie where you can multi pick nodes from content. I recently had to do this and i hacked the control from Christian palm. However this had no security filtering and is not as good as having the umbraco tree!

Regards

Ismial

Level 2 certified. If it aint broke dont fix.
hohios
Posted: Friday, November 23, 2007 12:14:27 PM
Rank: Devotee

Joined: 7/22/2006
Posts: 69
Location: Heraklion Crete
Yes Ismall, I do have plans for a Content version. I do also have plans for... macro parameter version for these pickers, but current macro parameter controls cannot be extended.

For the content version, I need to think what information should be displayed in the list, and other smart functions.

e.g. It would be nice to make parameters when creating the datatype, to display a "summary field", or a selected node has naviHide enabled, or on doubleClick to do something or, or...

Have you any ideas?

As this dataType is becoming popular, I have to remind Niels for the @path issue when moving nodes.

Quote:

Only problem is when "moving" media nodes around folders...
Due to refresh bug of @path attribute of nodes, the Sync Tree will not work unless you save each media again (just click save on each moved media). I have requested a fix for this bug in codeplex [WorkItem:13943]

This issue exists for content nodes also.

It would be nice to assign thos workItem to the very next release.
imayat12
Posted: Tuesday, January 22, 2008 5:58:44 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Lefteris,

This post may help with regards to macro parameters to display

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
jHodgkinson
Posted: Thursday, May 29, 2008 4:35:05 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
does this work with umbraco 3.0.5? I cannot install... I get the following error immediately after creating the DataType (never have a chance to set datatype properties):

Code:


Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   lefNodePicker.lefNodePickerPreValue.get_Configuration() +334
   lefNodePicker.lefNodePickerPreValue.OnLoad(EventArgs e) +101
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


jHodgkinson
Posted: Thursday, May 29, 2008 4:37:20 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
oops my bad - this is multiple media picker thread not multiple node picker... please ignore the previous post...
Jonas
Posted: Sunday, June 01, 2008 10:46:07 PM
Rank: Newbie

Joined: 3/8/2008
Posts: 23
Hi!

After I added the Multi Image Picker property type, my menu XSLT script doesn't work, it doesn't render the page tree structure correct now.
What impact does this property type have on the XML document?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">

<xsl:output method="xml" omit-xml-declaration="yes" />

<xsl:param name="currentPage"/>
<xsl:param name="maxDeep" select="99"/>

<!-- Don't change this, but add a 'contentPicker' element to -->
<!-- your macro with an alias named 'source' -->
<xsl:variable name="source" select="/macro/source"/>

<xsl:template match="/">

<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="umbraco.library:GetXmlNodeById($source)"/>
</xsl:call-template>

</xsl:template>

<xsl:template name="drawNodes">
<xsl:param name="parent"/>
<xsl:param name="startLevel" select="$parent/@level" />
<ul id="menu">

<xsl:attribute name="class">
<xsl:value-of select="concat('level_',$parent/@level - $startLevel)" />
</xsl:attribute>

<xsl:for-each select="$parent/node">
<li>

<xsl:choose>
<xsl:when test="@id=$currentPage/@id and count(./descendant::node) > 0">
<xsl:attribute name="class">selected</xsl:attribute>
</xsl:when>
<xsl:when test="@id=$currentPage/@id and not(count(./descendant::node) > 0)">
<xsl:attribute name="class">selected-nochild</xsl:attribute>
</xsl:when>
<xsl:when test="@id!=$currentPage/@id and not(count(./descendant::node) > 0)">
<xsl:attribute name="class">nonselected-nochild</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">nonselected</xsl:attribute>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="$currentPage/ancestor::node/@id = current()/@id">
<xsl:attribute name="class">selected</xsl:attribute>
</xsl:if>

<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>


<xsl:if test="count(./descendant::node) > 0 and (./@level - $startLevel) &lt; $maxDeep">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="."/>
<xsl:with-param name="startLevel" select="$startLevel"/>
</xsl:call-template>
</xsl:if>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>

/Jonas
Doogie Talons
Posted: Tuesday, June 03, 2008 11:23:18 AM
Rank: Enthusiast

Joined: 1/28/2008
Posts: 35
How do you assign a default media folder for the picker.

Such as if I have created a media folder called images (1023) and a media fodler called docs (1024) Is it possible to tell each media picker a folder to start in ?

Thanks

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.