Umbraco Custom Package Installation Failed - umbraco

I'm using umbraco 6.2.6 and try to package some of the umbraco cms content in my PC to the another umbraco cms in different machine. To create the package I following this tutorial http://www.uquickstart.com/umbraco-tips-and-tools/package-up-your-umbraco-website.
After I create the package then installed it to another machine, All works fine for (document type, data type, templates, etc) however my content/page is not installed by this package.
P.S. I'm sure my packages already contain the content/page
One of my colleagues say that eventually sometimes we need to included the content/page from the parent to add the content/page. For example the news is under the home sections (Home -> News), so to add the news to the other machine we need to add the home as their basic parent.. Is this true?
Or are there another way or idea to package this item then installed on another machine.. Any idea would be helpful..
Thanks

In a word, yes. You'll also need to include in your package the Document Type for your home page. Basically, in order for your content to be included in the package and successfully created, you need to also include any parent nodes so that the Content Tree remains valid.
Even if your package includes the specified content nodes, because you haven't included the parent node those nodes won't be created because the resulting content tree would be invalid.
UPDATE:
If a home node exists already and your package adds another, then you will end up with two - the new one will have a unique name and may be unpublished though.
The other problem to consider is if a Document Type already exists with the same name as one included in your package - in this case, your new Document Type won't be created, but the package should still create a node based on the existing Document Type - this is where things get messy. I haven't tried in a long time, but the package install may simply fail to create the related content node as the properties won't necessarily match up.

Related

Pentaho 5.0.1 CE Adding folder to pentaho-solutions directory

How do I get a folder to appear in the browser after adding it to \pentaho-solutions in Pentaho 5.0.1 CE. The documentation I read does not seem to work with this new version.
1. Create a new directory in /pentaho/server/biserver-ee/pentaho-solutions/.
Use underscores instead of spaces in the solution directory name. Ensure that the directory has the appropriate user
and group ownership to be writable from the BI Platform.
2. Using an XML-aware text editor (or Design Studio), create a file named index.xmlin your new solution directory.
3. Copy the following text into the index.xml file, changing the content accordingly:
***<index>
<name>Example Solution</name>
<description>This solution contains examples I created while learning to
work with action sequences.</description>
<icon></icon>
<visible>true</visible>
<display-type>icons</display-type>
</index>***
4. Save the file and close the text editor.
5. Log into the Pentaho User Console as an administrator.
6. Refresh the solution repository cache by going to the Toolsmenu, then selecting the Refreshsubmenu, then
clicking on Repository Cache.
You now have a new solution directory. It will show up in all file dialogues in the Pentaho User Console as well as the
Solution Browser in the left pane.
Every time you add or edit an action sequence to your solution directory, you must refresh the repository cache as
explained above. Each user currently logged into the Pentaho User Console must also refresh their session cache; this
is best done by re-logging into the Pentaho User Console.
I am using Pentaho design studio to develop an xaction sequence script. I followed this procedure:
1. In Design Studio, go to the Filemenu, then select New, and click on Other...in the sub-menu.
The Newwindow will appear.
2. In the Newwindow, click the triangle next to Pentaho, select New Action Sequence Wizard, then click Next.
3. In the File namefield, type hello_world.xaction.
4. Select Hello Worldfrom the Templatedrop-down box, then click Finish.
The wizard will generate the new file and bring you back to the workbench.
5. Click on HelloWorldComponentin the Process Actionssection on the left.
The right side of the screen will change to show the options available for this action: Nameand Message. The
Name field controls the name of the component in the Process Actions list on the left; it doesn't do anything else of
note. The Message field contains the text that will appear on the screen when the action sequence is run. It is prepopulated with %quote, which is a token that represents a quote message in a nonexistent properties file. Pentaho
used to provide properties files for each example, but they have been removed from the standard Pentaho Business
Analytics distribution.
6. Replace the %quotewith a sufficiently inspiring message.
Alternatively, you could create a hello_world.propertiesfile and populate it with the appropriate messages and
tokens, but that has no advantage unless you intend to internationalize this action sequence.
7. Save the file.
You now have a working action sequence that prints a short text message: "Hello, World." plus whatever you typed into
the Message field. The first part of the message is determined by a message bundle packaged with the Pentaho Web
application archive.
To test the action sequence, use the Test tab if you are on Windows or OS X, or log into the Pentaho User Console and
run it from the Solution Browser.
Running the sample xaction fails with
Sorry. We really did try.
Something went wrong. Please try again
or contact your administrator.
I figure this is because pentaho cannot locate the xaction file as specified in the file path when I generate the url from within design studio. The folder I created within the solution directory does not appear in the browser directory list despite refreshing the cache. Any help?
With Version 5 the files and folders are no longer stored in "/pentaho/server/biserver-ee/pentaho-solutions/..."
It is stored now in a jackrabbit repository.
You can create folders and upload files in the user console.
I did mistake after starting biserver 5.2. Unexpectedly i deleted Public folder after configuring to jackrabbit. Now how do i create the folder so that i can see Public and Home Folders.
Sorry for getting back to this question some time later, just in case someone searches something related to Pentaho repositories management with no success, i hope this information can help.
Just to make things more clear, i'm using version 5.2.x and i'm supposing you want to create a new folder on the root directory of Browse Files screen, something that is not allowed on Pentaho5 CE Web Console.
The answers about repository management based on JackRabbit are correct, so the old way we used to configure new "solutions" folders doesn't work anymore. From version 5 on, Pentaho exposes an interesting REST api that allows you doing things not allowed in web console.
For instance, for creating a folder in root directory you should create a http REST PUT request against Pentaho Server (using tools like curl or if you appreciate Google Chrome, something like Advanced Rest Client, etc.) using the following URL:
http://localhost:8080/pentaho/api/repo/dirs/:new_directory_name?userid=admin&password=password
Pentaho repository directory REST api is documented here:
http://javadoc.pentaho.com/bi-platform500/webservice500/resource_DirectoryResource.html
It's worthy to spend some time reading REST API the documentation.

redmine-my-widgets-plugin not working on redmine 2.3.0

The following is the repository for redmine.
https://github.com/redmine/redmine
And the following is the repository for redmine-my-widgets-plugin
if we look at the file structure app/views/my
https://github.com/redmine/redmine/tree/master/app/views/my
there is a folder blocks which contains the partial which are widgets and displayed when added from select list.
similarly for redmine-my-widgets-plugin there is similar file directory structure
https://github.com/bradbeattie/redmine-my-widgets-plugin/tree/master/app/views/my
when i install this plugin the partials mentioned in this /my/block gets added in the my page -> select list so as to be added
When we add one of the plugins select list value then it displays 404 error
By looking at the structure the plugin, it looks like the plugin is overrided.
Also there are no others config files, or lib files present in the plugin(except en.yml)
So, what can be done that the plugin will be able to atleast find those partials.
Basically, redmine is able to find the partial files as the names are displayed in the my page -> select list but when added it throws 404 error
I know, I'm rather late to the party, but maybe this answer helps somebody else in the future.
The underlying problem was already covered at this question on SO. The plugin directory needs to have the exact same name as the symbol that is passed to Redmine::Plugin.register. In the case of this plugin: redmine_my_widgets. Changing the directory name will fix the 404.
On the other hand, the plugin was not updated for a long time and it is very likely, that most, if not all of the widgets, will no longer work because of changes to Redmine's internals.

Umbraco - Incorrect alternative link to document

On our website, we have the following structure:
sitename
-Global
-English
-UK
-English
for the Global > English page, the links to the page are showing as:
Link to document
/global/en/
Alternative Links
http://english
so the 'Link to document' is correct, but the alternative link isn't. On the UK > English page, I just get the correct 'Link to document'. I've tried publishing out the whole site but I can't as it times out (I've tried increasing all the timeouts, but it's taking an hour to publish so I get a strange network error), and just re-publishing the whole 'Global' node and sub-documents doesn't fix things. Any other way to fix this? Also what is the purpose of the 'Alternative Links' and how are these determined?
as I suggested in your original post, I set up a very basic Umbraco v6.1.2 instance (using NuGet in Visual Studio) with a single doc type and an identical top-level structure to what you have described.
So:
Set umbracoUseDirectoryUrls to true in the web.config
The doc type, called "BasicPage" has a single property called "umbracoUrlName". This allows you to overwrite the path created by Umbraco based upon the title of the node. I assume you already have that in your doc type.
I set both English nodes to have a umbracoUrlName of "en".
I added two hostnames to the Root node - "localhost" and "mobile.localhost"
I published the Root node and all following nodes
As you can see, both the "Link to document" and "Alternative links" are as expected.
I suspect you may be right that trying to get the site to publish may fix the issue, so you may have to publish the site in bits, working from branch to branch.
However, I would advise creating a test Umbraco instance as I have done and then comparing what you have.
Alternatively, you can of course remove the hostname settings altogether if the entire content structure is going to be served using the same hostnames as these can simply be controlled in IIS. Umbraco doesn't actually need to know about them unless you have separate distinct sites in the same content tree.

Assigning package name after changing the folder structure

In My struts2 project, I recently changed the folder structure, The following image shows the new folder structure.
So as a consequence i need to change the package name in Struts.xml.
I am a newbie to struts 2.So please suggest me the package name that suits for the above
folder structure. I have tried out in the below format. But it did not work.
In the above snippet,i set the package name as seasar.action Because i am having all of my action classes in it.
Package names are arbitrary; you can name it whatever you want.
Packages should be named something meaningful in the context of the app. One reason for multiple packages is to allow package-level configuration, like interceptor stacks, default result types, etc.
For example, a package may be used to provide "secured" access: its default interceptor stack might include a "login required"-type interceptor. One package might encapsulate an app's REST API and set the default result type to "json". Packages are just one mechanism to aggregate functionality.
Ultimately, package naming is application-specific, invisible to the end-user, and provided as a mean for developers to logically group arbitrary functionality, purpose, or intent.

Umbraco - How to import Dictionary between Umbraco instance

We are working with Umbraco 4.5. We have different culture set in the site. for that we use Dictionary object.
We completed our development locally now we need to deploy our changes on our Production Server. We want our Local Umbraco Dictionary to be imported to Production Server with some automated process. As we have more than 1000 Keys in Umbraco Dictionary.
Thanks
You have two options:
Script the SQL changes in the cmsDictionary and cmsLanguageText tables (they are related)
Create a package (right click on Packages in the Developer section > Create). In there you will be able to choose the dictionary items you want to include. With a 1000 keys, you don't really want to do that though.
Also, the upcoming version of Courier for Umbraco should be able to alleviate trouble with content migration (any type of content).
You can use this Umbraco Package: Dictionary Dashboard
It's easy to install, you can specify in which Section of the Backend it can be seen (by default this "Dictionary" Tab is available under "Content". (Umbraco official "Dictionary" is under "Settings" and I don't like that: if the customer wants access there he will need a user with admin rights, which I don't like (can mess with other things)...).
You export your dictionary as XML, you can easily edit it (if needed), you can import it in another umbraco installation (where you must install this package of course).
It's really one of my favorite packages.
It works from Umbraco 4.7.x till 6.x (with umbraco 7 I don't know, try...)

Resources