Active topicshttp://our.umbraco.orgumbracoLatests topics from the forum on our.umbraco.orgenMember upload photo - Best practicehttp://our.umbraco.org/forum/developers/extending-umbraco/7975-Member-upload-photo---Best-practiceFri, 19 Mar 2010 20:59:45 GMThttp://our.umbraco.org/forum/developers/extending-umbraco/7975-Member-upload-photo---Best-practiceHi guys,

I am setting up membership for a site, and would like to give the members the possibility to upload one or more pictures to their profile.

What is the best practice regarding this? I have created a control that allows the members to edit their profile, but I am not sure I wish to include a Media Picker in that profile editor.

How should I approach this?

Thanks,
RasB

]]>
simple xslt choose not displayinghttp://our.umbraco.org/forum/developers/xslt/7947-simple-xslt-choose-not-displayingFri, 19 Mar 2010 03:57:21 GMThttp://our.umbraco.org/forum/developers/xslt/7947-simple-xslt-choose-not-displayingThis seems simple enough, but I can't seem to understand why this code isn't working.

<xsl:choose>
<xsl:when test="@nodeTypeAlias = 'HomePage'">
<li class="menu-gap">&nbsp;</li>
</xsl:when>
<xsl:otherwise>
<li class="menu-gap"><a href="/">home</a></li>
</xsl:otherwise>
</xsl:choose>

when I'm on the homepage doc type, it is displaying the code in otherwise. What am I missing?

]]>
How do I use <umbraco:item> to get the "id" of a content node (or other node level attributes)?http://our.umbraco.org/forum/templating/templates-and-document-types/7938-How-do-I-use-umbracoitem-to-get-the-id-of-a-content-node--(or-other-node-level-attributes)Thu, 18 Mar 2010 14:55:21 GMThttp://our.umbraco.org/forum/templating/templates-and-document-types/7938-How-do-I-use-umbracoitem-to-get-the-id-of-a-content-node--(or-other-node-level-attributes)I am trying to get the "id" of a node in a Master Page template.  I was thinking I could use:

<umbraco:Item runat="server"  field="id" />

How do I get these node level attributes for use on a Master Page without using a macro?

 

]]>
[UPDATE] Fix to caching bug in 2.0.1http://our.umbraco.org/projects/imagegen/imagegen-bugs/2982-[UPDATE]-Fix-to-caching-bug-in-201Thu, 16 Jul 2009 15:40:41 GMThttp://our.umbraco.org/projects/imagegen/imagegen-bugs/2982-[UPDATE]-Fix-to-caching-bug-in-201ImageGen 2.0.1 has a bug in the caching system that may allow the 'cached' folders to grow and grow, wasting disk space and slowing site performance.

I'm working on ImageGen 3 and the updated version has a number of fixes, including the important 'caching bug.' I don't want to wait to get this into users hands.

NOTE
If you use the ?text= parameter you may notice some small changes to the appearance of text images, as that area has seen a lot of work. If you do use ?text= you'll want to compare the images created by this updated version; you might need to modify your macros or css slightly to accommodate the changes in text handling. Otherwise, the update is fully backward compatible.

TO UPDATE IMAGEGEN
0. install ImageGen 2.0.1 normally
1. download and expand the updated .zip file from ImageGen.2.2.1.38932.zip
2. replace /bin/imagegen.dll
3. replace /umbraco/imagegen.ashx
4. delete all folders named 'cached' on your site

cheers,
doug.

]]>
Dictionary problem - duplicate entryhttp://our.umbraco.org/forum/ourumb-dev-forum/bugs/7974-Dictionary-problem---duplicate-entryFri, 19 Mar 2010 19:34:24 GMThttp://our.umbraco.org/forum/ourumb-dev-forum/bugs/7974-Dictionary-problem---duplicate-entryI'm not sure how we got into this state (our client could have edited the Dictionary, but it seems like they should not have been able to do so in a way that leads to an invalid state), but we had a duplicate entry in the Dictionary.We got an exception on the public pages where we were trying to access any Dictionary item and also in the admin where the dictionary items can be edited and created.

The following code gets called by umbraco.cms.businesslogic.Dictionary:

IRecordsReader dr =
SqlHelper.ExecuteReader("Select id, [key] from cmsDictionary");

while (dr.Read())
{
Guid tmp = dr.GetGuid("id");
string key = dr.GetString("key");
DictionaryItems.Add(key, tmp);
}
dr.Close();
cacheIsEnsured = true;

There were 2 records in cmsDictionary with the same key, so it makes sense that the exception (see below) was getting thrown. But is umbraco supposed to prevent dictionary items with the same name from being added? If so, how did this happen? If not, is there a bug that occurs when this happens? Has anyone else run into this problem? Not sure the proper protocol - should I open a case in Codeplex or should one post to this forum first?

Umbraco Version: 4.0.2.1
ASP.NET: 3.5
Windows 2003/IIS 6

Exception message: Item has already been added. Key in dictionary: 'Test'  Key being added: 'Test' 


Stack trace: at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at umbraco.cms.businesslogic.Dictionary.ensureCache()
at umbraco.cms.businesslogic.Dictionary.DictionaryItem..ctor(String key)
at umbraco.cms.businesslogic.Dictionary.get_getTopMostItems()
at umbraco.presentation.settings.DictionaryItemList..ctor()
at ASP.umbraco_settings_dictionaryitemlist_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\f0cfcf82\31793b9d\App_Web_dictionaryitemlist.aspx.a5729980.3lugigio.0.cs:line 0
at __ASP.FastObjectFactory_app_web_dictionaryitemlist_aspx_a5729980_3lugigio.Create_ASP_umbraco_settings_dictionaryitemlist_aspx() in c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\f0cfcf82\31793b9d\App_Web_dictionaryitemlist.aspx.a5729980.3lugigio.1.cs:line 0
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



]]>
Modifying content tree renderinghttp://our.umbraco.org/forum/developers/extending-umbraco/7959-Modifying-content-tree-renderingFri, 19 Mar 2010 11:58:41 GMThttp://our.umbraco.org/forum/developers/extending-umbraco/7959-Modifying-content-tree-renderingIm trying to figure out if it's possible to add a different way to render subnodes in the existing content tree. What I want to achive is a dynamic rendering of content just like datefolders or firstletter folders (Tim Geyssen Packages).

Big difference is that I only want to display the nodes in different ways, not rearranging them physically.

First I tried this:

public MyEvent() {
umbraco.cms.presentation.Trees.BaseTree.BeforeNodeRender += new umbraco.cms.presentation.Trees.BaseTree.BeforeNodeRenderEventHandler(BaseTree_BeforeNodeRender);
}

void BaseTree_BeforeNodeRender(ref umbraco.cms.presentation.Trees.XmlTree sender, ref umbraco.cms.presentation.Trees.XmlTreeNode node, EventArgs e)
{
// find the children of node, add subnodes to tree and be happy?
// but node contains no childcollection and sender contains only siblings?
}
}

 

... but neither sender nor node contains any ways to access the childnodes?

Can this be done? Another event? Or can I access the source xml tree before rendering starts?

Thx

Jesper Ordrup

 

]]>
Member.GetCurrentMember() in /basehttp://our.umbraco.org/forum/developers/api-questions/7973-MemberGetCurrentMember()-in-baseFri, 19 Mar 2010 18:52:09 GMThttp://our.umbraco.org/forum/developers/api-questions/7973-MemberGetCurrentMember()-in-baseHi - 

I'm having problems with GetCurrentMember() in /base - having run debugger, it seems that the HttpContext.Current.User is null even when my user is logged in.

Should this function work, or is the User part of the context loaded after the requestModules fire?  I've also tried logging in the member via base, and this has the same issue?

Any suggestions?

Thanks, 

Chris

]]>
blog4umbraco - blog creatorhttp://our.umbraco.org/forum/developers/extending-umbraco/7972-blog4umbraco---blog-creatorFri, 19 Mar 2010 18:06:23 GMThttp://our.umbraco.org/forum/developers/extending-umbraco/7972-blog4umbraco---blog-creatorI've installed blog4umbraco but in place of the blog post creator on the content homepage it says:

To activate the blog post creator, you need to have access to at least one blog

Any ideas why? I created the blog myself and can add posts to it fine.

Thanks

Dan

]]>
User Loginhttp://our.umbraco.org/forum/core/general/7968-User-LoginFri, 19 Mar 2010 15:33:37 GMThttp://our.umbraco.org/forum/core/general/7968-User-LoginHi,

Just thought I'd raise this issue, its a very low priority bug however its good to reconise it and discus.

All the best, Laurie

]]>
DropDowns in Document Typehttp://our.umbraco.org/forum/using/ui-questions/7970-DropDowns-in-Document-TypeFri, 19 Mar 2010 16:56:08 GMThttp://our.umbraco.org/forum/using/ui-questions/7970-DropDowns-in-Document-TypeHi this is probably a very simple question and probably so easy i cant find the answer on the forums. This is my first umbraco site build. I'm trying to create a document type that has a drop down list with four options but when i go to generic properties on document types, add a drop-down property i dont know then how to add options to the drop down?

 

Regards

Phil

]]>