Icon pack? Options
SoerenS
Posted: Tuesday, February 27, 2007 4:25:01 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
I need to create an icon for a new section plugin that I'm working on, and I want to keep the same style as the other section icons.

Is there an "icon pack" or something like that out there? Or has the existing icons been inspired by something that I can "borrow" icons/styles from?

Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
warren
Posted: Tuesday, February 27, 2007 4:29:57 PM

Rank: Addict

Joined: 7/19/2006
Posts: 820
Location: Benfleet, Essex, UK
Hello,
Bit sidetracked, but I would like know how you created your new section if at all possible.

Thanks,
Warren

Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
SoerenS
Posted: Tuesday, February 27, 2007 4:33:27 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
Haven't done it yet, but I'm looking into it :-)

Per pointed me to an article of his on how to add to the tree of an existing section:
http://objects.dk/2006/9/18/adding-your-own-applications-to-umbraco.aspx

But after thinking about it I decided that I needed to look into creating my own section so I can control access to it.

...But one of THE most important aspects of creating your own section is having a cool icon for it, and that's the phase I'm in right now in my little project :-)

Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
warren
Posted: Tuesday, February 27, 2007 4:39:04 PM

Rank: Addict

Joined: 7/19/2006
Posts: 820
Location: Benfleet, Essex, UK
I have read that article too, let me know how you get on with your progress.

I am no coding expert and need complicated things like this, made simple as possible. Plus I am using Visual Web Developer 2005 Express so I cannot compile code and use code behind files, which made me stop looking into this for the time being.

Warren

Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
SoerenS
Posted: Tuesday, February 27, 2007 11:09:42 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
Ulriksen
Posted: Wednesday, February 28, 2007 1:27:56 PM
Rank: Devotee

Joined: 9/12/2006
Posts: 38
Warren, as I've spent some time on this please do not hesitate to ask questions. I'm currently building a package which will be used for initial installations for our customers.

I've used a mix of the wiki site and rssFeed/utilities projects when I was looking into this.

In order to create a new section you need to add a row to the UmbracoApp table.

Something like this

Code:

INSERT INTO [umbracoApp]
           ([sortOrder]
           ,[appAlias]
           ,[appIcon]
           ,[appName]
           )
     VALUES
           (99
           ,'mySection'
           ,'myIcon.gif'
           ,'My Section'
           )


To add the first level treenodes I add a line to the umbracoAppTree table
Code:

NSERT INTO [umbracoAppTree]
           ([treeSilent]
           ,[treeInitialize]
           ,[treeSortOrder]
           ,[appAlias]
           ,[treeAlias]
           ,[treeTitle]
           ,[treeIconClosed]
           ,[treeIconOpen]
           ,[treeHandlerAssembly]
           ,[treeHandlerType])
     VALUES
           (0
           ,1
           ,0
           ,'mySecion'
           ,'helloWorld'
           ,'Hello World'
           ,'folder.gif'
           ,'folder_o.gif'
           ,'umbracoMySectionDll'
           ,'myClass.MyMethod')



The second level tree nodes are created by the umbracoMySectionDll which has a a class called myClass and a method called MyMethod. The MyMethod must implements the umbraco.interfaces.ITree interface. If you do not have access to Visual Studio 2005 you can use Sharp Develop which is an open source C# IDE. You can download it here http://www.icsharpcode.net/OpenSource/SD/Download/.

The SQL scripts are executed by the user control called when adding the package. I also recommend that during installation you check that the the tree and app entries doest not exsist in the tables before adding them, just incase someone tries the import twice. I suggest that you create an undo/uninstall sql script from the beginning as this will help you test the installtion with less hassle, besides this will also help you creating an uninstall function.


Good luck,
Harald Schult Ulriksen.
warren
Posted: Wednesday, February 28, 2007 1:44:58 PM

Rank: Addict

Joined: 7/19/2006
Posts: 820
Location: Benfleet, Essex, UK
Hello Harald,
Thank you for your response. Is is possible to send over an example in VB.NET please, as I don't understand C# yet?

My email is as follows.
warren at creative web specialist dot co dot uk

What I would like to achieve is a new section that reads text based log files from the file structure off the server. Similar to how per has done his javascript editor addon.
http://objects.dk/2006/9/18/adding-your-own-applications-to-umbraco.aspx

Here is an example of the structure

Logs
February 2007
1st February
2nd February
...
March 2007
1st March
2nd march
...
...

Clicking on an item say 1st February would load in the text for the 1st February log file on the right hand side in the umbraco interface.

I would appreciate any help you could give me to achieve this goal.

Many Thanks,
Warren Buckley



Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
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.