Showing posts with label Umbraco. Show all posts
Showing posts with label Umbraco. Show all posts

Friday, February 11, 2011

Ghost node solve the crawling problem

 

Finally After solve the ghost node, My crawling search start working again.

This query safe my time.


SELECT * FROM umbracoNode, 
WHERE
nodeObjectType = 'C66BA18E-EAF3-4CFF-8A22-41B16D66A972' -- that are of type 'Content'
AND
umbracoNode.id NOT IN (SELECT nodeId FROM cmsContent) -- but are not in the 'Content' table

Fix for No Document exists with Version '00000000-0000-0000-0000-000000000000' when sorting

 

 

Finally I found what may cause the problem.

It’s because I installed runway sitemap and in some reason, it create a ghost node

http://our.umbraco.org/forum/getting-started/questions-about-runway-and-modules/10685-No-Document-exists-with-Version-%2700000000-0000-0000-0000-000000000000%27?p=0#comment40259

Do a select first to check


select * FROM umbracoNode
WHERE
umbracoNode.nodeObjectType = 'C66BA18E-EAF3-4CFF-8A22-41B16D66A972' -- that are of type 'Content'
AND
umbracoNode.id NOT IN (SELECT nodeId FROM cmsContent) -- but are not in the 'Content' table

===

and delete that node.


Delete FROM umbracoNode
WHERE
umbracoNode.nodeObjectType = 'C66BA18E-EAF3-4CFF-8A22-41B16D66A972' -- that are of type 'Content'
AND
umbracoNode.id NOT IN (SELECT nodeId FROM cmsContent) -- but are not in the 'Content' table

Tuesday, November 16, 2010

Umbraco Consistency– (Jtree)

 

Today, Finally what happen on my Custom Tree State.
In some reason when in my custom tree, It forget about their state.

And After couple hours, I notice that it’s because I use Pascal Case on my application name. 

In some Umbraco.Tree it store the the state using lowercase whatever appname in database but when i loaded it used whatever the name in database.

Here is the screenshot

shiftApp: function (whichApp, appName) {
89 /// <summary>Changes the application</summary>
90
91 this._debug("shiftApp: " + whichApp + ", " + appName);
92
93 UmbClientMgr.mainTree().saveTreeState(this._currApp == "" ? "content" : this._currApp);
94
95 this._currApp = whichApp.toLowerCase();
96
97 if (this._currApp != 'media' && this._currApp != 'content' && this._currApp != 'member') {
98 jQuery("#buttonCreate").attr("disabled", "true");
99





The reason why I use Pascal Case instead of Camel Case because in .NET  I Store the appAlias and TreeAlias in Enum, So It seems good if I use Pascal Case for consistency.



I guess I need to put it back to Camel Case, otherwise I need to change UmbracoApplicationActions.js for this to work

Monday, November 01, 2010

Umbraco New Section Part 1

 

Here is the list of note for creating a custom section in Umbraco

Update Client Name

Change Umbraco/umbraco.aspx title

clip_image002

Change umbraco_client/application/umbracoApplicationAction.js

clip_image004

CUSTOM SECTION in UMBRACO

Creating Custom Section

(Icon)

- Update tray sprite icon image /umbraco/images/tray/traySprites.png
To Add a new icon, just insert 72 pixel of an icon

- Update CSS /umbraco/css/umbracoGui.css

/* CUSTOM TRAY */

.trayinventory{background-position: -18px -594px;}

/* END CUSTOM TRAY*/

Add Images for tree item

umbraco\images\umbraco\custom

(Database)

Add row in UmbracoApp

- Inventory

clip_image006

Add row in umbracoAppTree (to set up the tree)

clip_image008

Add User App Permission

clip_image010

need to setup the language so it will say Inventory instead of [Inventory]

Change umbraco/config/lang/en.xml
<area alias="sections">

<!-- Custom section -->

<key alias="inventory">Inventory</key>

<!-- End Custom Section-->

</area>

Fix undefined in the title ? (need to refresh javascript)

Add a task
Edit umbraco/config/create/ui.xml

<!-- CUSTOM SECTION -->

<nodeType alias="inventoryProduct">

<header>Product</header>

<usercontrol>/create/simple.ascx</usercontrol>

<tasks>

<create assembly="umbraco" type="userTasks" />

<delete assembly="umbraco" type="userTasks" />

</tasks>

</nodeType>

<nodeType alias="inventoryProductCategory">

<header>Product Category</header>

<usercontrol>/create/simple.ascx</usercontrol>

<tasks>

<create assembly="umbraco" type="userTasks" />

<delete assembly="umbraco" type="userTasks" />

</tasks>

</nodeType>

<!-- END CUSTOM SECTION -->

Friday, October 29, 2010

Journey with Umbraco

 

This month, I start my journey with umbraco.
My first impression that this CMS framework is very cool.
You pretty much can do anything and extend whatever you need.

My objective before this end of this year is to build a very super supreme website with umbraco. Let see how it goes and hopefully I have enough time too.

-KK-