Not so much, as I wanted to finish off the Google Analytics package first. But as it is taking a little longer then expected I just go ahead and update this package as well. I will try and get it done over the weekend, and will post an update as soon as I have something ready.
I got the package working with 4.5, but ran into a problem when using the TinyMCE DataType (and only this DataType). So after diggin through the Umbraco source I finally got it figured out. It seems the problem is that a check has been introduced for Document objects to ensure that the Document has a version when loading it up, which is fair enough except that I use the Content object to store the Standard Values in the DB so it doesn't show up as a Document in the content section, and when you use the TinyMCE control it sets up a page object that loads a Document object and here comes trouble because its a Content object, which results in a Document object without versions :-S
So now I have started to rewrite the package, so the TinyMCE and Document versus Content object won't be a problem. I'm going to move the standard values out of the DB, so they don't take up unnecessary space and will thus be easier to handle and remove. Altogether it'll be a better solution, but it will also take me some extra time to release.
I will update this thread with news on the update.
But just so you know I have made some nice progress in rewritten my standard values package, and hope to have it ready next week if I don't encounter any major setbacks. The good thing about this rewrite is that its abstracted from the Umbraco DB, so all of the standard values are stored in an xml file and therefore won't take up space in the Umbraco db.
The standard values package has now been updated to work with Umbraco 4.5.x. I tried alot of things that didn't work, but now its working of the db like the original version. One thing that you should note is that the TinyMCE datatype is rendered as a Multiline Textbox, because it can't be rendered without a Document object. Everything will work as normal when you create document with standard values in them, so its only in the Standard Values section that you'll see a multiline textbox instead of a richtext box.
Please note I have tested all standard datatypes with this package (v.1.3) and Umbraco 4.5.1, and tested that the package works with Umbraco 4.5.2. I have not yet tested with Umbraco running on the .NET 4.0 framework, so if you want to help me continue testing please let me know.
I have been using this package with the previous versions and I really like it.
I am using Umbraco 4.5.2 so I installed the 1.3 version of Standard Values. The package contains only the dll and the install.ascx files. Since it was requesting for the rest of the ascx files, I added them and the config file. However, I get a "Object reference not set to an instance of an object" error at the EditStandardValue.OnInit function.
Sorry to bug you with this, but could you let me know when you upload the 1.3 version? I really need to use it soon, if possible. A normal zip with the files would be good also, I know where they all go.
@Mirela You have an email I can send the files to?
@Tristan I removed the package which is comp. with the 4.5 schema, because it was missing some files. I will add a new pacakge tonight - sorry for the trouble.
I will update this thread when the package is updated later today.
When I try to install this package (From the direct link you provided, the Umbraco package repository or the project page; doesn't matter), I get the message:
"An error occured: The english language file was not updated"
(and then the package doesn't work).
I'm not having problems with other packages. I'm using Umbraco v. 4.5.2 on ASP.NET 3.5.
Thats a bit odd. Never heard of such error before. Can you please check this file and whether your application pool identity has write access to the file:
The Application Pool is using the NetworkService identity ("NETWORK SERVICE" user), "NETWORK SERVICE" has "Full control" over the folder (recursive) with the Umbraco installation; including "(...)\umbraco\config\lang\en.xml" and that file isn't read-only either. (I checked the entire folder tree ("(...)\umbraco\", "(...)\umbraco\config\" and "(...)\umbraco\config\lang\" and the ""(...)\umbraco\config\lang\en.xml" file just to be sure, all "Full control", none read-only.)
I'm using the default language (English) in the backend.
----------(trying again...)-------
Oh, now it works after another reinstallation, though I still get the error message, so that is still strange.
@Morten - the package is working for me now; despite the fact that I still got the same error message when I installed it. (So it still gave the same error message, even though the package installed succesfully.)
Ah I figured out how I got it working (still with the error message); (for me) it works when after installing you logout en login again as admin. Or if you rebuild your Visual Studio project. If you get this error message and then try to use the package before doing one of these two things (go to Settings->Standard Values->Some document type) you get an empty page. After you do one of those two things it works.
Thanks Tristan - I was having exactly the same problems with 4.5.2, on IIS7, network service app pool, full trust, local machine, .NET 3.5.
The language file couldn't be updated error, then none of the data types were appearing when I was clicking on the document type, logging out and back into Umbraco fixed this, all the fields showing up correctly.
I first had a few issues, since it said latest version 1.3 and then when I was clicking the download at the top of the page, it was downloading version 1.2 - not a package thing, but still.
I think I am having a similar error to Ian's above. I installed standard values 1.3 on an Umbraco 4.5.2 installation. I got the updating language file error and the standard values section is not showing up at all in the settings section.
I did initialy install the version 1.2 by accident. could this have affected the installation?
I got this working in the end, try uninstalling the package - (double check it's uninstalled - sometimes I find I have to do it twice for some packages) then reinstall 1.3, that was the problem I had, the latest version worked in the end..
Thanks, I tried uninstalling and re-installing no luck though, it isnt even appearing in the settings section. I have looked at the DB and there is a table installed called dbo.cms.standardValues
The dbo.cms.standardValues table that you are seeing is just a container for the Standard Value Document Types that you would normally see under settings. And the application entries are the same for the old version 1.2 and the newest version, so if the Standard Values 'folder' isn't showing up under the settings section please refer to the umbracoAppTree table to see if there is an entry for a Standard Values app.
4.5 version
Hi Morten, any plans on updating this to work with 4.5?
Love the package so much it keeps me on 4.0.x :-)
Yes, it is on my todo list.
The Google Analytics package has 1st priority though, but I will most definitely upgrade this package as well.
I will keep you posted and of course update the project page when its ready.
Thanks,
Morten
Is there any movement on this? Would like to keep using, but want to upgrade to 4.5.
Not so much, as I wanted to finish off the Google Analytics package first. But as it is taking a little longer then expected I just go ahead and update this package as well. I will try and get it done over the weekend, and will post an update as soon as I have something ready.
Thanks,
Morten
Thanks for the update, your work is very appreciated.
Any updates on this package? Basically, the only reason we haven't upgraded to v4.5.1 is the fact that the Standard Values package doesn't yet exist.
Hi Chad,
Well ... plan your upgrades for next week because i'm going to finish the package this weekend ;)
I almost had it done wednesday, but didn't have to finish. Just need to correct the Tree and package it up.
- Morten
PS: Remember to vote up the package :-D
Thought I'd better give an update on the package!
I got the package working with 4.5, but ran into a problem when using the TinyMCE DataType (and only this DataType). So after diggin through the Umbraco source I finally got it figured out. It seems the problem is that a check has been introduced for Document objects to ensure that the Document has a version when loading it up, which is fair enough except that I use the Content object to store the Standard Values in the DB so it doesn't show up as a Document in the content section, and when you use the TinyMCE control it sets up a page object that loads a Document object and here comes trouble because its a Content object, which results in a Document object without versions :-S
So now I have started to rewrite the package, so the TinyMCE and Document versus Content object won't be a problem. I'm going to move the standard values out of the DB, so they don't take up unnecessary space and will thus be easier to handle and remove. Altogether it'll be a better solution, but it will also take me some extra time to release.
I will update this thread with news on the update.
Thanks,
- Morten
Has anyone found a substitute for this package or work around?
I think this is the closest you'll come to an alternative at the moment:
http://our.umbraco.org/projects/developer-tools/default-values-for-umbraco
But just so you know I have made some nice progress in rewritten my standard values package, and hope to have it ready next week if I don't encounter any major setbacks. The good thing about this rewrite is that its abstracted from the Umbraco DB, so all of the standard values are stored in an xml file and therefore won't take up space in the Umbraco db.
- Morten
Hi All,
The standard values package has now been updated to work with Umbraco 4.5.x. I tried alot of things that didn't work, but now its working of the db like the original version. One thing that you should note is that the TinyMCE datatype is rendered as a Multiline Textbox, because it can't be rendered without a Document object. Everything will work as normal when you create document with standard values in them, so its only in the Standard Values section that you'll see a multiline textbox instead of a richtext box.
Go get it while its hot:
http://our.umbraco.org/projects/developer-tools/standard-values-in-umbraco
Please note I have tested all standard datatypes with this package (v.1.3) and Umbraco 4.5.1, and tested that the package works with Umbraco 4.5.2. I have not yet tested with Umbraco running on the .NET 4.0 framework, so if you want to help me continue testing please let me know.
Thanks,
- Morten
Hi,
I have been using this package with the previous versions and I really like it.
I am using Umbraco 4.5.2 so I installed the 1.3 version of Standard Values. The package contains only the dll and the install.ascx files. Since it was requesting for the rest of the ascx files, I added them and the config file. However, I get a "Object reference not set to an instance of an object" error at the EditStandardValue.OnInit function.
Did the ascx files changed also for 4.5?
Thanks,
Mirela
Doh! No, it looks like I didn't include all files, as there should be 3 usercontrols including the install.ascx.
They have been changed, so you can't use the old ones.
Sorry about that. I will create a new package.
Thanks,
Morten
Hi Morten,
Sorry to bug you with this, but could you let me know when you upload the 1.3 version? I really need to use it soon, if possible. A normal zip with the files would be good also, I know where they all go.
Mirela.
(message removed)
@Mirela You have an email I can send the files to?
@Tristan I removed the package which is comp. with the 4.5 schema, because it was missing some files. I will add a new pacakge tonight - sorry for the trouble.
I will update this thread when the package is updated later today.
- Morten
Deleted post text.
New package for Umbraco 4.5.x uploaded - get it from the project page or use this direct link: http://our.umbraco.org/FileDownload?id=1354
Sorry for the mix up with the first package.
Let me know if you run into any problems or have suggestions.
Thanks,
Morten
Thank you for the update. I've installed it already and it works fine.
Mirela.
@Morten:
When I try to install this package (From the direct link you provided, the Umbraco package repository or the project page; doesn't matter), I get the message:
"An error occured: The english language file was not updated"
(and then the package doesn't work).
I'm not having problems with other packages. I'm using Umbraco v. 4.5.2 on ASP.NET 3.5.
@Tristan
Thats a bit odd. Never heard of such error before. Can you please check this file and whether your application pool identity has write access to the file:
wwwroot\umbraco\config\lang\en.xml
btw: what language are you using in the backend?
- Morten
(removed)
Hi Morten,
The Application Pool is using the NetworkService identity ("NETWORK SERVICE" user), "NETWORK SERVICE" has "Full control" over the folder (recursive) with the Umbraco installation; including "(...)\umbraco\config\lang\en.xml" and that file isn't read-only either. (I checked the entire folder tree ("(...)\umbraco\", "(...)\umbraco\config\" and "(...)\umbraco\config\lang\" and the ""(...)\umbraco\config\lang\en.xml" file just to be sure, all "Full control", none read-only.)
I'm using the default language (English) in the backend.
----------(trying again...)-------
Oh, now it works after another reinstallation, though I still get the error message, so that is still strange.
-Tristan
@Tristan
Okay, so is the package actually working now or still the same error when installing?
- Morten
Morten Christensen do you how to get the contact us page working to send email to my gmail account
Hi Morten,
First of all, great package. it's in my must-installed list when implementing umbraco web site.
IIS7+ windows7 + sql 2008 R2 + umbraco 4.5.2
I got the same error message as Tristan did.
I have checked permission, the app pool identity has full control over the umbraco\config\lang\en.xml. and en is my default language.
can you let me know what kind of key values should I add under which area in the en.xml?
Thanks
Best regards,
Stone Yen
Hi Stone,
The package will or should work without the language key, but the action would just show up as [createnewkey] insted of Create New Key.
But if you open up the en.xml file, look for the area called actions and add a new entry with key=createnewkey and value=Create New Key.
Area:
<area alias="actions">
new key to add:
<key alias="createnewkey">Create New Key</key>
Let me know if works,
Morten
@Morten - the package is working for me now; despite the fact that I still got the same error message when I installed it. (So it still gave the same error message, even though the package installed succesfully.)
@Tristan okay, still a strange issue that I'll have to investigate. Did you also install in English umbraco version 4.5.2 ?
- Morten
@Morten - Yes, that is the version we are using.
Ah I figured out how I got it working (still with the error message); (for me) it works when after installing you logout en login again as admin. Or if you rebuild your Visual Studio project. If you get this error message and then try to use the package before doing one of these two things (go to Settings->Standard Values->Some document type) you get an empty page. After you do one of those two things it works.
-Tristan
Thanks Tristan - I was having exactly the same problems with 4.5.2, on IIS7, network service app pool, full trust, local machine, .NET 3.5.
The language file couldn't be updated error, then none of the data types were appearing when I was clicking on the document type, logging out and back into Umbraco fixed this, all the fields showing up correctly.
I first had a few issues, since it said latest version 1.3 and then when I was clicking the download at the top of the page, it was downloading version 1.2 - not a package thing, but still.
Great work Morten :-)
Hi Morten,
I think I am having a similar error to Ian's above. I installed standard values 1.3 on an Umbraco 4.5.2 installation. I got the updating language file error and the standard values section is not showing up at all in the settings section.
I did initialy install the version 1.2 by accident. could this have affected the installation?
Any help would be greatly appreciated.
L
I got this working in the end, try uninstalling the package - (double check it's uninstalled - sometimes I find I have to do it twice for some packages) then reinstall 1.3, that was the problem I had, the latest version worked in the end..
Hi Ian,
Thanks, I tried uninstalling and re-installing no luck though, it isnt even appearing in the settings section. I have looked at the DB and there is a table installed called dbo.cms.standardValues
L
Okay, I looked at the Apptree folder and the standard values hadnt been added to the table so I downloaded the source code and re-ran the insert query
INSERT INTO umbracoAppTree ([appAlias], [treeAlias], [treeSilent], [treeInitialize], [treeSortOrder], [treeTitle], [treeIconClosed], [treeIconOpen], [treeHandlerAssembly], [treeHandlerType]) VALUES (N'settings', N'standardValues', 0, 1, 7, N'Standard Values', N'.sprTreeFolder', N'.sprTreeFolder_o', N'Sitereactor.StandardValues', N'Trees.LoadStandardValues')
Then touched the web config and hey presto it has appeared and has all the doc types are there!
Thanks for your help Ian.
L
Hi Lachlann,
The dbo.cms.standardValues table that you are seeing is just a container for the Standard Value Document Types that you would normally see under settings. And the application entries are the same for the old version 1.2 and the newest version, so if the Standard Values 'folder' isn't showing up under the settings section please refer to the umbracoAppTree table to see if there is an entry for a Standard Values app.
Let me know what you find.
- Morten
Thanks Morten
Think we must have posted at the same time :)
L
Hi Lachlann,
guess I wasn't fast enough :) But glad to see you found a solution for getting it up and running.
Think I'll just go ahead and remove version 1.2 as it seems to be causing trouble and confusion.
- Morten
is working on a reply...