field="#createdBy" Options
ssboyz
Posted: Wednesday, October 22, 2008 8:23:04 AM
Rank: Newbie

Joined: 10/22/2008
Posts: 4
Hi,

I just started to learn the Umbraco and currently have few questions.

Help would really be appreciated.

I'm using one of the starter kits, Website Wizard. The template, news item, has <?umbraco_getitem field="#createdBy" />. I looked into the news item template, the news item document type but still could not found where does Umbraco store this "createdBy" information. Can anyone please tell me where to find it?

How do we set a page as a default page when first visit to the site?

I can browse through the reference for umbraco.cms library, etc but I could not find the reference for the template, for example, <?umbraco_getitem, etc.


Thanks,
ssboyz
Dirk
Posted: Wednesday, October 22, 2008 9:09:34 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi,

Welcome to umbraco.

1. #createdBy

createdby is an alias of the 'Created By' field you can find on any document type as it is a generic property (Found on the 'properties' tab of a document). <?umbraco_getitem field="#createdBy" /> is the short hand for displaying this field in a template.

2. Default page

By default, the first node in the content tree structure will be the page that is rendered when browsing http://www.yourdomain.com. If that document is called 'Home', then there's two methods to get to that specific page, either using http://www.yourdomain.com/home.aspx or http://www.yourdomain.com.

Mind that this is only possible for the first top most node in the content tree. If you wish to have another default page for the site, either

- move that node up, so it becomes the first node in the content tree, or
- create an extra property on the document type having alias = 'umbracoRedirect', of type content picker, or
- create an extra property on the document type having alias = 'umbracoInternalRedirectId', also of type content picker.

Extra posts and links on the subject:

http://forum.umbraco.org/yaf_postst6611_Counterpoint-to-umbracoUrlName.aspx
http://www.mortenbock.dk/codegarden-08-hidden-gems-84.htm

Feel free to ask more questions

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
ssboyz
Posted: Wednesday, October 22, 2008 1:59:39 PM
Rank: Newbie

Joined: 10/22/2008
Posts: 4
Hi Dirk,

Thanks for your reply.

Regarding the first point, Is there anywhere I can find the list of the properties? Anyway I can add a custom properties for all document type?

Thanks for the second point, it makes umbraco more flexible.

Do you know where I could find the syntax references for the templates? (<?umbraco_getitem> , etc)

Regards,

ssboyz
Dirk
Posted: Wednesday, October 22, 2008 2:52:13 PM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi,

If you don't mind getting your hands dirty on the code... Have a look at /data/umbraco.config. File has the published content (which is cached on the front end for faster processing...)

'Generic' properties are all attributes of the <node> xml element. All other properties you declare are <data> subnodes.

Syntax reference for templates. Hmm, just launch the <?umbraco_getitem> dialog from the icon in the toolbar. It displays all syntactical elements for <?umbraco_getitem>... Is that satisfactory?

Regards,
/Dirk

level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
ssboyz
Posted: Friday, October 24, 2008 3:38:38 AM
Rank: Newbie

Joined: 10/22/2008
Posts: 4
Hi Dirk,

Thanks for your reply again.

Don't think i will touch the data/umbraco.config yet. lol.

Yeah, the <?umbraco_getitem> icon displays some of the generic fields. I'm just hoping they have the references somewhere on their website.

Last night, I tried installing the WebsiteWizard starter kits and it has tree structure like below:
+ FrontPage
+ News
+ News Item 1
+ News Item 2
When browsing to News Item 1, the link is http://localhost/News/News-Item-1.aspx

I removed the WebsiteWizard starter kits and started from the scratch and created the same structure.
But when the link for the News Item 1 is not http://localhost/News/News-Item-1.aspx, it was http://localhost/News-Item-1.aspx. Is there a way to change it?

Regards,

ssboyz

Dirk
Posted: Friday, October 24, 2008 9:29:28 AM

Rank: Umbracoholic

Joined: 9/27/2007
Posts: 1,123
Location: Belgium
Hi ssboyz,

Did you change the web.config by accident. Looks like the value for config key umbracoHideTopLevelNodeFromPath has changed from false to true?

Regards,
/Dirk


level 1 & 2 certified - umbraco MVP 2008/2009 - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
ssboyz
Posted: Friday, October 24, 2008 10:51:02 AM
Rank: Newbie

Joined: 10/22/2008
Posts: 4
Hi Dirk,

Thanks for the quick reply :)

Not really. I think the umbracoHideTopLevelNodeFromPath is set to true by default.
It is set to true by default on the WebsiteWizard version and from scratch version but it the sublevel directory only works on the WebsiteWizard.


Thanks.

Regards,
ssboyz
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.