Basic Assets
Xcelerate provides some built-in assets such as page, template, collection, etc. However, since content server has a rich and flexible type system, you can define your own assets.
The Basic Assets Model helps us in the creation of User Defined Assets. For this, we need to know about the ASSET DESCRIPTOR FILES (ADF). An ADF is nothing but an XML file ( A Descriptor File), which describes the asset type, its properties (otherwise known as attributes), their storage location, how to display them, data types of the properties, etc.
Defining a new Basic Asset with AssetMaker:
A very simple example of a Basic Asset descriptor looks like this:
<ASSET NAME="NewBasicAsset" DESCRIPTION="A New Basic Asset" PROCESSOR="4.0" DEFDIR="C:\Fatwire\Shared\Storage\New"> <PROPERTIES> <PROPERTY NAME="value" DESCRIPTION="Value"> <STORAGE TYPE="VARCHAR" LENGTH="80"/> <INPUTFORM TYPE="TEXT" WIDTH="50" MAXLENGTH="80" REQUIRED="NO" DEFAULT="" MULTIPLE="NO"/> </PROPERTY> </PROPERTIES> </ASSET>
Description of Fields:
The NAME field in ASSET tag specifies the name that will be stored in the database. The DESCRIPTION field in ASSET tag specifies the description. The DEFDIR field in ASSET tag specifies the location where the URL fields need to be stored. The PROPERTIES tag specifies the group of properties that belong to this asset. The PROPERTY tag specifies the name of the property and its description. The STORAGE tag specifies the data type and length The INPUTFORM tag specifies the width, length, type that should be displayed in the UI. The SEARCH tag specifies the name, etc that should be displayed in search screen.
How AssetMaker Works:
Using AssetMaker to create a new basic asset type involves four general steps:
- Code the asset descriptor file.
- Upload the file.
- Create the table.
- Register the elements.
Creation of Assets with Asset Maker Utility:
- Double click on the ASSET MAKER in the tree in the Advanced UI. Click on “ADD NEW ASSETMAKER ASSET TYPE”. Enter the name as entered in ADF file, and upload the file.
- In the next screen, Click on “CREATE ASSET TABLE” and then on “REGISTER ASSET ELEMENTS”
- Now, enable the newly created assets for the site. The newly created assets are ready to be used by the site.
A person essentially lend a hand to make seriously posts I’d state. This is the very first time I frequented your web page and so far? I surprised with the analysis you made to make this particular post incredible. Magnificent task!
thanks… and make sure to bookmark my site 🙂
I’ve read several good stuff here. Definitely price bookmarking for revisiting. I surprise how much effort you set to create the sort of great informative site.
Unquestionably believe that which you said. Your favourite reason seemed to be on the internet the easiest factor to bear in mind of. I say to you, I certainly get annoyed while people consider worries that they plainly do not understand about. You controlled to hit the nail upon the highest and also defined out the whole thing with no need side-effects , people can take a signal. Will likely be again to get more. Thanks!
I’ve recently started a site, the information you offer on this web site has helped me greatly. Thanks for all of your time & work.
Very interesting points you have remarked, thankyou for putting up. “It is seldom that liberty of any kind is lost all at once.” by David Hume.
I’ll right away grasp your rss feed as I can not to find your email subscription link or e-newsletter service. Do you have any? Kindly let me recognize so that I could subscribe. Thanks.
hello, as of now there are nothing like email subscriptions. You can turn on the rss feeds from my site.
I’m not sure why but this blog is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back later on and see if the problem still exists.
heyy..that might be due to some network issues. Kindly try again later.
Keep up the wonderful work , I read few blog posts on this site and I believe that your website is very interesting and has circles of fantastic info .
thankss
can we create custom attribute editor for basic asset? if yes, then please tell me how to create one?
I need ImagePicker as an attribute editor for basic asset? Any sample code?
I conceive this website has some rattling good info for everyone. “Variety is the soul of pleasure.” by Aphra Behn.
thanksssss
Wohh exactly what I was looking for, thankyou for putting up. “Be nice to everyone on your way to the top because you pass them all on the way down.” by Fred Hufnagel, Sr..
thanks Mario
As soon as I discovered this website I went on reddit to share some of the love with them.
Hi, i feel that i saw you visited my site thus i got here to �go back the choose�.I’m attempting to in finding things to improve my website!I suppose its ok to use a few of your ideas!!
I’m not sure exactly why but this site is loading incredibly slow for me. Is anyone else having this issue or is it a issue on my end? I’ll check back later and see if the problem still exists.
I always was interested in this subject and still am, thankyou for posting .
thanks for ur comments, Darnell..!! Please visit my site for further posts…
I think this is one of the so much important information for me. And i am satisfied studying your article. But want to remark on some basic issues, The site style is great, the articles is truly great :D. Excellent process, cheers.
thanks Timmy.. 😀
Your Internet site is much valuable. Thank the author so much for keeping a much of Good website.
Hi KK, you have mentioned that
Double click on the ASSET MAKER in the tree in the Advanced UI. Click on “ADD NEW ASSETMAKER ASSET TYPE”.
Where exactly to locate the ASSET MAKER and which tree.
Hi,
I tree appears in the left side of your Advanced UI, in the browser. Make sure that you have the latest versio of Java installed, in order to see the tree. There, you can find the ASSET MAKER UTILITY.
Pensiunea Sibiel
Nice replies in return of this matter with real arguments and describing all on the topic of that.